This file contains 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
for muh in `find ep/posts`; do echo $muh; url=`cat $muh |json_pp| grep '"url" : "https://'|awk '{print $3}'|sed s,\",,g| sed "s,asset/\([0-9]*\)/\([0-9]*\)_\([0-9a-f]*\)\(_[0-9]*\)\?\.\([a-z]*\),asset/\1/\2_\3.\5,g" |sed s/,$//`; fn=`echo $url |sed -e s,https://asset.soup.io/,,g -e s,/,_,g`; test $url && wget -q $url -O $fn; done 2> /dev/null |
This file contains 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 | |
#################################################################### | |
# Configure a quick action to share a file from finder and | |
# get a sharable link in clipboard | |
#################################################################### | |
# On Seafile: | |
# - create a library (repo) that suits your sharing needs | |
# On Terminal: | |
# - get $AUTH_TOKEN: |
This file contains 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 | |
# podmanager | |
# URLBASE="https://admin:[email protected]:8443" | |
URLBASE="https://root:[email protected]" | |
URLS="$URLBASE/redfish/v1" | |
while true; | |
do | |
NEWURLS="" | |
for URL in $URLS; |
This file contains 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
mkdir initrd-adapt | |
cd initrd-adapt/ | |
wget http://cdimage.debian.org/cdimage/unofficial/non-free/firmware/jessie/current/firmware.tar.gz | |
mkdir firmware | |
tar -C firmware -zxf firmware.tar.gz |
This file contains 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
%staff ALL=NOPASSWD: /usr/local/bin/sshfs |
This file contains 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
poten.at -fstype=sshfs,defer_permissions,allow_other,auto_cache,idmap=user,uid=501,gid=20 [email protected]:/data |
This file contains 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
%wheel ALL=NOPASSWD: /usr/local/bin/sshfs |
This file contains 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 | |
sudo /usr/local/bin/sshfs $@ |
This file contains 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
oldip="" ; while true; do myip=`curl -s http://amd.co.at/ip.php` || (echo "`date` network breakage") ; test "$myip" = "$oldip" || (echo "`date` new ip: $myip"); oldip=$myip; sleep 1; done |
This file contains 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
# Snatching a screenshot from a VXI11/LXI/SCPI device (tested on Rigol DS2072) | |
import vxi11, datetime | |
instr = vxi11.Instrument("192.168.0.22") | |
f=open(datetime.datetime.now().strftime("%Y-%m-%d_%H:%M:%S") + ".bmp", "w") | |
f.write(instr.ask_raw(":DISPlay:DATA?")[11:]) |