curl -i https://api.github.com/users/0x8BADFOOD/followers | grep login | wc -l
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
#include <stdio.h> //for printf | |
#include <stdlib.h> //for malloc,free | |
#include <string.h> //for strlen | |
/* | |
Sapmple for inverting sting in plain c | |
Compile and run: | |
>gcc test.c -o test.bin && ./test.bin | |
*/ |
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
" Highlight long lines (>80) | |
autocmd BufEnter * highlight OverLength ctermbg=darkgrey guibg=#592929 | |
autocmd BufEnter * match OverLength /\%81v.*/ | |
autocmd BufEnter * let w:long_line_match = 1 | |
fu! LongLineHighlightToggle() | |
highlight OverLength ctermbg=darkgrey guibg=#592929 | |
if exists('w:long_line_match') | |
match OverLength // |
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
pandoc interview_quesitons.md --latex-engine=xelatex -o interview_quesitons.pdf | |
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
/Users/username/Library/Mail/V3/B233BAE5-173D-4707-97D8-8F1B3C4F8937/Inbox.mbox/24FDEF0E-3F0E-49F1-B4B9-4C507B8FC086/Data/1/Messages |
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
brew install renmae | |
rename 's/^/MyVacation2011_/g' *.png | |
rename 's/hdpi/pin/g' *hdpi* |
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/python | |
# -*- coding: utf-8 -*- | |
import glob | |
import os | |
import subprocess | |
import sys | |
sys.path.append('/usr/local/munki/munkilib') | |
import FoundationPlist | |
path = '/Users/abanks/Library/AutoPkg/Cache' |
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
wget https://dl.google.com/android/repository/android-ndk-r15c-darwin-x86_64.zip | |
unzip android-ndk-r15c-darwin-x86_64.zip | |
cd android-ndk-r15c | |
mkdir ARM-FOR-NDK | |
./android-ndk-r15c/build/tools/make_standalone_toolchain.py --arch arm64 --install-dir ./ARM-FOR-NDK |
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/local/bin/python2.7 | |
import json | |
import urllib2 | |
username = "android" | |
password = "AC7IBG09A3DTSYM4R41UJWL07VLN8JI7" | |
deviceModel = "android-generic" | |
url = "https://tuner.pandora.com:443/services/json/?method=auth.partnerLogin" |
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
#Uninstalling node | |
curl -ksO https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh | |
chmod +x ./uninstall-node.sh | |
./uninstall-node.sh | |
#Installing node | |
brew install node | |
brew link node | |
brew link --overwrite node | |
sudo npm install npm@latest -g |