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
// Vary crf value, higher value = smaller file size / less quality | |
ffmpeg -i input.mp4 -preset veryslow -crf 20 output.mp4 |
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
// Resize to 720px width, scale height and avoid "height not divisible by 2" errors | |
ffmpeg -i input.mp4 -filter:v scale="trunc(oh*a/2)*2:720" -c:a copy output.mp4 |
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
git branch --no-merged master --sort=-committerdate |
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
git for-each-ref --sort=-committerdate refs/heads/ --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:red)%(objectname:short)%(color:reset) - %(contents:subject) - %(authorname) (%(color:green)%(committerdate:relative)%(color:reset))' |
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
find . -name 'version.php' -path '*wp-includes/*' -print -exec grep '$wp_version =' {} \; -exec echo '' \; |
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
# Alias shortcut for php command line debugging, useful for debugging command line apps in PhpStorm | |
# Usage: phpdebug app/console mycommand | |
alias phpdebug="php -dxdebug.remote_enable=1 -dxdebug.remote_mode=req -dxdebug.remote_port=9000 -dxdebug.remote_host=127.0.0.1 -dxdebug.remote_connect_back=0" |
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
# Add the branch name to the end of the path in the terminal and colour code it depending on git status | |
# Add the following to the end of .bashrc in your home directory | |
parse_git_colour() { | |
if [[ $(git status 2> /dev/null) =~ "nothing to commit" ]]; then | |
echo -ne "\033[0;33m" | |
else | |
echo -ne "\033[0;31m" | |
fi | |
} |
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
#!/usr/bin/php -q | |
<? | |
#WHMADDON:wordpressversions:WordPress Versions | |
?> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title>WordPress Versions</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> | |
<link rel='stylesheet' type='text/css' href='/cPanel_magic_revision_0/combined_optimized.css' /><link rel='stylesheet' type='text/css' href='/cPanel_magic_revision_0/themes/x/style_optimized.css' /><link rel='stylesheet' type='text/css' href='/cPanel_magic_revision_0/yui/datatable/assets/skins/sam/datatable.css' /><style>.sortable th, .sortable td { padding: 5px; }</style> |
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 | |
/* | |
* File: SimpleImage.php | |
* Author: Simon Jarvis | |
* Copyright: 2006 Simon Jarvis | |
* Date: 08/11/06 | |
* Link: http://www.white-hat-web-design.co.uk/articles/php-image-resizing.php | |
* | |
* This program is free software; you can redistribute it and/or | |
* modify it under the terms of the GNU General Public License |
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 | |
/* | |
* File: CurrencyConverter.php | |
* Author: Simon Jarvis | |
* Copyright: 2005 Simon Jarvis | |
* Date: 10/12/05 | |
* Link: http://www.white-hat-web-design.co.uk/articles/php-currency-conversion.php | |
* | |
* This program is free software; you can redistribute it and/or |
NewerOlder