Skip to content

Instantly share code, notes, and snippets.

Avatar

KenichiroMATOHARA matoken

View GitHub Profile
View awesome-audio.sh
#!/bin/bash
#-- ALSA Volume controle script
# http://hpv.cc/~maty/pukiwiki1/index.php?Linux%2FWindowManager%2Fawesome%2F3.5#ba87c638
MUTE=`amixer -c 0 get Master|tail -1|cut -d '[' -f 4|sed s/\]//`
if [ $MUTE = "on" ] ; then
ICON="/usr/share/icons/ContrastHigh/scalable/status/audio-volume-medium.svg"
else
View pfetch-logo_2020-12.tty.base91
4g_{YtK0Bt^AAA[*@ys!H6W!RQ;m!lk)G$+oD$Lmn66Jp2Ib/W$ANE*Wy)fCGtQ@yJp2gbgh2!C9
m//xiLL?QuwW_!C96=z^cLi"{iFSNlLI2WP;+uVm*llTkrNE2W$A]*Kka:WQRtc8wDX<C./<n`7F
RtlBbLX<uE/<CC7F.SoA7FRtlBbLi"{iFSNl5eGHs!u10mv,_WZcOuPJh/+uMOHX1Eo+[Rm(ZPaA
vDAAv(G$+oe#cQr}(4$NBtwAAA{ioZX<Ddx=pN3$TzIXuJT}=EaT5HT$Lm*Ykmi"3vcLi"lBbLi"
lBbLo<PuBT@S<13tlB*Nliza+fM:`HN!h[4EG<v;bjkC7FJ3lBbLi"lBbLi"Q@vPZc[*KkW:$yYt
lBbL["lBbLyq<C2WU)fCDm*l7R}?=C2W$A;C2W$A;C2W$A;Cb|y4*xV.q6>NGlra+fM:{0x#W6@P
Glrayby4*xB)ymDglDQuPJh/+uMOHX1E!kjXP1W~,61RY4AAAAs!N4z4xo6=KPxJAA|BAAtJuX^*
a0!MsR>SSiDgk%C=G$U:;xV.66kLi"lBbLyq3eGHs!CJ2#mBbLi"Q@cLL?QuBT@Sx23tlBbLyqJI
2WU)fCDm*lgSSB;C2WDB7FRtlBkgZc[*Kka:#FRtGCbLKi@D2WU)fCDm*lgSSBf+5W$A^K2W&C8y
5nIXuJp2Ib/Wn`~0G3lBbLEU{Z`&P;+uLmj66J$%VcGHy4aCfS$4wDZcOuPJs4.j:sc;;CGOAAC"
View gist:9c7e04ad9529d3111fa959912db2e5d3
$ ./mkfs/mkfs.f2fs 0V
F2FS-tools: mkfs.f2fs Ver: 1.14.0 (2020-08-24)
Info: Disable heap-based policy
Info: Debug level = 0
Info: Trim is enabled
probe of 0V failed, cannot detect existing filesystem.
Use the -f option to force overwrite.
View ddrescue.log
$ time sudo ddrescue -n -v /dev/sda ./sda.dd ./sda.dd.log
GNU ddrescue 1.23
About to copy 250059 MBytes from '/dev/sda' to './sda.dd'
Starting positions: infile = 0 B, outfile = 0 B
Copy block size: 128 sectors Initial skip size: 4992 sectors
Sector size: 512 Bytes
Press Ctrl-C to interrupt
ipos: 250059 MB, non-trimmed: 0 B, current rate: 13492 kB/s
opos: 250059 MB, non-scraped: 0 B, average rate: 10338 kB/s
@matoken
matoken / gist:fe660695cdccdb00369a5164a2c2bd08
Created Aug 28, 2020
crontab -l | grep -v ^# | grep firefox
View gist:fe660695cdccdb00369a5164a2c2bd08
4,9,14,19,24,29,34,39,44,49,54,59 * * * * ps ux|grep firefox | grep headless | awk '{print $2}' | xargs kill
*/5 * * * * ~/go/bin/sysbox chronic firefox -p headless1 --headless --private-window --screenshot ~/tmp/A会場_`date +\%Y-\%m-\%d_\%T`.png "https://www.youtube.com/watch?v=eBhPRgsnPA0"
*/5 * * * * ~/go/bin/sysbox chronic firefox -p headless2 --headless --private-window --screenshot ~/tmp/B会場_`date +\%Y-\%m-\%d_\%T`.png "https://www.youtube.com/watch?v=r1JbktuBTK4"
*/5 * * * * ~/go/bin/sysbox chronic firefox -p headless3 --headless --private-window --screenshot ~/tmp/C会場_`date +\%Y-\%m-\%d_\%T`.png "https://www.youtube.com/watch?v=heVrxf8M1SU"
*/5 * * * * ~/go/bin/sysbox chronic firefox -p headless4 --headless --private-window --screenshot ~/tmp/D会場_`date +\%Y-\%m-\%d_\%T`.png "https://www.youtube.com/watch?v=NpBbhKh0lfI"
*/5 * * * * ~/go/bin/sysbox chronic firefox -p headless5 --headless --private-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