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
./android update sdk --no-ui | |
./android list targets | |
./android create avd -n {name} -t {number} | |
(to delete) ./android delete avd -n {name} | |
./emulator -avd {name} |
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
#!/bin/bash | |
# run git log in bunches of 25 until we find a svn id. | |
LIMIT=25 | |
SVN_REVISION="" | |
LAST_REVISION="HEAD" | |
PAGER=`git config core.pager` | |
if [ -z "$PAGER" ] ; then | |
PAGER="less" | |
fi |
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
--- a/git-svn.perl | |
+++ b/git-svn.perl | |
@@ -5436,7 +5436,7 @@ BEGIN { | |
} | |
sub _auth_providers () { | |
- [ | |
+ my @rv = ( | |
SVN::Client::get_simple_provider(), | |
SVN::Client::get_ssl_server_trust_file_provider(), |
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
defaults write com.apple.finder AppleShowAllFiles TRUE | |
killall Finder | |
defaults write -g NSScrollViewRubberbanding -int 0 | |
defaults write com.apple.desktopservices DSDontWriteNetworkStores true |
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 vim /etc/auto_master | |
Add the following line to this file: | |
/Users/igor/shares auto_smb | |
Now create a new file /etc/auto_smb: | |
$sudo vi /etc/auto_smb | |
Add a line for every share in this file like so: | |
video -fstype=smbfs ://user:password@192.168.1.150/video | |
video -fstype=afp afp://user:password@192.168.1.150/video |
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
from django.contrib.sessions.backends.base import SessionBase, CreateError | |
from django.conf import settings | |
from django.utils.encoding import force_unicode | |
import redis | |
class SessionStore(SessionBase): | |
""" Redis store for sessions""" | |
def __init__(self, session_key=None): | |
self.redis = redis.Redis( |
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 apt-get install libjpeg8 libpng12-0 libfreetype6 zlib1g | |
sudo ln -s /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib | |
sudo ln -s /usr/lib/x86_64-linux-gnu/libfreetype.so /usr/lib | |
sudo ln -s /usr/lib/x86_64-linux-gnu/libz.so /usr/lib | |
pip install PIL |
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
This code is a suggested answer to question asked on Stackoverflow: | |
http://stackoverflow.com/questions/4827965/can-i-change-djangos-auth-user-username-field-to-be-100-chars-long-without-break/ |
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
// ==UserScript== | |
// @name Evolve | |
// @namespace http://tampermonkey.net/ | |
// @version 1.3 | |
// @description try to take over the world! | |
// @author Fafnir | |
// @match https://pmotschmann.github.io/Evolve/ | |
// @grant GM_log | |
// @require https://code.jquery.com/jquery-3.3.1.min.js | |
// ==/UserScript== |