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 | |
cmd=yaourt | |
file_args=paclist | |
args=() | |
opts=() | |
while [[ $1 ]]; do | |
arg=$1; shift | |
[[ $arg = "--" ]] && break; |
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 | |
CHECK=0 | |
ARMURL="http://arm.konnichi.com" | |
usage () | |
{ | |
echo $(basename "$0")" [-c] <date> [pkg1 pkg2 ...]" | |
exit 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 | |
ck_ds () { | |
local object=$1 interface=$2 method=$3; shift 3 | |
dbus-send --system --type=method_call --print-reply \ | |
--reply-timeout=2000 \ | |
--dest=org.freedesktop.ConsoleKit \ | |
"/org/freedesktop/ConsoleKit/$object" \ | |
"org.freedesktop.ConsoleKit.$interface.$method" "$@" | |
} |
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 | |
fmt="%D" | |
max=3 | |
while [[ $1 =~ ^- ]]; do | |
case "$1" in | |
-o) fmt+=" %o";; | |
-n) max="$2"; shift ;; | |
-*) exit 1;; | |
esac |
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
#define LED 13 | |
void setup() { | |
Serial.begin(9600); | |
Serial2.begin(9600); | |
UCSR2C = UCSR2C | B00100000; // parity even | |
UCSR2C = UCSR2C & ~B00010000; // parity even | |
UCSR2C = UCSR2C & ~B00001000; // 1 stop | |
UCSR2C = UCSR2C | B00000110; // length 8 |
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 | |
db=$(mktemp -d) | |
trap "rm -r $db" 0 | |
ln -s /var/lib/pacman/sync "$db/sync" | |
pacman --dbpath $db -Sw "$@" |