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
<VirtualHost *:80> | |
ServerName localhost | |
# ServerAlias www.localhost.com | |
DocumentRoot /var/www/myrailsapp/current/public | |
RewriteEngine On | |
# Redirect all non-static requests to unicorn | |
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f |
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
require 'ffi' | |
class Fixnum | |
def hex(numchars=16) | |
self.to_s(numchars).upcase | |
end | |
end | |
module FFI | |
class Struct |
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 | |
# chkconfig: 2345 90 10 | |
# description: init.d script for starting a Rails app running Unicorn. | |
set -e | |
USER=rails_deployer | |
APP_NAME=rails_test | |
APP_ROOT=/var/www/$APP_NAME |
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
# lib/core_ext/active_record_extensions.rb | |
module ActiveRecordExtensions | |
extend ActiveSupport::Concern | |
def clean_strings! | |
self.attributes.select{|key, val| val.class == String}.each {|key, val| val.strip!} | |
end | |
included do |
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
# Ignore any SSL certificate errors | |
[System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true} | |
(New-Object System.Net.WebClient).DownloadFile("http://example.com/myfile.txt", "C:\myfile.txt") |
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
{ | |
"color_scheme": "Packages/Color Scheme - Default/Twilight.tmTheme", | |
"copy_with_empty_selection": false, | |
"detect_indentation": false, | |
"ensure_newline_at_eof_on_save": true, | |
"folder_exclude_patterns": [".svn", ".hg", "CVS"], | |
"ignored_packages": | |
[ | |
"Vintage" | |
], |
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
# for Sierra | |
try | |
set setting to (do shell script "defaults read com.apple.Finder AppleShowAllFiles") | |
on error line number num | |
set setting to 0 | |
end try | |
if setting is equal to "0" then | |
set setting to 1 |
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
# this file is loaded on every session | |
######################### ALIASES ############################# | |
alias be="bundle exec" | |
alias bi="bundle install" | |
alias bu="bundle update" | |
alias g="bundle exec guard" | |
alias r="bundle exec rake" | |
alias rs="bundle exec rails s" | |
alias rc="bundle exec rails c" |
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
BACKGROUND/PERSONALITY | |
- Tell me about yourself | |
- Tell me about what your current project | |
- What are your responsibilities? | |
- Describe your workflow (how are requirements/issues submitted and handled?) | |
- Describe the infrastructure for your current project | |
- Why were these technologies chosen? | |
- What is the biggest challenge about your current project? | |
- Were you able to overcome it? If so, how? | |
- How many people are on the team? |
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
//bool DEBUG = true; | |
bool DEBUG = false; | |
int chans[] = {9, 10, 11, 12}; | |
int relays[] = {5, 6, 7, 8}; | |
int relay; | |
int chan; | |
int chan_status; |
OlderNewer