Skip to content

Instantly share code, notes, and snippets.

curl -d "token=YOUR_TOKEN" "https://slack.com/api/emoji.list" | jq -r '.emoji | keys[] as $k | "\($k) \(.[$k])"' | awk '{split($2, a, "."); print $1"."a[length(a)], $2}' | xargs -P 8 -n2 bash -c 'curl -o $0 $1'
#!/bin/bash
tmpfile=$(mktemp)
adb shell screencap -p > $tmpfile
# mogrify -resize 50% $tmpfile
mogrify -resize 300x $tmpfile
osascript -e "set the clipboard to (read (POSIX file \"$tmpfile\") as JPEG picture)"
rm $tmpfile
@haru067
haru067 / gaming.sh
Created February 13, 2020 07:36
gaming
# Usage: ./gaming.sh target.png
filename=$(basename -- "$1")
extension="${filename##*.}"
filename="${filename%.*}"
for i in 0 1 2 3 4; do
convert $1 -modulate 100,100,$(((($i + 3) % 5) * 33)) $filename$i.png
done
convert -delay 3 -loop 0 $filename*.png $filename.gif;
@haru067
haru067 / mikutterAdventCalendar2012.md
Created December 10, 2012 05:16
mikutter Advent Calendar 10日目

mikutter Advent Calendar 10日目

(´へεへ`*) < 10日目だよ〜

(´へεへ`*) < 昨日は@penguin2716氏、明日は@teshi04氏だよ〜

 

(´へεへ`*) < ………