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; |
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
<?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>AdjustWindowForFontSizeChange</key> | |
<true/> | |
<key>AllowClipboardAccess</key> | |
<false/> | |
<key>AnimateDimming</key> | |
<false/> |
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
SimpleForm.setup do |config| | |
config.wrappers :half_width_checkboxes, tag: 'div', class: 'row', error_class: 'has-error' do |b| | |
b.use :html5 | |
b.wrapper tag: 'div', class: 'col-md-5' do |ba| | |
ba.wrapper tag: 'div', class: 'panel panel-default' do |bb| | |
bb.wrapper tag: 'div', class: 'panel-heading' do |bc| | |
bc.use :h_label, class: 'panel-title' | |
end | |
bb.wrapper tag: 'div', class: 'panel-body' do |bc| |
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
############ | |
# SYSTEM | |
############ | |
# show running daemons (CentOS) | |
systemctl | |
# show daemon status (CentOS) | |
systemctl status sshd.service | |
############ |
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") |
OlderNewer