This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
backend default { | |
.host = "127.0.0.1"; | |
.port = "8080"; | |
.connect_timeout = 30s; | |
.first_byte_timeout = 30s; | |
} | |
sub vcl_recv { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import XMonad | |
import XMonad.Actions.CycleWS -- cycle thru WS', toggle last WS | |
import XMonad.Hooks.DynamicLog -- statusbar | |
import XMonad.Hooks.ManageDocks -- dock/tray mgmt | |
import XMonad.Util.EZConfig -- append key/mouse bindings | |
import XMonad.Util.Run(spawnPipe) -- spawnPipe and hPutStrLn | |
import System.IO | |
import XMonad.Actions.SpawnOn | |
lowerVolume = "<XF86AudioLowerVolume>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# backlight brightness controls. use freely | |
# and adjust sysfs directory if not on toshiba | |
# $author Brice Burgess @iceburg | |
sysfs="/sys/class/backlight/toshiba" | |
max=`cat ${sysfs}/max_brightness` | |
level=`cat ${sysfs}/brightness` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* MultiFormMultiStep allows answers to be collected for a dynamic number of | |
* questions as a single MultiFormStep. This is useful if you have an unknown | |
* amount of questions (e.g. dynamically generated by a CMS based survey maker). | |
* | |
* Define the next and previous steps as usual -- but to get to the next step, | |
* isLastQuestion must return true. Similarly, to get to the previous step | |
* isLastQuestion must return true. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# template script for generating CentOS container for LXC | |
# | |
# | |
# lxc: linux Container library | |
# Authors: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/apps/pageloadtimes/venv/bin/python | |
# | |
# librato-pageloadtimes.py | |
# / Brice Burgess @iceburg_net | |
# | |
# Reports the load time (in milliseconds) of URLs from url_list | |
# as a metric named "pageloadtimes.<hostname>" to librato. | |
# | |
# For easy instrumentation, the URL is reported as the metric's "source" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# nullmailer MTA | |
# | |
# chkconfig: - 85 15 | |
# description: nullmailer centos init @iceburg_net | |
### BEGIN INIT INFO | |
# Provides: smtpdaemon | |
# Required-Start: $local_fs $network | |
# Required-Stop: $local_fs $network |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Sodium Free Password Encryptor -- for importing legacy passwords | |
* into SilverSripe 3.1+ projects | |
* | |
* 1. Register via mysite/_config/encryptors.yml, e.g. | |
** | |
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class GridFieldConfig_FlexiForm extends GridFieldConfig { | |
public static function include_requirements() { | |
$moduleDir = self::get_module_dir(); | |
Requirements::css($moduleDir.'/css/flexiforms.css'); | |
} | |
public static function get_module_dir() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BillingAgreement extends DataObject | |
{ | |
public function getCMSActions() { | |
$fields = parent::getCMSActions(); | |
$button = new FormAction('doMarkProcessed', 'Mark Processed'); | |
//$button->addExtraClass('ss-ui-action-constructive'); | |
$fields->push($button); |
OlderNewer