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
| DU="dyn-uti"; DUC="$DU-conv"; ZB="zbase32"; ZBP="$ZB.py"; mkdir -p $DUC; cd $DUC; pip install $ZB; cp `pip show $ZB | grep / | cut -d: -f2`/$ZB/$ZBP . | |
| sed -i '' '/^mnet32/s/^/uti_alphabet = "abcdefghkmnpqrstuvwxyz0123456789" # Mac OSX Dynamic UTI\'$'\n/' $ZBP; sed -i '' '/^chars/s/mnet32/uti/' $ZBP | |
| DUE="$DU-enc.sh"; DUD="$DU-dec.sh"; echo "python -c \"import $ZB; print $ZB.b2a('\$1')\"" > $DUE; echo "python -c \"import $ZB; print $ZB.a2b('\$1')\"" > $DUD | |
| chmod a+x $DUE $DUD; echo "Usage:\\ncd $DUC\\n./$DUE '?0=7:3=text/X-frob:1=frob'\\n./$DUD 'h62d4r34gq81k3p2su1zuppgsm10esvvhzxhe55c'" |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>EnableGlobbing</key> | |
| <true/> | |
| <key>Label</key> | |
| <string>it.dardo82.TellTheTime</string> | |
| <key>ProgramArguments</key> | |
| <array> |
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 gawk -f | |
| BEGIN { | |
| RS="===" | |
| } | |
| NR<8 && /\[\[|\]\]/ { | |
| gsub (/\[|\]/,"") | |
| for (i=1; i<=n; i++) \ | |
| m[i,NR]=$i | |
| } |
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 | |
| cd Library/Application\ Support/Kodi/addons/skin.sio2/1080i | |
| cp Font.xml Font.xml.orig | |
| awk -F'<|>' '{\ | |
| if($0~/<fontset id="Default">/)f=1;\ | |
| if(f==1)fs=fs"\n"$0;\ | |
| if($0~/<\/fontset>/)f=0;\ | |
| gsub(/>[0-9]+</,"\\>"$3*2"\\<",fs);\ | |
| if($0!~/<\/fonts>/)print $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
| MF=$HOME/Movies;FM="ffmpeg";BF="blackframe";C3="Comici37" | |
| ./$FM -i $MF/$C3/$C3.ts -vf $BF -f null - 2>$C3.txt | |
| pt=0;n=0;for t in `grep $BF $C3.txt|cut -d\ -f8|cut -d: -f2|cut -d. -f1|uniq` | |
| do d=$[$t-$pt];if [ $d -gt 180 ];then O=$O"-ss $pt -t $d $MF/$C3/$C3-$n.mp4 " | |
| n=$[$n+1];fi;pt=$t;done;./$FM -i $MF/$C3/$C3.ts $O;rm $C3.txt |
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/zsh | |
| URL=$1;URLMOB=${${URL/o\//o.php?id=}/i\//i\/mobile\/} | |
| URLFLV=$(curl -s $URLMOB|awk -F\" '/.flv/{print $2}') | |
| if [[ $URLFLV == *.mp4 ]];then | |
| URLMP4=$URLFLV | |
| else | |
| curl -vO $URLFLV;FLV=${URLFLV##*/} | |
| MP4=${FLV%.*}.mp4;ffmpeg -i $FLV $MP4;rm -frv $FLV;URLMP4=$PWD/$MP4 | |
| fi |
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 "Che trasmissione vuoi vedere?" | |
| read SHOW | |
| echo "Su che canale?" | |
| read CHAN |
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/zsh | |
| APP="${${0##*/}%-*}; OST="mac"; DAZ="${APP/ium/e}-$OST.zip" | |
| URL="https://commondatastorage.googleapis.com/$APP-browser-snapshots/${(C)OST}" | |
| ASS="$(curl -s $URL/LAST_CHANGE)" | |
| ADA="${$(brew cask info $APP|awk -v ORS=/ '/^(\/| )/{print $1}')%/*}" | |
| SCM="$(awk -F'#|}' '/#/{print $3}' $ADA/Contents/Info.plist)" | |
| if [ $SCM -lt $ASS ]; then | |
| cd $TMPDIR; pkill ${(C)APP} | |
| curl -O $URL/$ASS/$DAZ; unzip $DAZ | |
| mv -frv ${DAZ%.*}/${$ADA##*/} $ADA |
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/zsh | |
| join -1 2 -2 2 <(echo ${${1//,/\\n}//({|})/}) <(echo ${${2//,/\\n}//({|})/})|gsed 's/^ /(/;s/ /,/;s/$/)/;s/\n/,/'|gsed -z 's/\n/,/g;s/^/{/;s/,$/}\n/' |
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/zsh | |
| # Print the prime numbers less than n. | |
| # for n in {1..$1}; do gfactor $n; done | awk -F'[: ]' '{if($3~$1)print $3}' | |
| for n in {1..$1}; do gfactor $n; done | awk -F'[ ]' 'NF==2{printf $2" "}' |
OlderNewer