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
# ported to Python, thanks to KillTheCat | |
import subprocess | |
def get_installed_size(block: str) -> int: | |
def size_in_byte(data: list) -> int: | |
if len(data) != 2: | |
return 0 | |
inc = 1 |
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
Sequence0=(?<!1,29,1;|1,29,2;|1,97,1;|1,97,2;|1,56,1;|1,56,2;|1,100,1;|1,100,2;)1,42,1;1,42,0;$ | |
Sequence1=(?<!1,29,1;|1,29,2;|1,97,1;|1,97,2;|1,56,1;|1,56,2;|1,100,1;|1,100,2;)1,54,1;1,54,0;$ | |
Sequence2=(?<!1,29,1;|1,29,1;|1,42,1;|1,42,2;|1,97,1;|1,97,2;|1,56,1;|1,56,2;|1,54,1;|1,54,2;)1,100,1;1,100,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
:command Tab0 :set noet sw=8 sts=0 | |
:command Tab2 :set et sw=2 sts=2 | |
:command Tab4 :set et sw=4 sts=4 |
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 | |
#Requirements: curl, jq, sed, grep | |
#Usage: pic4a <filename> | |
#token=`curl -s https://pic4a.ru/|grep csrfmiddlewaretoken|sed "s/.*value='\([^']*\)'.*/\1/"` | |
token=`curl -s https://pic4a.ru/ -c - -o /dev/null|grep csrf|sed 's/.*csrftoken\s\+\(.*\)/\1/'` | |
curl -# \ | |
-F "csrfmiddlewaretoken=$token" \ | |
-b "csrftoken=$token" \ | |
-F "files[]=@$1" \ |
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
.urlbar-input:not(:focus) {text-align:center;font-weight:bold} | |
.urlbar-input:focus {background-color: #F7F7F7;height:24px}/*box-shadow: 0 0 2px 3px rgba(68,115,196,0.7)*/ | |
#urlbar:not(:focus) {background-color: transparent;border:0} | |
#urlbar box, #urlbar toolbarbutton {border: 0;background:transparent} |
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 | |
MAX_LENGTH=30 | |
deadbeef --nowplaying "%t|%a|%b|%e|%l>"|while IFS='|' read -d '>' -a track_params; do | |
track_name="${track_params[3]}/${track_params[4]}\n🎵 ${track_params[0]}\n👽 ${track_params[1]}\n💿 ${track_params[2]}" | |
if [[ $track_name = 'nothing\nnothing' ]]; then | |
track_name=■; | |
fi | |
echo -e $track_name |
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/sh | |
echo "main(t){for(t=0;;++t)putchar($1);}" > /tmp/bytebeat.c | |
gcc /tmp/bytebeat.c -w -std=c11 -o /tmp/bytebeat | |
chmod +x /tmp/bytebeat | |
/tmp/bytebeat|aplay -q |
NewerOlder