These are the ZeroCater Engineering and Data role definitions for both teams. (This was originally forked from Kickstarter's Engineering Ladder v7)
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
# elementary OS Juno post install | |
# first step, upgrade | |
sudo apt update && sudo apt upgrade | |
sudo apt install ubuntu-restricted-extras | |
sudo apt install software-properties-common --no-install-recommends | |
sudo apt install libavcodec-extra ffmpeg | |
sudo apt install firefox vlc | |
sudo apt install screenfetch flameshot |
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
set :rails_env, :production | |
set :unicorn_binary, "/usr/bin/unicorn" | |
set :unicorn_config, "#{current_path}/config/unicorn.rb" | |
set :unicorn_pid, "#{current_path}/tmp/pids/unicorn.pid" | |
namespace :deploy do | |
task :start, :roles => :app, :except => { :no_release => true } do | |
run "cd #{current_path} && #{try_sudo} #{unicorn_binary} -c #{unicorn_config} -E #{rails_env} -D" | |
end | |
task :stop, :roles => :app, :except => { :no_release => true } 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
# Update, upgrade and install development tools: | |
apt-get update | |
apt-get -y upgrade | |
apt-get -y install build-essential | |
apt-get -y install git-core | |
# Install rbenv | |
git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv | |
# Add rbenv to the path: |
Having a buckload of code to authorize users on your application is something you may like or not.
Speaking for myself I hate it. But I still love rails_admin
, here's how you install it without devise. Thanks to phoet for providing the hints in the gist I have forked from.
do NOT add devise
gem "rails_admin", :git => "git://github.com/sferik/rails_admin.git"
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> | |
ServerAdmin admin@example.com | |
ServerName example.com | |
ServerAlias www.example.com | |
DocumentRoot "/home/example/apps/example_app/current/public" | |
<Directory "/home/example/apps/example_app/current/public"> | |
Options -Indexes +FollowSymLinks -MultiViews -Includes | |
AllowOverride None |
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
steve souders | |
9%/91% backend / frontend | |
site speed => google page rank | |
google webmaster tools, yslow, page speed | |
webpagetest.org | |
video, screenshot timeline | |
overwrite document.write | |
html5 iframe | |
increase browser disk cache | |
progressive rendering |
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
#!/usr/bin/env ruby | |
# calculate average uptime of my machine | |
require 'rubygems' | |
require 'activesupport' | |
times = `last | grep ^shutdown` | |
times = times.map { |l| Time.parse l[/shutdown\s+~\s+(.*)/, 1] } | |
times = times.map { |t| t > Time.now ? t - 1.year : t } | |
diffs = times.zip(times[1 .. -1]).map { |(a, b)| a - b if b }.compact |