Skip to content

Instantly share code, notes, and snippets.

View sarlalian's full-sized avatar

Will Fife sarlalian

View GitHub Profile
@robinsmidsrod
robinsmidsrod / _README.md
Last active May 11, 2024 00:20
Embedded iPXE menu to choose which network adapter to boot from (autodetects up to 10 adapters)

Go into your git checkout folder of ipxe.

Save the below file as nic-menu.ipxe.

Build iPXE like this:

cd src && make EMBED=../nic-menu.ipxe && cd ..

Requirements: current iPXE as of 2013-08-01 (for proper behavior of autoboot with a network device specified, netX feature, PCI vendor/device ID display and inc command)

@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
@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
@ebidel
ebidel / Web Components Resources.md
Last active October 12, 2024 17:10
List of resources related to Web Components
@tsiege
tsiege / The Technical Interview Cheat Sheet.md
Last active May 19, 2025 18:08
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

ANNOUNCEMENT

I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!






\

@staltz
staltz / introrx.md
Last active May 21, 2025 19:32
The introduction to Reactive Programming you've been missing
@cirrusUK
cirrusUK / .Xresources
Last active April 3, 2024 11:19
termite emulator orange theme and other stuff
! __ ___ __ ___ ___ ___ _ _ _ __ ___ ___ ___
! \ \/ / '__/ _ \/ __|/ _ \| | | | '__/ __/ _ \/ __|
! _ > <| | | __/\__ \ (_) | |_| | | | (_| __/\__ \
!(_)_/\_\_| \___||___/\___/ \__,_|_| \___\___||___/
!
!## Colors
#define S_base03 #191919
#define S_base02 #073642
#define S_base01 #586e75
#define S_base00 #657b83
@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()
@Dhertz
Dhertz / Ubuntu_Aerial.md
Last active March 28, 2023 02:06
Quick overview of how to get Apple's new TV screensavers working on most linux systems.

Using Apple’s Aerial Screensavers on Ubuntu After coming across the [Aerial] (https://github.com/JohnCoates/Aerial) screensavers for Mac, and installing them, I decided that I had had enough of the graphics-demos of my Ubuntu Precise system. I hope to provide a simple guide on how to add them to your setup as well.

First, you need to install xscreensaver (for example with aptitude, but your distro should have it):

sudo aptitude install xscreensaver