Skip to content

Instantly share code, notes, and snippets.

View patillacode's full-sized avatar
🍕
I'm generally a very pragmatic person: that which works, works. - Linus Torvalds

Patilla Code patillacode

🍕
I'm generally a very pragmatic person: that which works, works. - Linus Torvalds
View GitHub Profile
@patillacode
patillacode / convert.sh
Created October 17, 2018 00:32
Small script convert wav to mp3
#!/bin/bash
for i in *.wav; do
ffmpeg -i "$i" -vn -ar 44100 -ac 2 -ab 320k -f mp3 "${i%%.*}.mp3"
done
youtube-dl --playlist-reverse -o "%(playlist_index)s-%(title)s.%(ext)s"
Verifying my Blockstack ID is secured with the address 1P4PPWpCPAngkuuazefTmer9cnvyQudhy7 https://explorer.blockstack.org/address/1P4PPWpCPAngkuuazefTmer9cnvyQudhy7
@patillacode
patillacode / tweet.py
Last active December 6, 2015 03:25
Tweet returned by Twitter API (json encoded)
{ 'contributors': None,
'coordinates': None,
'created_at': 'Fri Dec 04 15:01:22 +0000 2015',
'entities': {'hashtags': [{'indices': [67, 78], 'text': 'javascript'},
{'indices': [79, 83], 'text': 'php'},
{'indices': [84, 91], 'text': 'python'},
{'indices': [92, 113], 'text': 'softwarearchitecture'}],
'symbols': [],
'urls': [{'display_url': 'goo.gl/fb/XGY31t',
'expanded_url': 'http://goo.gl/fb/XGY31t',