hdiutil attach /Applications/Install\ macOS\ Sierra\ Public\ Beta.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_apphdiutil create -o /tmp/Sierra.cdr -size 7316m -layout SPUD -fs HFS+Jhdiutil attach /tmp/Sierra.cdr.dmg -noverify -nobrowse -mountpoint /Volumes/install_buildasr restore -source /Volumes/install_app/BaseSystem.dmg -target /Volumes/install_build -noprompt -noverify -eraserm /Volumes/OS\ X\ Base\ System/System/Installation/Packagescp -rp /Volumes/install_app/Packages /Volumes/OS\ X\ Base\ System/System/Installation/cp -rp /Volumes/install_app/BaseSystem.chunklist /Volumes/OS\ X\ Base\ System/BaseSystem.chunklist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| The most atomic way to train and inference a GPT in pure, dependency-free Python. | |
| This file is the complete algorithm. | |
| Everything else is just efficiency. | |
| @karpathy | |
| """ | |
| import os # os.path.exists | |
| import math # math.log, math.exp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import re | |
| import os,sys | |
| import pefile | |
| import struct | |
| import zipfile | |
| import hashlib | |
| import StringIO | |
| from Crypto import Random | |
| from Crypto.PublicKey import RSA | |
| from Crypto.Cipher import PKCS1_v1_5,AES |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Give the usual warning. | |
| clear; | |
| echo "[INFO] Automated Android root script started.\n\n[WARN] Exploit requires sdk module \"NDK\".\nFor more information, visit the installation guide @ https://goo.gl/E2nmLF\n[INFO] Press Ctrl+C to stop the script if you need to install the NDK module. Waiting 10 seconds..."; | |
| sleep 10; | |
| clear; | |
| # Download and extract exploit files. | |
| echo "[INFO] Downloading exploit files from GitHub..."; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Multiple alignment result of Blast | |
| #query/alignment/identity/positive/coverage are collected | |
| #Only for the best result | |
| from Bio.Blast import NCBIStandalone | |
| import os, sys | |
| path='/.../.../...' | |
| for i in os.listdir(path): | |
| result_handle = open(str(i)) | |
| blast_parser = NCBIStandalone.BlastParser() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [General] | |
| loglevel = notify | |
| skip-proxy = 127.0.0.1, 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 100.64.0.0/10, localhost, *.local, ::ffff:0:0:0:0/1, ::ffff:128:0:0:0/1 | |
| bypass-tun = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12 | |
| # dns-server = 119.29.29.29,223.5.5.5,114.114.115.115 | |
| # external-controller-access = PASSWORD@0.0.0.0:6155 | |
| # ipv6 = true | |
| // REMEMBER TO CHANGE THE external-controller-access' PASSWORD |
使用公钥私钥来登陆而不是账号密码,公钥私钥需要简单的在本地生成一下。Github 的生成 SSH 公钥私钥的教程:Generating SSH keys
可能需要使用 -i 参数选择一下本地的私钥,一个示例的 ssh 连接如下:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # if you havent done it yet, please download the tor-browser and start it | |
| # https://www.torproject.org/download/download-easy.html.en | |
| wget https://www.torproject.org/dist/torbrowser/5.0/tor-browser-linux64-5.0_en-US.tar.xz | |
| tar xf tor-browser-linux64-5.0_en-US.tar.xz | |
| # download the source of proxychains-ng | |
| git clone https://github.com/rofl0r/proxychains-ng.git | |
| cd proxychains-ng |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| echo 'deb http://shadowsocks.org/debian wheezy main' >> /etc/apt/sources.list | |
| # Pre-requisites | |
| sudo apt-get -y update | |
| sudo apt-get -y install pptpd | |
| sudo apt-get -y install fail2ban | |
| sudo apt-get -y install shadowsocks-libev | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - (void)viewDidLoad | |
| { | |
| [super viewDidLoad]; | |
| // init VPN manager | |
| self.vpnManager = [NEVPNManager sharedManager]; | |
| // load config from perference | |
| [_vpnManager loadFromPreferencesWithCompletionHandler:^(NSError *error) { |
NewerOlder