Read: The Linux Command Line
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
### Get the Discover URL of a cluster | |
Run from within a node and get the value of `ETCD_DISCOVERY` | |
``` | |
cat /run/systemd/system/etcd.service.d/20-cloudinit.conf | |
``` |
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
default[:packages] = [ | |
{:name => "dev-php/pecl-memcached", :version => "2.1.0-r1"}, | |
{:name => "dev-php/pecl-apc", :version => "3.1.13"} | |
] |
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
# Usage: ruby nginx-requests.rb logfilename 31 Jul 2014 | |
logfilename = ARGV[0] | |
day = ARGV[1] | |
month = ARGV[2] | |
year = ARGV[3] | |
hours = (0..24).to_a | |
hours.each do |hour| |
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
We're building a classifieds site from scratch. | |
We want it to be a REST-ful site. Sketch the sitemap for the most common features of the site: posting ads and viewing ads. | |
We want to anonymously profile our users - OS, browser, screen size, location, etc. How do we do this? How do we collect the data, how do we store the data, and how do we analyze the data? | |
Assuming that we're storing everything on the RDBMS, based on the above requirements, sketch the data model for the site. | |
We want ads to display as fast as possible. We've heard that NoSQL is awesome fast. What NoSQL technology can we employ to improve ad display? How do we do it? |
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
file_prefix = ARGV[0] | |
file_suffix = ARGV[1] | |
start_file_index = ARGV[2].to_i | |
end_file_index = ARGV[3].to_i | |
file_ids = (start_file_index..end_file_index).to_a.reverse | |
file_ids.each do |i| | |
current_file_id = "%02d" % i | |
new_file_id = "%02d" % (i+1) | |
puts "Renaming #{file_prefix}#{current_file_id}#{file_suffix} to #{file_prefix}#{new_file_id}#{file_suffix}" |
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
PhRUG Celebrity Names | |
Ricky Sta Cruz | |
Byron Bibat | |
Terry Ponce | |
Francis Magsipoc (aka Francis M) | |
Florence Magsipoc | |
Elmer Gaspar | |
Error Fornoles | |
Raymond Tayag |
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 is a brain dump. Please forgive any typos> | |
I'd like to share an idea for a RailsGirls followup activity. | |
I noticed that having your stuff deployable and out on the net is a very powerful source of inspiration. | |
For me it makes me keep on working on it, just knowing that other people can see it. | |
One of the stumbling blocks in learning Rails is deployment. It's an advanced topic that is oddly too often taught in intro courses. | |
Forget about teaching deployment. Let's just give the newbs a ready-to-use VPS. |
NewerOlder