Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
# For debugging use iptables -v.
IPTABLES="/sbin/iptables"
IP6TABLES="/sbin/ip6tables"
MODPROBE="/sbin/modprobe"
RMMOD="/sbin/rmmod"
ARP="/usr/sbin/arp"
# Variation on Hashrocket's script for managing the git process
# as documented here: http://reinh.com/blog/2008/08/27/hack-and-and-ship.html
# Create shell scripts out of each of these, put them in your path (~/bin for example)
# chmod 755 them and use like this:
#
# This version of hack is totally different than Hackrockets. I feel that hack implies
# that you are getting started, not finishing up. sink is Hashrockets hack.
#
# $ hack branch_name
# Test and Implement until done
@ozeias
ozeias / spawn-fcgi.sh
Created January 15, 2009 12:49
starts FastCGI for PHP using start-stop-daemon
## railsbox.org:~ ozeias$ vim /etc/init.d/spawn-fcgi
#! /bin/sh
### BEGIN INIT INFO
# Provides: nginx
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts FastCGI for PHP
@ozeias
ozeias / pre-commit
Created April 18, 2016 00:06 — forked from tmaiaroto/pre-commit
A Go Commit Hook for Less Future Headaches
#!/bin/bash
#
# Check a "few" things to help write more maintainable Go code.
#
# OK, it's fairly comprehensive. So simply remove or comment out
# anything you don't want.
#
# Don't forget to install (go get) each of these tools.
# More info at the URLs provided.
#
We are expanding our team here in Itapema - SC, Chute Studio. The Studio is our internal agency which helps Chute deliver custom applications and services to our growing customer base.
Objective
Delivers excellent work and shares in the overall Chute culture.
Responsibilities
* Develop detailed estimates for proposed projects and services
* Develop wireframes and high-fidelity comps for proposed projects and services
* Develop detailed timelines for potential and active client projects
* Daily, Weekly, and Project updates and summaries
@ozeias
ozeias / Marketing web developer.md
Last active January 1, 2016 06:09
JOB: Marketing web developer: SEM/SEO, Google Analytics, HTML, CSS #jobs

About Chute

Chute is a Y Combinator company, and the most comprehensive visual brand engagement platform on the market today, powering everything from billboards to banner ads to native mobile apps with real time content from brands and consumers. We believe the future of brand marketing is visual and our tools to manage, measure and drive engagement have become essential for brand marketers. Chute works with some of the world’s biggest brands and publishers including NBC News, Turner, Condé Nast, the NBA, New York Times, Taylor Made, Samsung and House of Blues Entertainment.

The Chute Studio is our internal agency which helps Chute deliver custom applications and services to our growing customer base.

The Studio are based in Meia Praia, Itapema/SC, minutes away from Balneário Camboriú, Bombinhas and Florianópolis.

Objective

Delivers excellent work and shares in the overall Chute culture.

@ozeias
ozeias / der2pem.sh
Created November 14, 2012 14:23
Converting SSL-certificates from CRT format to PEM
#/bin/bash
for f in $(file *.crt|grep data|sed 's/: *data//')
do
echo "Processing $f file to ${f/.crt/.pem}..."
openssl x509 -in $f -inform der -outform pem -out ${f/.crt/.pem}
rm $f
done
# openssl x509 -in serprov2.crt -out serprov2.der -outform DER
# openssl x509 -in serprov2.der -inform der -outform pem -out serprov2.pem
@ozeias
ozeias / capybara-helpers.rb
Created October 2, 2012 19:09 — forked from ntreadway/capybara-helpers.rb
Capybara helpers
def set_mobile_agent
page.driver.header('User-Agent', 'iPhone')
end
def js_click(selector)
page.driver.execute_script "$('##{selector}').click()"
end
def screenshot
require 'capybara/util/save_and_open_page'
@ozeias
ozeias / unicorn.rb
Created May 16, 2012 11:21 — forked from jamiew/unicorn.rb
Unicorn config for use with bundler and capistrano - fixes issues with environment pollution.rb
# My pimped out unicorn config, with incremental killof
# and all the latest capistrano & bundler-proofing
# @jamiew :: http://github.com/jamiew
application = "000000book.com"
environment = ENV['RACK_ENV'] || ENV['RAILS_ENV'] || 'production'
app_path = "/srv/#{application}"
bundle_path = "#{app_path}/shared/bundle"
timeout 30
@ozeias
ozeias / settings.json
Created November 21, 2011 23:03 — forked from JeanMertz/syntax_highlighting.py
Ruby on Rails syntax highlight switcher for Sublime Text 2 #Packages/User
{
// "color_scheme": "Packages/Color Scheme - Default/Monokai Bright.tmTheme",
"color_scheme": "Packages/Color Scheme - Default/Twilight.tmTheme",
"detect_indentation": true,
"ensure_newline_at_eof_on_save": true,
"find_selected_text": true,
//"font_face": "inconsolata",
//"font_face": "consolas",
//"font_face": "mensch",
"font_face": "monaco",