Skip to content

Instantly share code, notes, and snippets.

View tors's full-sized avatar
:octocat:

Tors tors

:octocat:
  • Vim
View GitHub Profile

Setup new Mac with OSX Lion from scratch

These commands are good as of 2011-07-27.

Install xcode 4

App store http://itunes.apple.com/us/app/xcode/id448457090?mt=12) The download/install takes awhile so start it first. When it finishes downloading you will still need to run it to complete installation.

ENV["RAILS_ENV"] = "test"
require File.expand_path('../../config/environment', __FILE__)
require "minitest/autorun"
require "minitest/rails"
require "minitest/rails/capybara"
require "database_cleaner"
require "factory_girl"
require "carrierwave/test/matchers"
@tors
tors / deploy.rb
Created February 27, 2013 10:49 — forked from koenpunt/deploy.rb
set :user, "deploy"
set :runner, "deploy"
set :application, "example.com"
set :deploy_to, "/var/apps/#{application}"
set :shared_children, %w(sockets)
set :scm, :git
set :repository, "[email protected]:example.git"
set :deploy_via, :remote_cache

The premise of this exercise is contained in Daniel Himelein's quote:

"The first thing I always do when playing around with a new software platform is to write a concurrent "Hello World" program. The program works as follows: One active entity (e.g. thread, Erlang process, Goroutine) has to print "Hello " and another one "World!\n" with the two active entities synchronizing with each other so that the output always is "Hello World!\n". Here is the concurrent Hello World program in Go, Erlang and in C++ using the Mindroid framework."

Original post

Here is a Hello World example in Ruby/Celluloid. Five, actually.

$$$$$$\ $$\ $$\ $$\ $$\ $$\
$$ __$$\ $$ | \__| $$ | \__| $$ |
$$ / \__|$$$$$$$\ $$\ $$$$$$$\ $$$$$$$\ $$\ $$$$$$\ $$$$$$\
\$$$$$$\ $$ __$$\ $$ |$$ _____|$$ __$$\ $$ |\_$$ _| $$ __$$\
\____$$\ $$ | $$ |$$ |\$$$$$$\ $$ | $$ |$$ | $$ | $$ / $$ |
$$\ $$ |$$ | $$ |$$ | \____$$\ $$ | $$ |$$ | $$ |$$\ $$ | $$ |
\$$$$$$ |$$ | $$ |$$ |$$$$$$$ |$$ | $$ |$$ | \$$$$ |\$$$$$$ |
\______/ \__| \__|\__|\_______/ \__| \__|\__| \____/ \______/
/**
* Library for Lightweight Seft-Protecting JavaScript
* By Phu H Phung 2008
* Version: 1.1a
* Last modified: 2008, Sept 16
*/
(function() {
var _debug = true;
/**
#! /bin/bash
# /etc/init.d/gitlab
# GITLAB
# Maintainer: @randx
# App Version: 3.0
### BEGIN INIT INFO
# Provides: gitlab
[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]][([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]((![]+[])[+!+[]]+(![]+[])[!+[]+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]+(!![]+[])[+[]]+(![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+
#!/bin/sh
cd ~/.vim/bundle
for directory in `ls ~/.vim/bundle`
do
echo "Checking for $directory update..."
if [ -d "$directory/.git" ]
then
cd $directory
git pull
cd ..