This file contains hidden or 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
#!/usr/bin/php | |
<? | |
$api_key = "xxxx"; | |
$url = "xxxx"; | |
foreach( glob("*.xml") as $filename) | |
{ | |
$cmd = "curl -u $api_key:X -H 'Content-type: application/xml' -d \@$filename $url"; | |
$result = `$cmd`; |
This file contains hidden or 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
# Painless method for rendering a 404 (not found) whenever it might be useful | |
def render_404 | |
respond_to do |format| | |
format.html { render :file => "#{RAILS_ROOT}/public/404.html", :status => :not_found } | |
format.xml { head :not_found } | |
end | |
end |
This file contains hidden or 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
export PKG_PATH=http://openbsd.berkeley.edu/pub/OpenBSD/4.4/packages/i386/ |
This file contains hidden or 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
# cd /usr | |
# cvs -qd [email protected]:/cvs get -rOPENBSD_4_5 -P src |
This file contains hidden or 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
set number | |
set shiftwidth=4 | |
set tabstop=4 | |
syntax on | |
set smartindent | |
" Tab key mappings | |
nmap th :tabprev<cr> | |
nmap tl :tabnext<cr> | |
nmap tn :tabnew<cr> |
This file contains hidden or 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
# Script for dumping exchange database to .pst files. | |
# Globals | |
$Now = Get-Date | |
$Days = "7" | |
$TargetFolder = "C:\Users\jtrout\" | |
$LastWrite = $Now.AddDays(-$days) | |
$Files = get-childitem $TargetFolder -include *.pst -recurse | Where {$_.LastWriteTime -le "$LastWrite"} |
This file contains hidden or 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
mysql_username = "backup" | |
mysql_password = "" | |
databases = [ 'db1', 'sb2' ] | |
temp_directory = "/mnt/storage/backups" | |
s3_access_key_id = 'xxxx' | |
s3_secret_access_key = 'xxxx' | |
s3_bucket_name = 'database-bucket' | |
require 'rubygems' | |
require 'aws/s3' |
This file contains hidden or 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
* 1 * * * /bin/mfs-sync |
This file contains hidden or 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 | |
$fp = fopen('php://stdin', 'r'); | |
echo "\nEnter the URL for the image file you want to flash [enter for default]:"; | |
$url = chop(fgets($fp)); | |
if(! $url) | |
{ |
This file contains hidden or 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
lo0: flags=8049 mtu 33200 | |
priority: 0 | |
groups: lo | |
inet 127.0.0.1 netmask 0xff000000 | |
inet6 ::1 prefixlen 128 | |
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x6 | |
vr0: flags=8843 mtu 1500 | |
lladdr 00:0d:b9:18:8e:ec | |
priority: 0 | |
groups: egress |