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
########################## | |
# Small files | |
########################## | |
# convert pub key to pem.pub format | |
ssh-keygen -f ~/.ssh/id_rsa.pub -e -m PKCS8 > id_rsa.pem.pub | |
# inverse | |
ssh-keygen -f id_rsa.pem.pub -i -m PKCS8 | |
# encrypt small files |
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 zsh | |
write_avi() { | |
mencoder -ovc x264 -mf w=1400:h=900:fps=20:type=jpg \ | |
"mf://@screenlapser-$atimeout.txt" \ | |
-o screenlapse-`date +%Y-%m-%d-%H-%M-%S`.avi | |
xargs rm < screenlapser-$atimeout.txt | |
rm screenlapser-$atimeout.txt | |
} | |
trap 'atimeout=$timeout; write_avi; trap - INT; kill -INT $$' INT |
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 | |
sudo apt-get update -o Acquire::ForceIPv4=true | |
sudo apt-get install -y build-essential chrpath git -o Acquire::ForceIPv4=true | |
cd /tmp | |
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git | |
export PATH=`pwd`/depot_tools:"$PATH" |
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
[credential] | |
helper = cache --socket=$XDG_RUNTIME_DIR/git/credentials/socket.$XDG_SESSION_ID --timeout=2592000 |
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
options rtl8723ae swenc=1 fwlps=0 | |
# ips=0 msi=0 swlps=0 | |
# from sysfsutils: | |
# systool -a -v -m rtl8723ae | grep -A8 "Parameters:" |
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
SELECT | |
CONCAT( | |
"DROP TABLE ", | |
GROUP_CONCAT( | |
CONCAT(TABLE_NAME, "\n") | |
) | |
) AS stmt | |
FROM information_schema.TABLES | |
WHERE TABLE_SCHEMA = "DatabaseName" AND TABLE_NAME LIKE "prefix_%" |
NewerOlder