This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -s http://127.0.0.1:8080/requests/status.xml -u :password > /tmp/vlcstatus | |
cat /tmp/vlcstatus | sed '/^<state/!d' | sed 's/<state>//g' | sed 's/<\/state>//g' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python2 | |
import snowboydecoder,os | |
import sys | |
import signal | |
from commands import getoutput as cgo | |
from time import sleep | |
interrupted = False | |
#if you want to change the trigger message, | |
#record a new model with make_model.py modelname |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python2 | |
import os | |
import sys | |
import base64 | |
import requests | |
def get_wave(fname): | |
with open(fname) as infile: | |
return base64.b64encode(infile.read()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
#### Google TTS multithreaded cacher. Download the word once, never again! | |
#### There's a fair amount of 'anonymization' too, as it would be impossible | |
#### to determine what the un-cached sentence structure was, or whether | |
#### words were already cached and played locally. | |
#sets crossfade between words, for some amount of 'smoothing' | |
crossfade_amount = 40 | |
#sets fade_in/out amount, for less abruptness also |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import os,sys,shutil | |
from playsound import playsound | |
phrase = sys.argv[1] | |
with open('harvard_sentences.txt','w') as f: | |
f.write("some horseshit it never reads this line\n1. "+str(phrase)+"\n") | |
os.system('python synthesize.py') | |
phrase=phrase.replace(" ","") | |
shutil.move('samples/1.wav','backup/'+phrase+'.wav') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import requests | |
import subprocess | |
import json | |
# Check local best block hash against api.navexplorer.com's best hash. | |
# 'navcoin-cli' needs to be in your PATH, and obvs navexplorer.com has to be up. | |
def api_get(endpoint): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
# might need to change instances of 'user' to your username. | |
# add following line to your crontab to have a fresh (ish) bootstrap on hand. | |
# @weekly tar -czf /home/user/projects/bootstrap/bootstrap.tar /home/user/.navcoin4/chainstate /home/user/.navcoin4/blocks | |
navcoin-cli stop | |
echo "Waiting a bit so navcoind has completed..." | |
sleep 10 | |
cd /home/user | |
mkdir tmp_bootstrap |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# the absolute least required to make binance api requests in one function. | |
# everything is in this file and only pure python is needed. | |
# can just scroll to bottom and create an apiGet('api/v1/etcetc') call and start | |
# parsing results without spending ten hours learning syntax and workarounds | |
# for some new python module (ccxt) | |
#API Secrets go here: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# this got me start to finish on ubuntu 19.04 | |
# after some 12 odd hours of hair pulling | |
# it was so tedious i recorded each step once i found | |
# the step, and got it to complete successfully. | |
# no promises it will work 'out of the box' for you. | |
# feel free to steal/revise/comment/gfy | |
sudo apt install git libtool libtool-bin autoconf autopoint \ | |
build-essential libgcrypt-dev libidn11-dev zlib1g-dev \ | |
libunistring-dev libglpk-dev miniupnpc libextractor-dev \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import re | |
import subprocess | |
stats=subprocess.getoutput('gnunet-statistics').split('\n') | |
while True: | |
lines,j=[],[] | |
c=0 | |
for i in stats: |
OlderNewer