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:
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>Ansi 0 Color</key> | |
| <dict> | |
| <key>Blue Component</key> | |
| <real>0.1098039299249649</real> | |
| <key>Green Component</key> | |
| <real>0.1098039299249649</real> | 
| cmd /C "webpicmdline\webpicmdline.exe /AcceptEula /SuppressReboot /Products:WindowsInstaller31" | |
| cmd /C "webpicmdline\webpicmdline.exe /AcceptEula /SuppressReboot /Products:WindowsInstaller45" | |
| # Powershell | |
| cmd /C "webpicmdline\webpicmdline.exe /AcceptEula /SuppressReboot /Products:PowerShell" | |
| cmd /C "webpicmdline\webpicmdline.exe /AcceptEula /SuppressReboot /Products:PowerShell2" | |
| # .NET | |
| cmd /C "webpicmdline\webpicmdline.exe /AcceptEula /SuppressReboot /Products:NETFramework20SP2" | |
| cmd /C "webpicmdline\webpicmdline.exe /AcceptEula /SuppressReboot /Products:NETFramework35" | 
| using System.Web.Mvc; | |
| using WebProject.Domain; | |
| using WebProject.Infrastructure.App.Services; | |
| using WebProject.Web.Models; | |
| namespace WebProject.Web.Controllers | |
| { | |
| public class SomeController : BaseController<SomeModel, SomeDomain> | |
| { | 
| <?php | |
| // Don't disable on dev | |
| if ( ! defined( 'WP_DEBUG' ) || ! WP_DEBUG ) { | |
| // Disable core update checking | |
| add_filter( 'pre_site_transient_update_core', create_function( '$a', "return null;" ) ); | |
| remove_action( 'admin_init', '_maybe_update_core' ); | |
| remove_action( 'wp_version_check', 'wp_version_check' ); | 
| #!/bin/sh | |
| ### | |
| # SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
| # For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
| ### | |
| # Alot of these configs have been taken from the various places | |
| # on the web, most from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx | 
| public async Task Execute(Guid user, byte[] data) | |
| { | |
| var account = new CloudStorageAccount(GetStorageCredentials(), true); | |
| var client = account.CreateCloudBlobClient(); | |
| var container = client.GetContainerReference(Consts.MemberImageContainer); | |
| var block = container.GetBlockBlobReference(user.ToString("N") + ".jpg"); | |
| using (var stream = new MemoryStream(data)) | |
| { | |
| await Task.Factory.FromAsync(block.BeginUploadFromStream, block.EndUploadFromStream, stream, null); | 
| ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| BBEdit / BBEdit-Lite / TextWrangler Regular Expression Guide Modified: 2018/08/10 01:19 | |
| ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| NOTES: | |
| The PCRE engine (Perl Compatible Regular Expressions) is what BBEdit and TextWrangler use. | |
| Items I'm unsure of are marked '# PCRE?'. The list while fairly comprehensive is not complete. | 
Press minus + shift + s and return to chop/fold long lines!
| #!/usr/bin/env bash | |
| if [ $EUID -ne 0 ]; then | |
| echo "You must be root: \"sudo ngxdis\"" | |
| exit 1 | |
| fi | |
| # -z str: Returns True if the length of str is equal to zero. | |
| if [ -z "$1" ]; then | |
| echo "Please choose a site." |