Skip to content

Instantly share code, notes, and snippets.


Simone Soldateschi siso

View GitHub Profile

Keybase proof

I hereby claim:

  • I am siso on github.
  • I am siso ( on keybase.
  • I have a public key ASCt2EqSXKfEdi6dA9B0j0n0sjNagCBxj6WhbJcEoKMJ2go

To claim this, I am signing this object:

siso / gist:c257a1ac5f6dc56d4930
Created Jun 23, 2015
Wallpaper with IPv4 infor for Raspberry Pi, Rapbian, LXDE
View gist:c257a1ac5f6dc56d4930
#!/usr/bin/env sh

export DISPLAY=:0.0


# Create white background image
convert -size 1280x800 xc:white $CANVAS
siso /
Created Jun 5, 2015
Take SVG screenshot
#!/usr/bin/env python
from selenium import webdriver
from import By
from import WebDriverWait
from import expected_conditions as EC
from PIL import Image
browser = webdriver.Firefox()
View gist:3b47326f195a7df3a185

Create MongoDB data dirs:

mkdir -p data/rs1 data/rs2 data/rs3

Start three mongod instances:

mongod --replSet m101 --logpath "1.log" --dbpath data/rs1 --port 27017 --smallfiles --oplogSize 64 --fork
siso / gist:5eb892bc4b666e68e07e
Created Nov 14, 2014
Rax-AutoScaler - test pip package locally
View gist:5eb892bc4b666e68e07e
# create pip package
(raxas)siso@pdp11:~/workspace/rax-autoscaler$ make source
# create fresh virtual environment
(test-raxas)siso@pdp11:~/tmp/20141114-130825$ mkvirtualenv test-raxas
# install pip package locally
(test-raxas)siso@pdp11:~/tmp/20141114-130825$ tar xvfz ~/workspace/rax-autoscaler/dist/RAX-AutoScaler-0.1.0.tar.gz && cd RAX-AutoScaler-0.1.0 && python install
# test it
View gist:c25da4e3d6013e320aae
Install bump package:
$ pip install bump
create a dummy version file:
$ echo 'VERSION = "0.0.0"' >
bump help:
View Cocoapods

Setting up a good cocoapods environment

Before you start

Make sure that you have the latest version of Xcode installed from the Mac App Store, and that you have the command line tools installed. To install the command line tools, open Xcode, click Xcode->Preferences->Downloads->Command Line Tools

Install brew if needed.

ruby -e "$(curl -fsSL"

siso / .tmux.conf
Last active Dec 29, 2015 — forked from v-yarotsky/.tmux.conf
tmux for screen users, on OSX
View .tmux.conf
# 1. Install Homebrew (
# 2. brew install zsh
# 3. Install OhMyZsh (
# 4. brew install reattach-to-user-namespace --wrap-pbcopy-pbpaste && brew link reattach-to-user-namespace
# 5. Install iTerm2
# 6. In iTerm2 preferences for your profile set:
# Character Encoding: Unicode (UTF-8)
# Report Terminal Type: xterm-256color
# 7. Put itunesartist and itunestrack into PATH
siso / gist:7089444
Last active Dec 26, 2015
How to upload a local file to CloudFiles. Remote container and file name can be specified on the CLI. $ python -u USERNAME -k APIKEY --local-file /PATH/TO/LOCAL/FILE --container CONTAINER --remote-file PATH/TO/REMOTE/FILE
View gist:7089444
import argparse
import pyrax
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('-k', '--api-key', help='Authentication api-key', required=True)
parser.add_argument('-i', '--identity-type',
help='identity type (default: \'rackspace\')',
parser.add_argument('--container', help='remote container', required=True)