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
# ssh - OpenBSD Secure Shell server | |
# | |
# The OpenSSH server provides secure shell access to the system. | |
description "OpenSSH server" | |
start on filesystem | |
stop on runlevel [!2345] | |
respawn |
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
# control-alt-delete - emergency keypress handling | |
# | |
# This task is run whenever the Control-Alt-Delete key combination is | |
# pressed, and performs a safe reboot of the machine. | |
description "emergency keypress handling" | |
author "Scott James Remnant <[email protected]>" | |
start on control-alt-delete |
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
class Clock | |
def self.now | |
Time.now | |
end | |
def self.today | |
Date.today | |
end | |
end |
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
] irb | |
1.8.7 :001 > module TestModule | |
1.8.7 :002?> end | |
=> nil | |
1.8.7 :003 > module TestModule2 | |
1.8.7 :004?> end | |
=> nil | |
1.8.7 :005 > | |
1.8.7 :006 > class TestClass | |
1.8.7 :007?> include TestModule |
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
## | |
# Script to copy over data from mysql to postgres | |
# | |
# gem install ar_dbcopy --ignore-dependencies | |
# | |
# db_copy.yml needs to look like: | |
# | |
# source: | |
# adapter: mysql | |
# host: localhost |
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
[sudo] env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-config=[path/to/mysql_config] |
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
# install git | |
sudo apt-get install g++ curl libssl-dev apache2-utils | |
sudo apt-get install git-core | |
# download the Node source, compile and install it | |
git clone https://github.com/joyent/node.git | |
cd node | |
./configure | |
make | |
sudo make install | |
# install the Node package manager for later use |
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
require 'rbconfig' | |
config = RbConfig::CONFIG | |
FLAGS = %|-L#{config["libdir"]} -I#{config["includedir"]} -I#{config["includedir"]}/rubinius| | |
desc "Build the test with shared linkage" | |
task :build_shared do | |
cmd = "g++ #{FLAGS} #{config["LIBRUBYARG_SHARED"]} main.cpp -o main" | |
sh cmd | |
end |
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
Actor* planet = new Actor(); | |
planet->transform->scale = Ogre::Vector3(size, size, size); | |
planet->addComponent(new components::MeshComponent("sphere.mesh", "dirt")); |
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
Actor* actor = new Actor(utils::calculatePosition(Ogre::Vector3(4, 5, 4))); | |
actor->addComponent(new components::CameraComponent(mWindow)); | |
actor->addComponent(new components::MovementComponent()); | |
actor->addComponent(new components::MouseLookComponent()); |