*coding: utf-8*
Download net install iso. Find a mirror close to you at http://isoredirect.centos.org/centos/6/isos/x86_64/
- Name: vagrant-centos
- Operating System: Linux
- Version: Red Hat 64bit
module ActionController | |
class Metal | |
attr_internal :cached_content_for | |
end | |
module Caching | |
module Actions | |
def _save_fragment(name, options) | |
return unless caching_allowed? |
Download net install iso. Find a mirror close to you at http://isoredirect.centos.org/centos/6/isos/x86_64/
- Name: vagrant-centos
- Operating System: Linux
- Version: Red Hat 64bit
brasca@handel:~$ knife cookbook upload apache2 -V -V | |
DEBUG: Using configuration from /home/brasca/.chef/knife.rb | |
DEBUG: No chefignore file found at /home/brasca/gitnon/countertop/cookbooks/chefignore no files will be ignored | |
DEBUG: No chefignore file found at /home/brasca/ENV['HOME']}/chef-repo-shared/cookbooks/chefignore no files will be ignored | |
DEBUG: Signing the request as brasic | |
DEBUG: Sending HTTP Request via GET to chef.pearsonaidevelopment.com:4000/cookbooks | |
DEBUG: ---- HTTP Status and Header Data: ---- | |
DEBUG: HTTP 1.1 200 OK | |
DEBUG: content-type: application/json; charset=utf-8 | |
DEBUG: connection: close |
brasca@handel:~/.chef$ knife cookbook upload apache2 -V -V | |
DEBUG: Using configuration from /home/brasca/.chef/knife.rb | |
DEBUG: No chefignore file found at /home/brasca/gitnon/countertop-aidevops/cookbooks/chefignore no files will be ignored | |
DEBUG: Signing the request as brasca | |
DEBUG: Sending HTTP Request via GET to chef.pearsonaidevelopment.com:4000/cookbooks | |
DEBUG: ---- HTTP Status and Header Data: ---- | |
DEBUG: HTTP 1.1 200 OK | |
DEBUG: content-type: application/json; charset=utf-8 | |
DEBUG: connection: close | |
DEBUG: server: thin 1.3.1 codename Triple Espresso |
.DS_Store | |
*.log | |
tmp/ |
] wc -l domains.txt | |
783 domains.txt | |
] time go run domain_lookup_parallel.go | |
real 0m5.743s | |
user 0m0.359s | |
sys 0m0.355s | |
] time go run domain_lookup_sequential.go |
package main | |
import ( | |
"bufio" | |
"fmt" | |
"launchpad.net/goamz/aws" | |
"launchpad.net/goamz/s3" | |
"os" | |
"sort" | |
"strconv" |
running https://yourssldomain.com | |
# generate keys, run in ~/.sslcert | |
openssl genrsa -des3 -out server.orig.key 2048 | |
openssl rsa -in server.orig.key -out server.key | |
openssl req -new -key server.key -out server.csr | |
# set Common Name: yourssldomain.com | |
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt | |
echo "127.0.0.1 yourssldomain.com" | sudo tee -a /private/etc/hosts |
# run all specs created or modified since branching from master | |
# put this in ~/.bash_profile | |
alias recentspecs='git log --name-status master.. | egrep '^[MA].+spec.rb$' | cut -f2 | uniq' | |
# example: | |
# | |
# $ bundle exec rspec `recentspecs` | |
# ................. | |
# | |
# Finished in 0.6187 seconds |
#!/usr/bin/env ruby | |
require 'redis' | |
# Clear a large number of keys matching a pattern using SCAN and | |
# pipelining to avoid killing the server. | |
class ClearKeys | |
def initialize(pattern, host='localhost', postprocess_pattern=nil) | |
@redis = Redis.new(host: host) | |
@pattern = pattern |