Skip to content

Instantly share code, notes, and snippets.

organelle-m resize SD card

  • get a shell on the organelle-m, and become root

    sudo su -
    
  • check what filesystem is mounted at /sdcard (e.g. /dev/mmcblk0p3)

    df -h
    
@rupa
rupa / redemption song
Created September 9, 2017 03:06
I will fucking sue you so hard if you steal this original work
new immigrants they rob me
oh my they took our jobs
many years after my grandad
lost all of his slaves
but my vote still sort of works
by the grace of mother russia
we won so fuck you haha
trump is me
wont you help to sing
from long.ass.path.that.is.really.quite.long \
import VerboseClassName
from long.ass.path.that.is.really.quite.long import (
VerboseClassName)
In [1]: x = 'a\rb\rc'
In [2]: x.split()
Out[2]: ['a', 'b', 'c']
In [3]: x.split()
Out[3]: ['a', 'b', 'c']
In [4]: x = 'a\r\nb\r\nc'
# aptitude install libjpeg-dev zlib1g-dev
# pip install Pillow
wget -O ansi.zip https://github.com/rupa/ansiimg/archive/master.zip
pip install ansi.zip
wget -O meme.zip https://github.com/rupa/automeme/archive/master.zip
pip install meme.zip
wget http://images.memegenerator.net/images/298x/84688.jpg
ansi 84688.jpg -t "$(automeme)"
#!/bin/bash
# The More You Know ☄·
fart() {
echo $1
echo $2
echo $3
}
doot() {

Keybase proof

I hereby claim:

  • I am rupa on github.
  • I am rupa (https://keybase.io/rupa) on keybase.
  • I have a public key whose fingerprint is 9B45 0005 6F42 477C 66C8 2575 C5A3 1CA6 6B64 3957

To claim this, I am signing this object:

@rupa
rupa / proxy_s5.py
Last active August 29, 2015 14:07 — forked from yaonie/proxy_s5.py
forking version
#!/usr/bin/python
# Filename s5.py
# Python Dynamic Socks5 Proxy
# Usage: python s5.py 1080
# Background Run: nohup python s5.py 1080 &
# Email: ringzero@557.im
import socket, sys, select, SocketServer, struct, time
SocketServer.TCPServer.allow_reuse_address = True
@rupa
rupa / every
Created August 18, 2014 15:33 — forked from sorbits/every
#!/usr/bin/env bash
progname=$(basename $0)
version="1.0 (2014-08-17)"
step=2
function create_hash {
openssl dgst -sha1 -binary <<< "$1" | xxd -p
}
#!/usr/bin/env python
import random
CHARS = {
'top': [
u'\u0300',
u'\u0301',
u'\u0302',
u'\u0303',