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
git remote set-url --add --push origin git://one/repo.git | |
git remote set-url --add --push origin git://another_one/repo.git |
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
git filter-branch --commit-filter ' | |
if [ "$GIT_AUTHOR_EMAIL" = GIT_AUTHOR_EMAIL ]; | |
then | |
GIT_AUTHOR_NAME="kf"; | |
GIT_COMMITTER_NAME="kf"; | |
GIT_AUTHOR_EMAIL="[email protected]"; | |
GIT_COMMITTER_EMAIL="[email protected]"; | |
git commit-tree "$@"; | |
else | |
git commit-tree "$@"; |
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
wget http://nodejs.org/dist/v0.12.0/node-v0.12.0.tar.gz | |
tar -zxf node-v0.12.0.tar.gz | |
cd node-v0.12.0 | |
./configure && make && sudo make install |
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
curl -L https://npmjs.com/install.sh | sh |
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
http://askubuntu.com/questions/519696/twofinger-scroll-on-lenovo-g50 |
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
http://stevelorek.com/how-to-shrink-a-git-repository.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
BeautifulSoup | |
Celery | |
Django | |
Jinja2 | |
Pil | |
Pillow | |
PyJWT | |
PyYAML | |
Pygments | |
Sharpy |
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
while true;do clear;date;sleep 1;done | |
# OR # | |
while true;do clear;date +"%r";sleep 1;done |
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
Installation | |
------------ | |
# sudo apt-get install ntp | |
Configuration | |
------------- | |
Edit /etc/ntp.conf and reload by `sudo service ntp reload` | |
server 0.ubuntu.pool.ntp.org | |
server 1.ubuntu.pool.ntp.org |
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
http://stackoverflow.com/questions/3372962/can-i-remove-the-x-requested-with-header-from-ajax-requests | |
jQuery.ajax({ | |
url: yourAjaxUrl, | |
// 'xhr' option overrides jQuery's default | |
// factory for the XMLHttpRequest object. | |
// Use either in global settings or individual call as shown here. | |
xhr: function() { |
OlderNewer