This file contains 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
<?php | |
/** | |
* bashful.php | |
* | |
* Colors output to bash console | |
* @author Jonas Skovmand <[email protected]> | |
* @version 1.0 | |
* @package default | |
*/ |
This file contains 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
# convert all .wav files to ogg/vorbis | |
for x in *.wav; do ffmpeg -i "$x" "`basename "$x" .wav`.ogg" -acodec vorbis; done | |
# convert all .mp3 files to ogg/vorbis | |
for x in *.mp3; do ffmpeg -i "$x" "`basename "$x" .mp3`.ogg" -acodec vorbis; done | |
#convert all .wav files to .mp3 | |
for x in *.wav; do ffmpeg -i "$x" "`basename "$x" .wav`.mp3"; done | |
#convert all .mp3 files to .wav |
This file contains 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
<?php | |
$tbs_per_additional_page = 6; | |
function tbs_paged($query) { | |
global $tbs_per_additional_page; | |
if ( $query->get('post_type') == 'post_editorial' || $query->get('section') != '' ) | |
{ | |
if ( intval($query->get('paged')) > 1 ) |
This file contains 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
/** | |
* Draws random winners from followers on Instagram | |
* To be used on Statigram's My Followers page | |
* @author Jonas Skovmand ([email protected]) | |
* @usage Paste the code in to your browser console and let it rip. | |
* You will have to scroll to the bottom of your followers list as well. | |
**/ | |
var followers = $('.detailUser'), | |
winner_count = 5, |