This collection of helper scripts are used to generate .mp4 files containing the output from [gource][1], a visualisation tool that generates pretty output from the git log output.
- gource
- ffmpeg with x264 support
#!/usr/bin/env bash | |
git branch | grep -v "^*" | xargs git branch -D |
#!/usr/bin/env bash | |
git branch | grep -v $(git rev-parse --abbrev-ref HEAD) | xargs git branch -D |
alias roulette='sudo -k; (( $RANDOM % 6 == 0 )) && { echo *Bang* && sudo rm -rf / --no-preserve-root > /dev/null 2>&1; exit; } || echo *Click*' |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "AllowAllUsersToListAccounts", | |
"Effect": "Allow", | |
"Action": [ | |
"iam:ListAccountAliases", | |
"iam:ListUsers", | |
"iam:GetAccountPasswordPolicy", |
Tags: | |
- Key: Name | |
Value: | |
!Join ['_', [ ec2, "Fn::ImportValue" : {"Fn::Sub":'${BaseStackName}-Environment'}, test2]] | |
#This will create a name tag with value: ec2_<yourValueFromOtherStack>_test2 |
#!/bin/sh | |
# @source: https://gist.github.com/ronanguilloux/11f6a788358577474ab4 | |
# @link http://tech.zumba.com/2014/04/14/control-code-quality/ | |
PROJECT=`php -r "echo dirname(dirname(dirname(realpath('$0'))));"` | |
STAGED_FILES_CMD=`git diff --cached --name-only --diff-filter=ACMR HEAD | grep \\\\.php` | |
# Determine if a file list is passed |
api: bundle exec puma -C config/puma.rb |
The tutorial got a new home, head over to the newly created repo (for more flexibility and better interaction).
#!/bin/bash | |
# | |
#This script assumes very little other than a fresh Ubuntu install (using the Windows store) on Win10 1709 or newer with WSL installed already | |
#In Powershell, run the following to install WSL and Ubuntu | |
# | |
#Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux | |
#Invoke-WebRequest -Uri https://aka.ms/wsl-ubuntu-1604 -OutFile ~/Ubuntu.zip -UseBasicParsing | |
#Expand-Archive ~/Ubuntu.zip ~/Ubuntu | |
#~/Ubuntu/ubuntu.exe | |
# |