-
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
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
# ssh/scp through NAT, as long as $outer has nc | |
# ssh v5.4+ should allow ssh -oProxyCommand="ssh -W $inner:%p" $outer $* | |
# hosts could also be defined in .ssh/config: | |
# Host foo | |
# hostname inner | |
# ProxyCommand ssh outer nc -w 1 %h %p | |
sshh() { | |
[ "$1" = "-h" ] && { | |
echo "sshh [opts] outer inner [cmd]" | |
return |
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
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
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
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 |
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 long.ass.path.that.is.really.quite.long \ | |
import VerboseClassName | |
from long.ass.path.that.is.really.quite.long import ( | |
VerboseClassName) |
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
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' |
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
function! SuperTab() | |
if (strpart(getline('.'),col('.')-2,1)=~'^\W\?$') | |
return "\<Tab>" | |
else | |
return "\<C-n>" | |
endif | |
endfunction | |
function! SuperShiftTab() | |
if (strpart(getline('.'),col('.')-2,1)=~'^\W\?$') | |
return "\<S-Tab>" |
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 | |
# rly dum markov | |
# db file | |
db=~/.smirnoff.db | |
# min length of chain to learn | |
min=3 | |
function help { | |
echo "$(basename $0) [ -init | -cram | -help ]" |
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
#!/usr/bin/perl | |
use POSIX; | |
use IO::Socket; | |
use utf8; | |
use Encode; | |
#fork && exit; | |
setsid; |
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
Hitchhiker's Guide To The Galaxy 1-5 | |
summarized with Open Text Summarizer at ratio of 1% | |
http://libots.sourceforge.net/ | |
------------------------------------------------------------------------------- | |
I | |
Mr Prosser's mouth opened and closed a couple of times while his mind was for a |
NewerOlder