This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
| public static string PHPMd5Hash(string pass) | |
| { | |
| using (MD5 md5 = MD5.Create()) | |
| { | |
| byte[] input = Encoding.UTF8.GetBytes(pass); | |
| byte[] hash = md5.ComputeHash(input); | |
| return BitConverter.ToString(hash).Replace("-", ""); | |
| } | |
| } |
| #!/usr/bin/php -q | |
| <?php | |
| /* | |
| Ampp3d - Ampp3d Google Analytics | |
| Version: 0.1 | |
| Author: William Turrell | |
| Author URI: wturrell.co.uk | |
| Description: Use Google Analytics API to retrieve most popular pages and construct an HTML fragment we can use | |
| Adapted from http://www.techpunch.co.uk/development/oauth2-google-analytics-api-service-account-php and | |
| https://github.com/lobsterdore/analytics-api-oauth2-example/blob/master/mostPopularContentExample.php |
| Moved to https://github.com/xwp/vip-quickstart/pull/3 |
Here are some handy git shortcuts I use with oh-my-zsh to both speed up and protect my workflow.
All merges are handled without a fast-forward. All merges use the default messaging. Whenever possible, autocompletion is provided.
Merges the current branch into another branch and prompts you to automatically push changes.
| { | |
| "disallowKeywordsOnNewLine": ["else"], | |
| "disallowMixedSpacesAndTabs": "smart", | |
| "disallowNewlineBeforeBlockStatements": true, | |
| "disallowSpaceAfterObjectKeys": true, | |
| "disallowSpacesInAnonymousFunctionExpression": { | |
| "beforeOpeningRoundBrace": true | |
| }, | |
| "disallowTrailingWhitespace": true, | |
| "requireBlocksOnNewline": true, |
| for plugin in `wp plugin list --format=csv | cut -d , -f 1`; | |
| do | |
| wp vuln plugin-check $plugin; | |
| done |
| // MIT Licensed | |
| // Author: jwilson8767 | |
| /** | |
| * Waits for an element satisfying selector to exist, then resolves promise with the element. | |
| * Useful for resolving race conditions. | |
| * | |
| * @param selector | |
| * @returns {Promise} | |
| */ |
⚠ This post is fairly old. I don't keep it up to date. Be sure to see comments where some people have posted updates
What this will cover
www.website.com to website.comindex.html)