Skip to content

Instantly share code, notes, and snippets.

View bdrewery's full-sized avatar

Bryan Drewery bdrewery

  • Seattle, Washington
View GitHub Profile
@bdrewery
bdrewery / gist:1400847
Created November 28, 2011 15:49
EFNet ssl servers
:servers_ssl
efnet.xs4all.nl
irc.choopa.ca:9999
irc.choopa.net:9999
irc.eversible.com:9999
irc.paraphysics.net
irc.servercentral.net:9999
irc.shoutcast.com:8000
irc.umich.edu:9999
irc.underworld.no
@bdrewery
bdrewery / gist:1810779
Created February 12, 2012 20:47
Markdown cheat sheet

Header 1

Header 2

Header 3 ### (Hashes on right are optional)

Header 4

Header 5

Markdown plus h2 with a custom ID ## {#id-goes-here}

Link back to H2

This is a paragraph, which is text surrounded by whitespace. Paragraphs can be on one

@bdrewery
bdrewery / tunefs
Created February 14, 2012 14:06
FreeBSD rc.d/tunefs - Set mount flags remotely
#!/bin/sh
#
# $FreeBSD: src/etc/rc.d/tunefs,v 1.0 09/22/2010 19:54:28 bdrewery Exp $
#
# PROVIDE: tunefs
# REQUIRE: fsck
# BEFORE: root
# KEYWORD: nojail
# Last Updated On: Tue Nov 29 20:10:34 2011
# This hosts file is brought to you by Dan Pollock and can be found at
# http://someonewhocares.org/hosts/
# You are free to copy and distribute this file, as long the original
# URL is included. See below for acknowledgements.
# Please forward any additions, corrections or comments by email to
# [email protected]
@bdrewery
bdrewery / loader.conf
Created July 4, 2012 04:00
FreeBSD BE ZFS setup
zfs_load="YES"
vfs.root.mountfrom="zfs:zroot/ROOT/freebsd83"
@bdrewery
bdrewery / pkg-upgrade.sh
Last active October 7, 2015 03:38
FreeBSD pkgng Upgrade with shared library saving (Similar to `portmaster -w` and `portupgrade`)
#! /bin/sh
COMPAT_DIR=/usr/local/lib/compat/pkg
if ! [ -d ${COMPAT_DIR} ]; then
mkdir -p ${COMPAT_DIR}
fi
pkg update
@bdrewery
bdrewery / tree.sh
Created August 17, 2012 01:04
pkgng tree view script for FreeBSD
#! /bin/sh
# Copyright (c) 2012 Bryan Drewery <[email protected]>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer
# in this position and unchanged.
@bdrewery
bdrewery / gist:3882039
Created October 12, 2012 22:38
wraith tdl
For 1.4:
32-uptime.mod
34-make-limit-timer-configurable
set-lists-strncmp
.botset bot +groups pyramid1
.botset bot +groups pyramid -> ERROR already in list
-
.botset bot -groups pyramid -> ERROR removes pyramid*
group-case-sensitivity
@bdrewery
bdrewery / build.sh
Created October 15, 2012 17:31
My poudriere build script
#! /bin/sh
[ ${_FLOCKED:-0} -eq 0 ] && _FLOCKED=1 exec lockf -s -t0 /tmp/${0##*/}.lock $0 "$@" # Lock so it can only run once
which screen>/dev/null 2>&1 && test -z "${STY}" && exec screen -h 10000 -S ${0##*/} $0 "$@" # Ensure running in a screen
# Ensure the latest poudriere-devel is installed
portsnap fetch update
make -C /usr/ports/ports-mgmt/poudriere-devel/ build deinstall install clean > /dev/null
# Update poudriere ports checkout, and copy in my changes
poudriere ports -u -p default
devel/svn2git git-1.8.0.2
ports-mgmt/portshaker git-1.8.0.2
shells/bash-completion bash-static-4.2.37
www/wgetpaste bash-static-4.2.37
local/base-meta bash-static-4.2.37
local/base-meta git-1.8.0.2
local/bootstrap-meta bash-static-4.2.37
local/bootstrap-meta git-1.8.0.2
local/dev-meta git-1.8.0.2
local/dev-ports-meta git-1.8.0.2