Skip to content

Instantly share code, notes, and snippets.

Building something awesome

Christopher Beck cwbeck

Building something awesome
View GitHub Profile
enricofoltran / main.go
Last active August 20, 2023 08:59
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies
View main.go
package main
import (
awmichel /
Last active February 1, 2023 19:20
Docker Machine OSX Autostart

Docker Machine OSX Autostart

This is a simple launchd config that will start your default docker-machine on startup. You can customize the machine that is started by updating lines 11 and 16 with the correct machine name.


  1. Copy the file com.docker.machine.default.plist below to ~/Library/LaunchAgents/com.docker.machine.default.plist.
  2. Run the following in a terminal: launchctl load ~/Library/LaunchAgents/com.docker.machine.default.plist
  3. Profit!
xdamman /
Created July 2, 2014 21:03
Install latest ffmpeg on ubuntu 12.04 or 14.04
# Bash script to install latest version of ffmpeg and its dependencies on Ubuntu 12.04 or 14.04
# Inspired from
# Remove any existing packages:
sudo apt-get -y remove ffmpeg x264 libav-tools libvpx-dev libx264-dev
# Get the dependencies (Ubuntu Server or headless users):
sudo apt-get update
srpouyet / mongodb
Created February 29, 2012 17:14
Mongodb logrotate on Ubuntu
View mongodb
# Put this in /etc/logrotate.d/mongodb
/var/log/mongo/*.log {
rotate 30