Browse Source

First commit

master
giomba 3 years ago
commit
45330a58ea
  1. 3
      check-cpu-throttle.sh
  2. 7
      cuesplit.sh
  3. 6
      nat-start.sh
  4. 3
      pdf-bw.sh

3
check-cpu-throttle.sh

@ -0,0 +1,3 @@
#!/bin/bash
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq | paste -s | awk '{print $1/$2}'

7
cuesplit.sh

@ -0,0 +1,7 @@
#!/bin/bash
FLAC=$(find . -iname "*.flac")
CUE=$(find . -iname "*.cue")
shnsplit -f "$CUE" -t "%n %t" "$FLAC"

6
nat-start.sh

@ -0,0 +1,6 @@
#!/bin/bash
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -P FORWARD ACCEPT
sysctl -w net.ipv4.ip_forward=1

3
pdf-bw.sh

@ -0,0 +1,3 @@
#!/bin/bash
convert -density 300 -colorspace GRAY "$1" "$1.gray.pdf"
Loading…
Cancel
Save