Skip to content

Instantly share code, notes, and snippets.

Avatar

KenichiroMATOHARA matoken

View GitHub Profile
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-window --screenshot ~/tmp/NEC会場_`date +\%Y-\%m-\%d_\%T`.png "https://www.youtube.com/watch?v=wp9Xc_Ex67c
View ttyload-0.5+20131024+gitf949537_armel-static.xz.base91
s((Kx#AAhtK9&lkATXx(BAA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G[8ETFrNL6Mt={MeHgAVSdM9K$ttnn#C0wxq?Q#H#p1_A.luFE+tF~*Fht7^?S=^
View steamcount.bash
#!/bin/bash
# Steam検索
# https://store.steampowered.com/search/
# ignore_preferences=1 個人設定に基づいたタイトルの除外の無効化
# https://store.steampowered.com/search/?ignore_preferences=1
# Windowsの検索
# https://store.steampowered.com/search/?ignore_preferences=1&os=win
# Mac OS Xの検索
# https://store.steampowered.com/search/?ignore_preferences=1&os=mac
# SteamOS + Linuxの検索
View gist:16bfe4bce3388ef927caa5f3da1e3d9a
<!--
ここにたどり着いたGeekなみなさま。
特にCUI中心に作業しているプログラマーのみなさま。
今回、実装を担当したプログラマーです。
CUIで操作するWebサイト、楽しんでいただけているでしょうか。
「この再現度で納得してくれるかな? このコマンドに気づくかな?」
と皆さんの反応に想像を膨らませながらプログラムしています。
どうぞ皆さん、思いつくコマンドを叩いてみてください。
@matoken
matoken / log
Created Jul 29, 2020
$ sudo ./example 2&>1
View log
UVC initialized
Device found
Device opened
First format: (YUY2) 640x480 30fps
Streaming...
callback! frame_format = 3, width = 640, height = 480, length = 614400, ptr = 12345
callback! frame_format = 3, width = 640, height = 480, length = 614400, ptr = 12345
callback! frame_format = 3, width = 640, height = 480, length = 614400, ptr = 12345
callback! frame_format = 3, width = 640, height = 480, length = 614400, ptr = 12345
You can’t perform that action at this time.