Skip to content

Instantly share code, notes, and snippets.

View gregorynicholas's full-sized avatar
💀
alter.

gregory nicholas gregorynicholas

💀
alter.
View GitHub Profile
@gregorynicholas
gregorynicholas / fiddler.js
Created May 28, 2018 04:19 — forked from seadog007/fiddler.js
Fiddler extension for cracking Taiwan MacDonald Coupon app which is available for both Android and iOS version (´・ω・`)
/*
======================
Author: 海豹
Date: 2017/1/22
Version: 1.0.0.0
Description: Fiddler extension for cracking Taiwan MacDonald Coupon app which is available for both Android and iOS version (´・ω・`)
僅供學術使用 請勿用作非法用途
======================
*/
import System;
#!/bin/bash
set -x #echo on
set -e
### vars
CI_BUILD_NUMBER=${CI_BUILD_NUMBER:=0}
BUILD_TARGET=${BUILD_TARGET:='staging'}
WORK_DIR=${HOME}/work
@gregorynicholas
gregorynicholas / pycrack.py
Created May 28, 2018 03:35 — forked from MidhunSureshR/pycrack.py
Python crack IOS restriction key.
"""
R Midhun Suresh
2017
version 0.1
A short python script to crack restriction password of IOS.
Much faster than using a browser.
To use this code, you will need to obtain the hash of the password and salt from your ios backup file.
This process is described in detail on http://ios7hash.derson.us
"""
import hashlib
@gregorynicholas
gregorynicholas / mountain-lion-brew-setup.markdown
Created May 28, 2018 03:08 — forked from myobie/mountain-lion-brew-setup.markdown
Get Mountain Lion and Homebrew to Be Happy

Get Mountain Lion and Homebrew to Be Happy

1) Install XCode 4.4 into /Applications

Get it from the App Store.

2) Install Command Line Tools

In XCode's Preferences > Downloads you can install command line tools.

# -*- coding: iso-8859-1 -*-
try:
import sys
import hashlib
import urllib2
import getopt
from os import path
from urllib import urlencode
from re import search, findall
from random import seed, randint
@gregorynicholas
gregorynicholas / manifest.plist
Created April 7, 2018 15:12 — forked from hramos/manifest.plist
Sample manifest file for Over The Air iOS deployment
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>items</key>
<array>
<dict>
<key>assets</key>
<array>
<dict>
@gregorynicholas
gregorynicholas / minikube-sierra.md
Created April 7, 2018 11:08 — forked from inadarei/minikube-sierra.md
Minikube Setup: Docker for Mac / Sierra

Prerequisite: latest Docker for Mac on MacOS Sierra

$ brew update
$ brew install --HEAD xhyve
$ brew install docker-machine-driver-xhyve
$ sudo chown root:wheel $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve
$ sudo chmod u+s $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve

$ curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.18.0/minikube-darwin-amd64 &amp;&amp; chmod +x minikube &amp;&amp; sudo mv minikube /usr/local/bin/
@gregorynicholas
gregorynicholas / linear_algebra_notes.md
Created April 5, 2018 23:46 — forked from jhaberstro/linear_algebra_notes.md
Notes for MIT's "Linear Algebra 18.06"
Linear Algebra 18.06 notes

=============================

  • Lecture 1: The Geometry of Linear Equations
    • The matrix A (whose columns are u, v, w) times the column vector x (whose components are c, d, e) is the same as the combination cu + dv + ew of the three columns.
  • Lecture 2: Elimination with Matrices
    • Elimination works by creating a triangular matrix, which for a system of 3 equations and three variables gives us a new system of 3 equations that has one equation with only one variable, another with two variables, and the last with three variables. This system can then be easily solved.
  • Lecture 3: Multiplication and Inverse Matrices
    • When multiply matrices, A*B=C, the element in the i-th row and j-th column of the resultant matrix, C, is calculated by taking the dot product of the i-th row of A with the j-th column of B.
  • Another way to view matrix multiplication: in A*B=C, each column of C is a linear combination of the columns of A. e.g.
@gregorynicholas
gregorynicholas / open.sh
Created April 5, 2018 23:46 — forked from mayoff/open.sh
bash completion for the `-a` and `-b` flags of the Mac OS X `open` command
#
# This is a set of bash function definitions, and a bash command, that
# set up bash completion for the Mac OS X "open" command.
#
# HOW TO USE
#
# Add this command to your .bashrc:
#
# . open.sh
#