Skip to content

Instantly share code, notes, and snippets.

View sarlalian's full-sized avatar

Will Fife sarlalian

View GitHub Profile
@mashdot
mashdot / msmtprc
Created May 6, 2012 14:27
mutt + offlineimap + msmtp +msmtpQ
#Time-stamp: <2012-05-06 Sun 16:07 msmtprc>
# This file must have no more than user read/write permissions.
account work
host mail.work.net
user someone.something@work.net
password password
auto_from off
from someone.something@work.net
maildomain work.net
@christopher-b
christopher-b / passenger-statsd.rb
Last active December 15, 2015 10:39
Passenger - Statsd
#! /usr/bin/ruby
require 'socket'
statsd_host = ""
statsd_port = "8125"
namespace_prefix = "statsd-ruby"
mode = "statsd"
ARGV.each do |arg|
name, value = arg.split '='
@robinsmidsrod
robinsmidsrod / fetch_and_unpack_smartos.sh
Created April 16, 2013 08:35
Simple script to fetch and unpack the latest SmartOS platform in the current directory
#!/bin/bash
wget -c -N 'https://download.joyent.com/pub/iso/md5sums.txt' \
'https://download.joyent.com/pub/iso/platform-latest.tgz' && \
grep platform-latest.tgz md5sums.txt | perl -lane 'print "$F[0] $F[1]"' | md5sum -c - && \
tar xzvf platform-latest.tgz --no-same-owner && \
ln -snf $(ls -1d platform-* | grep -v 'platform-latest.tgz' | tail -n1) platform && \
echo ok
@jbarrett
jbarrett / post-receive.sh
Created November 14, 2012 11:06
First pass at Git (+ Gitweb) integration with FogBugz. Notes in comments.
#!/bin/bash
# Git hook to link a commit's BugzID in Fogbugz.
#
# Instead of a filename, script populates URL with repository name.
# This saves us needing to configure a repository per-project in Fogbugz.
# Description, first word in file should be repository-name.git
DESC=description
@robinsmidsrod
robinsmidsrod / ubuntu-installer-amd64-remote.ipxe
Created April 26, 2012 14:26
Ubuntu 12.04 netboot installer via iPXE
#!ipxe
#dhcp
echo Starting Ubuntu x64 installer for ${mac}
set base-url http://archive.ubuntu.com/ubuntu/dists/precise/main/installer-amd64/current/images/netboot/ubuntu-installer/amd64
kernel ${base-url}/linux
initrd ${base-url}/initrd.gz
#imgargs linux auto=true url=http://yourserver/some/path/preseed.cfg
boot ||
# If everything failed, give the user some options
echo Boot from ${base-url} failed
@gbin
gbin / PluginMaker.py
Last active July 24, 2019 21:16
This is an example plugin for errbot generating plugins and commands dynamically
from errbot import BotPlugin, botcmd
class PluginMaker(BotPlugin):
""" Example demonstrating how to create an errbot plugin out of thin air.
This basically generates a plugin from scratch and registers it at activation.
"""
def activate(self):
super().activate()
@gblmarquez
gblmarquez / win10-dev.md
Created May 18, 2017 13:44 — forked from wsargent/win10-dev.md
Windows Development Environment for Scala

Windows 10 Development Environment for Scala

This is a guide for Scala and Java development on Windows, using Windows Subsystem for Linux, although a bunch of it is applicable to a VirtualBox / Vagrant / Docker subsystem environment. This is not complete, but is intended to be as step by step as possible.

Sadly, much of this pertains to Git, GPG, SSH, and Windows all not working, rather than Windows Subsystem for Linux. There is no unified command line experience for native Windows still -- instead, there's a bunch of different conflicting programs which all bring along their own environment and need to be told about each other.

Harden Windows 10

Read the entire Decent Security guide, and follow the instructions, especially:

@kacole2
kacole2 / 1a-steps.md
Last active April 13, 2021 14:50
Kubernetes 1.14.1 Installation using kubeadm on vSphere with CentOS7

Steps to Install Kubernetes on CentOS7 with Kubeadm and vSphere

  1. On the master node: Edit the vsphere.conf file within the kubeadm-master.sh to match your environment. Copy kubeadm-master.sh to the master node:
sudo chmod u+x kubeadm-master.sh
sudo ./kubeadm-master.sh
  1. On each worker node copy kubeadm-worker.sh:
@napcs
napcs / .tmux.clipboard
Created August 15, 2011 19:28
My tmux config
# configuration for osx clipboard support
set-option -g default-command "reattach-to-user-namespace -l sh"
@ebidel
ebidel / Web Components Resources.md
Last active February 27, 2023 22:04
List of resources related to Web Components