Skip to content

Commit da6fb79

Browse files
author
tkhaew
committed
add a few scripts
1 parent a46ab3b commit da6fb79

File tree

3 files changed

+25
-4
lines changed

3 files changed

+25
-4
lines changed

README

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
Place to put small code scraps and pull in other small repos.
22

3+
scripts:
4+
qrclip - capture qr code from webcam/img to clipboard
5+
entropy - monitor entropy available by showing every 1 second
6+
37
greasemonkey:
48
collapsetips - script to collapse ChangeTips on /r/bitcoin
59

6-
From other repos/gists:
7-
8-
subgit - nice script for easily managing sub-projects (like these)
9-
bkkcoins - useful stuff for Bitcoin
10+
from other repos/gists:
11+
subgit - nice script for easily managing sub-projects (like these)
12+
bkkcoins - useful stuff for Bitcoin
1013

scripts/entropy

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env python
2+
3+
import time
4+
5+
while True:
6+
with open('/proc/sys/kernel/random/entropy_avail', 'r') as f:
7+
print(f.read().rstrip())
8+
time.sleep(1.0)

scripts/qrclip

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
if [ -z "$1" ]; then
4+
zbarcam --raw |xclip -selection c
5+
elif [ "$1" = "btc" ]; then
6+
zbarcam --raw |sed 's/.*\://' |xclip -selection c
7+
else
8+
zbarimg -q --raw "$1" |xclip -selection c
9+
fi
10+

0 commit comments

Comments
 (0)