Skip to content

Instantly share code, notes, and snippets.

@1951FDG
1951FDG / new_gist_file
Last active December 10, 2017 16:19
Git How To: Submodules
git submodule add -b master [email protected]:/1951FDG/pt.git ProcessTimer
git config -f .gitmodules submodule.ProcessTimer.branch master
git submodule add [email protected]:PaddleHQ/Mac-Framework.git
git config -f .gitmodules submodule.Mac-Framework.url [email protected]:PaddleHQ/Mac-Framework.git
cd Mac-Framework
git checkout b684ec709b0cce91a7c2bc079cbe60407ad1b91b
git show b684ec709b0cce91a7c2bc079cbe60407ad1b91b
@1951FDG
1951FDG / new_gist_file.sh
Last active December 10, 2017 15:51
SixtyFourWeb
brew list
brew outdated
brew upgrade node
brew uses -installed node
sudo npm -g install npm (update npm)
npm list -g --depth=0 (list of modules)
npm outdated -g --depth=0 (list of modules to be updated)
npm-check-updates -g (list of modules to be updated)
@1951FDG
1951FDG / new_gist_file_0.sh
Last active December 10, 2017 15:56
List of Gems
sudo gem install xcpretty
sudo gem install iesd
iesd -i /Volumes/OS\ X\ Yosemite\ 10.10.4\ \[MAS\]\ 14E46/Install\ OS\ X\ Yosemite.app -o Yosemite.dmg -t BaseSystem
sudo gem install fui
@1951FDG
1951FDG / filetest.sh
Created August 7, 2015 10:54
Checking list of included CSS files in bower.json
#!/bin/bash
while read line
do
FILE=$line
if [ ! -e "${1}/${FILE}" ]; then
echo "File not found! - ${FILE}"
fi
done < "${2}"
@1951FDG
1951FDG / new_gist_file.sh
Last active December 10, 2017 15:57
Installing Ruby with Rbenv
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
rbenv install -l
rbenv install 1.9.3-p551
ruby -v
rbenv global 1.9.3-p551
rbenv rehash
ruby -v
@1951FDG
1951FDG / new_gist_file.sh
Last active December 10, 2017 15:57
OCLint
echo export PATH='$HOME/Developer/oclint-0.7-x86_64-apple-darwin-10/bin/:$PATH' > ~/.bash_profile
cd $HOME/Developer/oclint-0.7-x86_64-apple-darwin-10/lib/oclint/rules
rm -rf libInvertedLogicRule.dylib
rm -rf libMisplacedNullCheckRule.dylib
rm -rf libRedundantNilCheckRule.dylib
rm -rf libBitwiseOperatorInConditionalRule.dylib
rm -rf libObjCContainerLiteralsRule.dylib
@1951FDG
1951FDG / new_gist_file.sh
Last active December 10, 2017 15:57
Create .git/info/exclude
cd ~/Developer/SixtyFour
rm -i .git/info/exclude
git init
git ls-files --others --exclude-standard >> .git/info/exclude
vim .git/info/exclude
@1951FDG
1951FDG / new_gist_file
Created November 2, 2013 11:17
Google Refine replace statement
value.replace("0,18","0,50").replace("0,47","0,80").replace("0,65","1,00").replace("0,66","1,00").replace("0,67","1,00").replace("1,60","2,00").replace("1,62","2,00").replace("1,63","2,00").replace("2,56","3,00").replace("2,58","3,00").replace("2,59","3,00").replace("2,59","3,00").replace("3,49","4,00").replace("3,54","4,00").replace("4,44","5,00").replace("4,46","5,00").replace("4,50","5,00").replace("4,51","5,00").replace("4,53","5,00").replace("5,47","6,00").replace("6,43","7,00").replace("8,35","9,00").replace("9,31","10,00").replace("14,11","15,00").replace("18,92","20,00")
@1951FDG
1951FDG / new_gist_file.sh
Created October 28, 2013 12:07
Force a specific architecture to run
opt[0] = "/bin/bash"
opt[1] = "-c"
opt[2] = " exec /usr/bin/arch -arch x86_64 /Volumes/Untitled/Users/administrator/Developer/SixtyFour/build/Release/SixtyFour.app/Contents/MacOS/SixtyFour"
opt[0] = "/usr/bin/arch"
opt[1] = "-arch"
opt[2] = "x86_64"
opt[3] = "/Volumes/Untitled/Users/administrator/Developer/SixtyFour/build/Release/SixtyFour.app/Contents/MacOS/SixtyFour"
@1951FDG
1951FDG / new_gist_file.sh
Created October 27, 2013 13:25
Disable swap file
sysctl vm.swapusage
ls -la /var/vm
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.dynamic_pager.plist
sudo rm -rf /var/vm/swapfile*