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/env ruby | |
require 'bundler/inline' | |
gemfile do | |
source 'https://rubygems.org' | |
gem 'benchmark-ips' | |
end | |
require 'benchmark/ips' |
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
tag: browser | |
browser.host: companyname-jira.atlassian.net | |
browser.host: companyname-confluence.atlassian.net | |
- | |
# https://confluence.atlassian.com/doc/confluence-wiki-markup-251003035.html | |
(bull | bullet | bulleted) list: "- " | |
(number | numbered) list: "# " | |
bold: key(cmd-b) | |
(italic | italicize): key(cmd-i) | |
(under | underline): key(cmd-u) |
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/env bash | |
# Usage: | |
# !!! BACKUP ALL PHOTOS BEFORE USING :) !!! | |
# Add this script as a file in `/usr/local/bin`, call it timestamp. | |
# Make it executable, run `chmod +x /usr/local/bin/timestamp` | |
# In terminal change into the directory which contains photos. `cd ~/Photos/blah` | |
# Run the script `timestamp`. | |
# It will create an `output` folder in the current directory and place all modified photos inside it. | |
set -euo pipefail |
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
#!/bin/bash | |
# This script just automates the steps shown in highest rated StackExchange asnwer at the time: | |
# http://dba.stackexchange.com/questions/8982/what-is-the-best-way-to-reduce-the-size-of-ibdata-in-mysql#answer-8983 | |
# Learn more about the ibdata1 file: | |
# https://www.percona.com/blog/2013/08/20/why-is-the-ibdata1-file-continuously-growing-in-mysql/ | |
RESET="\033[0m" | |
RED="\e[31m" |
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
#!/bin/sh | |
# Abort commit if there are changes to the database.yml | |
echo "$(tput setaf 3)Checking for changes to config/database.yml$(tput sgr 0)" | |
if git diff --name-status --cached | grep -q 'config/database.yml' | |
then | |
echo "pre-commit: $(tput setaf 1)Aborting commit due to changes in the database.yml$(tput sgr 0)" | |
exit 1 | |
else |
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
#!/bin/bash | |
# Open file or commit on Github | |
function usage { | |
ME=${0##*/} | |
echo "Options:" | |
echo " -f Path to file" | |
echo " -b Branch to target" | |
echo " -c Commit to show" | |
echo "" |