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
| <HTML> | |
| <HEAD> | |
| <TITLE>404 Not Found</TITLE> | |
| </HEAD> | |
| <BODY> | |
| <H1>Not Found</H1> | |
| The requested document was not found on this server. | |
| <P> | |
| <HR> | |
| <ADDRESS> |
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
| require 'iconv' | |
| require 'csv' | |
| UTF8_ISO_CONVERTER = Iconv.new('ISO-8859-1', 'utf-8') | |
| shipping_time = Time.now | |
| ready_to_ship_orders = Order.find(:all, :conditions => Order::State::ATTRIBUTE_CONDITIONS[Order::State::IN_SHIPPING]) | |
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
| # http://mxcl.github.com/homebrew/ | |
| # http://rvm.beginrescueend.com/ | |
| ln -s /usr/local/Library/Contributions/brew_zsh_completion.zsh $HOME/.zsh/functions/_brew | |
| ln -s $HOME/.rvm/scripts/zsh/Completion/_rvm $HOME/.zsh/functions/_rvm |
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
| # via: http://www.fangiotophia.com/journal/2010/8/31/random-act-of-stupidity-6-debian-rails-3-setup-guide.html | |
| # Open /etc/apt/sources.list and add the following line to the end, then save the file: | |
| deb http://www.backports.org/debian lenny-backports main contrib non-free | |
| # Then, run the following command to make sure the GPG signatures are correct and don't give you warnings when running apt commands: | |
| sudo aptitude update | |
| sudo aptitude install debian-backports-keyring | |
| # Finally, you can install SQLite3: |
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
| private static String getApplicationIdentificationString() { | |
| final StringBuilder result = new StringBuilder(); | |
| result.append(Application.class.getPackage().getImplementationTitle()); | |
| result.append(" "); | |
| result.append(Application.class.getPackage().getImplementationVersion()); | |
| return result.toString(); | |
| } |
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
| #!/bin/sh | |
| # inspired by 1fbsdguru's stuff at: | |
| # http://www.cyberciti.biz/faq/howto-setup-freebsd-ipfw-firewall/ | |
| # do not forget to set right ip! | |
| ip="my.ip.address" | |
| IPF="ipfw -q add" | |
| # Loopback |
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/perl | |
| ## | |
| ## freebsd-memory -- List Total System Memory Usage | |
| ## Copyright (c) 2003-2004 Ralf S. Engelschall <[email protected]> | |
| ## | |
| ## 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. |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>Label</key> | |
| <string>user.launchkeep.iterm</string> | |
| <key>KeepAlive</key> | |
| <true/> | |
| <key>Program</key> | |
| <string>/Applications/iTerm.app/Contents/MacOS/iTerm</string> |
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
| #include <stdio.h> | |
| #include <sys/socket.h> | |
| #include <sys/types.h> | |
| #include <netinet/in.h> | |
| #include <netdb.h> | |
| #include <arpa/inet.h> | |
| #include <unistd.h> | |
| int main (int argc, const char * argv[]) { | |
| // insert code here... |