Skip to content

Instantly share code, notes, and snippets.

View madelinecr's full-sized avatar
:octocat:
Octocatting

Finn madelinecr

:octocat:
Octocatting
View GitHub Profile
cmake_minimum_required (VERSION 2.6)
project (helloworld)
add_executable (helloworld main.cpp myfile1.cpp myfile2.cpp myfile3.cpp)
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 2.8
# Default target executed when no arguments are given to make.
default_target: all
.PHONY : default_target
#=============================================================================
# Special targets provided by cmake.
@madelinecr
madelinecr / gist:1792759
Created February 10, 2012 20:52
SFML 2.0 OSX G++ Incantation
g++ -c main.cpp
g++ -o main main.cpp -lsfml-system -lsfml-window -framework OpenGL
sensae at SHODAN in ~/.config/Terminal
$ sensors
coretemp-isa-0000
Adapter: ISA adapter
Physical id 0: +39.0°C (high = +80.0°C, crit = +98.0°C)
Core 0: +36.0°C (high = +80.0°C, crit = +98.0°C)
Core 1: +39.0°C (high = +80.0°C, crit = +98.0°C)
Core 2: +40.0°C (high = +80.0°C, crit = +98.0°C)
Core 3: +39.0°C (high = +80.0°C, crit = +98.0°C)
sensae at glados in ~/code/work/ecommerce (master)
$ heroku console
Ruby console for niw-ecomm.heroku.com
>> User.all
=> [#<User id: 2, name: "Chris Funes", email: "Chrisf@newiworld.com", encrypted_password: "73232049f86fa6b068120e3256c9c473f356fb46f13121d5ef5...", salt: "67087f8ed4a90370eaa0ba8483c79d2f2b1f9726ccb54b6ee35...", admin: true, password_reset_token: nil, password_reset_sent_at: nil, created_at: "2012-02-14 07:40:50", updated_at: "2012-02-14 07:53:27">, #<User id: 1, name: "Admin", email: "user@example.org", encrypted_password: "78c1145660240de044f01320851552e8d0b88f049304db71424...", salt: "a8ef80c0d7841313d0081c8bc6ec0601de023ee85721a472d77...", admin: false, password_reset_token: nil, password_reset_sent_at: nil, created_at: "2012-02-02 07:55:19", updated_at: "2012-02-14 07:53:30">]
[niwadmin@new ecommerce]$ sudo yum list installed | grep mysql
[sudo] password for niwadmin:
libmysqlclient15.x86_64 5.0.77-4.el5_5.4.11062011 installed
mysql.x86_64 5.5.14-11071510 installed
mysql-connector-odbc.x86_64 3.51.26r1127-1.el5 installed
mysql-libs.x86_64 5.5.14-11071510 installed
mysql-server.x86_64 5.5.14-11071510 installed
php53-mysql.x86_64 5.3.3-1.el5_7.6 installed
plesk-mysql.x86_64 5.5-11053114 installed
[niwadmin@new ecommerce]$ sudo yum install mysql-devel.x86_64
quicksort :: Ord a => [a] -> [a]
quicksort [] = []
quicksort (p:xs) = (quicksort lesser) ++ [p] ++ (quicksort greater)
where
lesser = filter (< p) xs
greater = filter (>= p) xs
require 'spec_helper'
describe "Static pages" do
describe "Home page" do
before { visit '/static_pages/home' }
specify { page.should have_selector('h1', :text => 'Sample App')
specify { page.should have_selector('title', :text => "Ruby on Rails Tutorial Sample App | Home")
end
pi@raspberrypi:~$ free -m
total used free shared buffers cached
Mem: 215 127 87 0 18 79
-/+ buffers/cache: 29 185
Swap: 0 0 0
pi@raspberrypi:~$ df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 108M 0 108M 0% /lib/init/rw
udev 10M 152K 9.9M 2% /dev
sensae at SHODAN in /mnt
$ ls
initrd.gz ldlinux.sys syslinux.cfg vmlinuz
sensae at SHODAN in /mnt
$ du -h
7.6M .