Skip to content

Instantly share code, notes, and snippets.

@melon
melon / installation steps
Last active September 8, 2017 04:42
install tensorflow/Keras
1. install python 2.7
2. install pip
(https://pip.pypa.io/en/stable/installing/)
3. install virtualenv
pip install virtualenv
@melon
melon / clone-github-repositories
Created October 31, 2014 10:19
clone someone's all public github repositories in one command
curl -s https://api.github.com/users/{username}/repos | grep clone_url | cut -d\" -f4|awk '{system("git clone "$1)}'
@melon
melon / dpkg-set-hold
Created October 29, 2014 03:38
`dpkg` set hold state for a bunch of packages filtered by `grep`
#!/bin/bash
sudo dpkg --get-selections |grep $1|awk '{system("echo "$1" hold | sudo dpkg --set-selections")}'