Skip to content

Instantly share code, notes, and snippets.

View dyashkir's full-sized avatar
🏃

Dmytro Yashkir dyashkir

🏃
View GitHub Profile
@dyashkir
dyashkir / gist:b1a7085e238d06db00dcd26184f21b02
Created May 20, 2020 05:26
Setting up python to use newest version of the sqlite
Install sqlite
https://www.sqlite.org/download.html
./configure --prefix=/usr/local
make
sudo make install
in virtualenv activation script
export LD_LIBRARY_PATH="/usr/local/lib"
Correct version of pip
curl -O https://bootstrap.pypa.io/get-pip.py
sudo python3.5 get-pip.py
OSX executable
pip install -U py2app
py2applet --make-setup <application name>.py
/usr/local/Cellar/todo-txt/2.9/bin/todo.sh ls
@dyashkir
dyashkir / gist:5eb641804e4d4fe3ecdb
Created September 8, 2014 23:41
delete keys from redid by pattern
eval "for _,k in ipairs(redis.call('keys','bull:*')) do redis.call('del',k) end" 0