start new:
tmux
start new with session name:
tmux new -s myname
| ffmpeg -i foo.m4a -acodec libmp3lame -aq 2 bar.mp3 | |
| for foo in *.m4a; do ffmpeg -i "$foo" -acodec libmp3lame -aq 2 "${foo%.m4a}.mp3"; done |
| # https://github.com/rg3/youtube-dl/ | |
| # On ubuntu: apt-get install libav-tools | |
| # Download Playlist to batch of MP3s | |
| youtube-dl -f bestvideo+bestaudio --extract-audio --audio-format mp3 --prefer-avconv --playlist-random https://www.youtube.com/playlist?list=XXXXX | |
| # Download individual song | |
| youtube-dl -f bestvideo+bestaudio --extract-audio --audio-format mp3 --prefer-avconv https://www.youtube.com/watch?v=ZZZZZZZ |
| <?php | |
| // add_filter( 'wpseo_enable_xml_sitemap_transient_caching', '__return_false'); | |
| /** | |
| * Create a new custom yoast seo sitemap | |
| */ | |
| add_filter( 'wpseo_sitemap_index', 'ex_add_sitemap_custom_items' ); | |
| add_action( 'init', 'init_wpseo_do_sitemap_actions' ); |
| add_action('amp_post_template_css','ampforwp_add_custom_css_example', 11); | |
| function ampforwp_add_custom_css_example() { ?> | |
| /* Add your custom css here */ | |
| body { | |
| background: red; | |
| } | |
| <?php | |
| } |
| #!/bin/bash | |
| # | |
| # This script configures WordPress file permissions based on recommendations | |
| # from http://codex.wordpress.org/Hardening_WordPress#File_permissions | |
| # | |
| # Author: Michael Conigliaro <mike [at] conigliaro [dot] org> | |
| # | |
| WP_OWNER=www-data # <-- wordpress owner | |
| WP_GROUP=www-data # <-- wordpress group | |
| WP_ROOT=$1 # <-- wordpress root directory |
| ########## Install NGINX ############## | |
| # Install software-properties-common package to give us add-apt-repository package | |
| sudo apt-get install -y software-properties-common | |
| # Install latest nginx version from community maintained ppa | |
| sudo add-apt-repository ppa:nginx/stable | |
| # Update packages after adding ppa |
| <?php | |
| /*********************** | |
| *@author: Ritesh Agrawal | |
| *@description: Identifies php files that contain leading or trailing spaces before or after PHP opening or closings tags | |
| *@version: 1.0 | |
| *@date: Nov 06, 2007 | |
| @todo – check only *.PHP or *.CTP files rather than checking all of the files | |
| – html based output | |
| ***********************/ | |
| //Set Source Path |