Skip to content

Instantly share code, notes, and snippets.

@s0kil
s0kil / gist:98e7487557537581b485b1d64ae13950
Created March 4, 2022 12:11
Linux split csv file into multiple and keep header
cat Large-File.csv | parallel --header : --pipe -N2000 'cat >file_{#}.csv'
@s0kil
s0kil / antminer-clock-error.txt
Created December 3, 2021 04:19
Antminer Clock Error
driver/uart.c:49:set_baud: set UART baud to 3000000
driver/driver-btm-api.c:821:check_clock_counter: freq 50 clock_counter_limit 6
driver/register.c:699:quick_dump_core_hash_clock_counter: bad clock counter. chain = 1, asic = 7, core = 0, found 0, clock counter 0x00000000
Assert fail!! driver/driver-btm-api.c:927: clock count check failed, retry.
@s0kil
s0kil / gist:037d90a9bc791a104ad8e4be71da7cc2
Created September 23, 2021 13:03
Install snapd Chromos Linux
sudo apt install libsquashfuse0 squashfuse fuse
sudo apt install snapd
@s0kil
s0kil / ASIC-Miner-AliExpress-Scams.md
Created July 28, 2021 20:11
ASIC Miner AliExpress Scams

ASIC Miner AliExpress Scams

@s0kil
s0kil / as-html.js
Created July 6, 2021 17:30
Get Miner Names From ASIC Miner Value
[...document.querySelectorAll("#datatable_profitability > tbody > tr > td:nth-child(1) > div > div:nth-child(2) > a > span:nth-child(2)")].reduce((all, item) => {
let a = `<li><a href='${item.parentNode.href}'>${item.textContent}</a></li>`
return `${all}${a}`
}, "")
@s0kil
s0kil / docker-cleanup.sh
Created June 30, 2021 18:19
Docker Cleanup
# Kill All Containers
sudo docker kill $(sudo docker ps -q)
# Prune Containers, Images, Volumes, Cache
sudo docker system prune --all
nix-env -iA nixpkgs.haskellPackages.haskell-language-server
@s0kil
s0kil / gist:178e38d46adb8c80a0817d5f7cc421c6
Last active March 27, 2021 15:47
MediaStream Volume Meter
https://gist.github.com/khankuan/a69a448012facaeb069e
https://gist.github.com/yying/754313510c62ca07230c
https://github.com/webrtc/samples/tree/gh-pages/src/content/getusermedia/volume