This file contains hidden or 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 | |
modprobe nandsim first_id_byte=0x20 second_id_byte=0xaa third_id_byte=0x00 fourth_id_byte=0x15 | |
modprobe ubi mtd=0 | |
ubidetach /dev/ubi_ctrl -m 0 | |
ubiformat /dev/mtd0 -f erootfs.ubi | |
ubiattach /dev/ubi_ctrl -m 0 | |
mount -t ubifs ubi0 temp |
This file contains hidden or 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 python | |
# -*- coding: utf-8 -*- | |
# | |
# untitled.py | |
# | |
class class_name(object): | |
def __init__(self): | |
return | |
This file contains hidden or 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
swfrender -o out.png fig_1853.swf | |
mogrify -resample 72x72 -resize 256x256 *.png | |
convert -delay 100 -loop 1 out-*.png animation.gif | |
convert -delay 10 -loop 1 -background white -alpha remove -layers OptimizePlus out-*.png animation.gif | |
convert \ | |
-delay 10 \ | |
$(for i in $(seq 0 5 100); do echo foo${i}.png; done) \ | |
-loop 0 \ |
This file contains hidden or 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 | |
# http://www.davelachapelle.ca/guides/handbrake-cli-encoding/ | |
# Your configuration stuff should go here - replace these with whatever you want | |
SRC=./SOURCE_FOLDER/ | |
DEST=./DESTINATION_FOLDER/ | |
DEST_EXT=mp4 | |
HANDBRAKE_CLI=/Applications/HandBrakeCLI | |
PRESET="iPhone & iPod Touch" | |
# | |
# The meat of the script |
This file contains hidden or 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
montage -mode concatenate -tile 3x3 tile*.jpg result.jpg |
This file contains hidden or 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
alias mkdir='mkdir -pv' | |
alias mount='mount |column -t' | |
alias now='date +"%T"' | |
alias ports='netstat -tulanp' | |
alias header='curl -I' | |
alias df='df -H' | |
alias du='du -ch' | |
alias du1='du -d 1' | |
alias nocomment='grep -Ev '\''^(#|$)'\''' | |
alias bashrc='pico ~/.bashrc && source ~/.bashrc' |
This file contains hidden or 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
# Flip a video 90 degrees clockwise | |
avconv -i in.mp4 -vf "transpose=1" -strict -2 out.mp4 | |
This file contains hidden or 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
find -name "* *" -type f | rename 's/ /_/g' |
This file contains hidden or 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
while :;do | |
rec -t raw /dev/null rate 32k silence 1 0.1 2% 1 0.0 2% && ping -c 1 localhost; | |
sleep 1; | |
done |
This file contains hidden or 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
ffmpeg -loop 1 -i image.jpg -i audio.wav -c:v libx264 -tune stillimage -c:a aac -strict experimental -b:a 192k -pix_fmt yuv420p -shortest out.mp4 |