This file contains hidden or 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 | |
require 'rubygems' | |
require 'sinatra/base' | |
require 'webrick' | |
#require 'webrick/https' | |
#require 'openssl' | |
require 'resolv' | |
require 'json' |
This file contains hidden or 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
unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/belongs_to.png, skipping | |
unable to convert "\xF4" from ASCII-8BIT to UTF-8 for guides/assets/images/book_icon.gif, skipping | |
unable to convert "\x91" from ASCII-8BIT to UTF-8 for guides/assets/images/bullet.gif, skipping | |
unable to convert "\xF5" from ASCII-8BIT to UTF-8 for guides/assets/images/chapters_icon.gif, skipping | |
unable to convert "\xF5" from ASCII-8BIT to UTF-8 for guides/assets/images/check_bullet.gif, skipping | |
unable to convert "\xF4" from ASCII-8BIT to UTF-8 for guides/assets/images/credits_pic_blank.gif, skipping | |
unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/csrf.png, skipping | |
unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/edge_badge.png, skipping | |
unable to convert "\x9E" from ASCII-8BIT to UTF-8 for guides/assets/images/favicon.ico, skipping | |
unable to convert "\x80" from ASCII-8BIT to UTF-8 for guides/assets/images/feature_tile.gif, skipping |
This file contains hidden or 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
/Users/klynton/Library/Application Support/Sublime Text 3/Packages | |
klynton@Z0FL:~/Library/Application Support/Sublime Text 3/Packages → git clone https://github.com/titoBouzout/SideBarEnhancements.git "SideBarEnhancements" | |
Cloning into 'SideBarEnhancements'... | |
remote: Counting objects: 900, done. | |
remote: Compressing objects: 100% (364/364), done. | |
remote: Total 900 (delta 561), reused 863 (delta 531) | |
Receiving objects: 100% (900/900), 188.14 KiB, done. | |
Resolving deltas: 100% (561/561), done. | |
klynton@Z0FL:~/Library/Application Support/Sublime Text 3/Packages → cd "SideBarEnhancements" | |
klynton@Z0FL:~/Library/Application Support/Sublime Text 3/Packages/SideBarEnhancements;master* → git checkout st3 |
This file contains hidden or 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
[root@host ~]# /usr/local/bin/passenger-install-nginx-module --auto --auto-download --prefix=/usr/local/nginx | |
Welcome to the Phusion Passenger Nginx module installer, v4.0.2. | |
This installer will guide you through the entire installation process. It | |
shouldn't take more than 5 minutes in total. | |
Here's what you can expect from the installation process: | |
1. This installer will compile and install Nginx with Passenger support. | |
2. You'll learn how to configure Passenger in Nginx. |
This file contains hidden or 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
... | |
4 host-72-175-110-222.bln-mt.client.bresnan.net (72.175.110.222) 29.050 ms 68.787 ms 45.921 ms | |
5 chywy001cr5-xe-5-2-0-u0.int.bresnan.net (72.175.110.130) 28.344 ms 29.298 ms 30.632 ms | |
6 gdjco002dr5-ge-3-0-0-u0.int.bresnan.net (72.175.111.8) 58.615 ms 55.555 ms 57.208 ms | |
7 cspwy001hb7-t3-1-1-1-u0.int.bresnan.net (69.145.214.121) 57.158 ms 57.472 ms 56.289 ms | |
8 te0-0-0-16.ccr21.sea02.atlas.cogentco.com (38.104.126.53) 63.319 ms 56.972 ms 57.667 ms | |
9 te0-1-0-0.ccr22.sea01.atlas.cogentco.com (154.54.82.37) 58.000 ms | |
te0-6-0-4.ccr22.sea01.atlas.cogentco.com (154.54.85.181) 58.980 ms | |
te0-6-0-2.ccr21.sea01.atlas.cogentco.com (154.54.1.197) 57.410 ms | |
10 te0-7-0-4.ccr21.slc01.atlas.cogentco.com (154.54.80.10) 82.031 ms |
This file contains hidden or 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
[web@web redmine]$ bundle install --local --system | |
Gemfile syntax error: | |
[web@web redmine]$ | |
[web@web redmine]$ ruby1.9 -c Gemfile | |
Syntax OK | |
[web@web redmine]$ bundle install --local --system | |
Gemfile syntax error: | |
[web@web redmine]$ |
This file contains hidden or 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
[root@host rails-3.2.11]# ll | |
total 5604 | |
-rw-r--r-- 1 root root 22016 Jan 8 14:06 actionmailer-3.2.11.gem | |
-rw-r--r-- 1 root root 287232 Jan 8 14:06 actionpack-3.2.11.gem | |
-rw-r--r-- 1 root root 44544 Jan 8 14:07 activemodel-3.2.11.gem | |
-rw-r--r-- 1 root root 290816 Jan 8 14:07 activerecord-3.2.11.gem | |
-rw-r--r-- 1 root root 37888 Jan 8 14:08 activeresource-3.2.11.gem | |
-rw-r--r-- 1 root root 287744 Jan 8 14:08 activesupport-3.2.11.gem | |
-rw-r--r-- 1 root root 46080 Feb 21 2012 arel-3.0.2.gem | |
-rw-r--r-- 1 root root 609280 Nov 17 2010 builder-3.0.0.gem |
This file contains hidden or 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
/** | |
* Do problem 3.29 from the book, but call your program Square.java. The text | |
* for this question is: | |
* Write an application that prompts the user to enter the size of the side of | |
* a square, then displays a hollow square of that size made of asterisks. Your | |
* program should work for squares of all side lengths between 1 and 20. | |
* | |
* A Note From Dr. B. | |
* There are 3 parts to this problem. The first is the top row of stars. After | |
* you have code that prints the top row of stars correctly, focus on printing |
This file contains hidden or 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
Rust as it is now: | |
use core::*; | |
fn main() { | |
for ["Alice", "Bob", "Carol"].each |&name| { | |
do task::spawn { | |
let v = rand::Rng().shuffle([1, 2, 3]); | |
for v.each |&num| { | |
io::print(fmt!("%s says: '%d'\n", name, num)) |
This file contains hidden or 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 | |
/usr/sbin/locale-gen en_US.UTF-8 | |
/usr/sbin/update-locale LANG=en_US.UTF-8 | |
add-apt-repository ppa:cherokee-webserver | |
aptitude update | |
aptitude -y install build-essential python-dev python-psycopg2 python-software-properties rrdtool libxml2-dev libxslt-dev git-core cherokee libcherokee-mod-rrd postgresql |