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: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 / tree.sh
Created August 17, 2012 01:04
pkgng tree view script for FreeBSD
#! /bin/sh
# Copyright (c) 2012 Bryan Drewery <bryan@shatow.net>
# 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 / 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 / loader.conf
Created July 4, 2012 04:00
FreeBSD BE ZFS setup
zfs_load="YES"
vfs.root.mountfrom="zfs:zroot/ROOT/freebsd83"
# 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
# hosts@someonewhocares.org
@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
@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 / 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 / Makefile
Created September 28, 2011 14:59
FreeBSD-SA-08:03.sendfile workaround module
KMOD = sendfile
SRCS = sendfile.c
.include <bsd.kmod.mk>
@bdrewery
bdrewery / Makefile
Created September 28, 2011 14:42
FreeBSD-SA-11:05.unix workaround module
KMOD = unix
SRCS = unix.c
.include <bsd.kmod.mk>