Skip to content

Instantly share code, notes, and snippets.

View mbeacom's full-sized avatar
:shipit:
Working from home

Mark Beacom mbeacom

:shipit:
Working from home
View GitHub Profile
@mbeacom
mbeacom / Brewfile
Created November 18, 2019 18:21
Base Brewfile
tap "aws/tap"
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/cask-fonts"
tap "homebrew/cask-versions"
tap "homebrew/core"
tap "wallix/awless"
tap "wata727/tflint"
brew "amazon-ecs-cli"
brew "ansible"
@mbeacom
mbeacom / androidgif.sh
Last active June 11, 2016 20:17
Records your Android device screen and converts it from MP4 to GIF
#!/bin/sh
# Saves screen grab to mp4 on device until you escape script -> pull mp4 from device and delete remote copy -> convert mp4 to gif and delete mp4
# Setup (OSX):
# This script requires ffmpeg and adb in your $PATH, installation steps are up to you, but these are pretty simple:
# Install Brew if you haven't already via: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# brew install android-platform-tools; brew install ffmpeg
# wget https://gist.github.com/mbeacom/afcee5b866945a14a41e321569c2242b/raw/d1328b57efba71d2b6c8cc89810622a1cefa185c/androidgif.sh
# chmod a+x androidgif.sh
@mbeacom
mbeacom / setup_ntp.sh
Created June 3, 2016 20:51
Shell script for ubuntu servers to install NTP, set the NTP preferred servers to North America, and restart the service.
sudo apt-get update && \
sudo apt-get install ntp && \
sudo sed -i 's/ubuntu.pool.ntp.org/north-america.pool.ntp.org/g' /etc/ntp.conf && \
sudo service ntp restart
# One-liner
# sudo apt-get update; sudo apt-get install ntp; sudo sed -i 's/ubuntu.pool.ntp.org/north-america.pool.ntp.org/g' /etc/ntp.conf; sudo service ntp restart
@mbeacom
mbeacom / flex_sdk.rb
Last active March 11, 2016 20:26
Adobe Flex SDK 4.6 Build 23201 Brew Install Formula
require 'formula'
class FlexSdk < Formula
url 'http://fpdownload.adobe.com/pub/flex/sdk/builds/flex4.6/flex_sdk_4.6.0.23201B.zip'
sha256 '622b63f29de44600ff8d4231174a70fcb3085812c0e146a42e91877ca8b46798'
homepage 'http://opensource.adobe.com/'
version 'v4.6.0.23201'
def install
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'