This file contains 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
--- install git --- | |
git ---version (in Debian git is installed) | |
dpkg -s git | grep Status | |
dpkg -s git | |
apt-cache pkgnames git | |
apt-get install git | |
--- bare repo on server --- |
This file contains 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
--- get laravel.phar --- | |
wget http://laravel.com/laravel.phar | |
sudo mv laravel.phar /usr/local/bin/laravel | |
sudo chmod +x /usr/local/bin/laravel | |
which laravel | |
sudo apt-get update | |
sudo apt-get upgrade | |
sudo apt-get install php5-curl |
This file contains 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
--- basic moves --- | |
ctrl+b (move back one character) | |
ctrl+f (move forward one character) | |
ctrl+d (delete current character) | |
backspace/mac delele (delete previous character) | |
ctrl+- (undo) | |
--- moving faster --- |
This file contains 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
sudo launchctl load -w /System/Library/LaunchDaemons/org.apache.httpd.plist | |
(the -w makes it permanent, i.e. it'll be reloaded when you reboot) | |
(How do you turn this off once it's started this way?) | |
sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist | |
--- home, end, page up, page down --- | |
Fn + left | |
Fn + right |
This file contains 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
<script id="some-template" type="text/x-handlebars-template"> | |
<input value="{{name}}"> | |
</script> | |
<script> | |
// Inside view | |
const Hello = Backbone.View.extend({ | |
el: '#hello-container', | |
template: Handlebars.compile($('#input-template').html()), |
This file contains 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
rm -rf ~/.atom | |
rm -rf /usr/local/bin/atom | |
rm -rf /usr/local/bin/apm | |
rm -rf /Applications/Atom.app | |
rm -rf ~/Library/Preferences/com.github.atom.plist | |
rm -rf ~/"Library/Application Support/com.github.atom.ShipIt" | |
rm -rf ~/"Library/Application Support/Atom" | |
rm -rf ~/"Library/Saved Application State/com.github.atom.savedState" | |
rm -rf ~/Library/Caches/com.github.atom | |
rm -rf ~/Library/Caches/com.github.atom.Shipit |
OlderNewer