Skip to content

Instantly share code, notes, and snippets.

View reqshark's full-sized avatar
🪂
ridge soaring

Bent Cardan reqshark

🪂
ridge soaring
View GitHub Profile
@reqshark
reqshark / HTML5 Basic
Created December 16, 2011 09:27
HTML5 Basic Page Structure
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>untitled</title>
</head>
<body>
</body>
@reqshark
reqshark / jquery.bootstrap.links
Created December 16, 2011 09:29
jQuery & Bootstrap CSS links
@reqshark
reqshark / pipelines
Created March 12, 2012 12:26
Pipelines
Pipelines
A pipeline is a sequence of one or more commands separated by the character |. The format for a pipeline is:
[time [-p]] [ ! ] command [ | command2 ... ]
The standard output of command is connected via a pipe to the standard input of command2. This connection is performed before any redirections specified
by the command (see REDIRECTION below).
The return status of a pipeline is the exit status of the last command, unless the pipefail option is enabled. If pipefail is enabled, the pipeline's
return status is the value of the last (rightmost) command to exit with a non-zero status, or zero if all commands exit successfully. If the reserved
@reqshark
reqshark / thinksofly
Created March 12, 2012 23:47
thinksofly
THINKSOFLY.COM is me. It's a state of mind, a certain way you feel just knowing that you're alive and not because you're breathing.
THINKSOFLY.COM
Cause nobody's somebody.
LITTLE FUNNY SHIT
ALIES
REGIME
CONTACT
@reqshark
reqshark / chef_solo_bootstrap.sh #
Created April 8, 2012 01:58
bootstrap chef solo
#!/usr/bin/env bash
apt-get -y update
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline5-dev libyaml-dev
cd /tmp
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p125.tar.gz
tar -xvzf ruby-1.9.3-p125.tar.gz
cd ruby-1.9.3-p125/
./configure --prefix=/usr/local
make
make install
@reqshark
reqshark / .gitignore
Created April 8, 2012 03:26
git ignore file
# Ignore bundler config
/.bundle
# Ignore the default SQLite database.
/db/*.sqlite3
# Ignore all logfiles and tempfiles.
/log/*.log
/tmp
@reqshark
reqshark / php.conf
Created May 3, 2012 00:55
php configs
location ~ \.php {
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param REQUEST_URI $request_uri;
fastcgi_param DOCUMENT_URI $document_uri;
@reqshark
reqshark / nginx.conf
Created May 3, 2012 02:22
php site nginx
server
{
listen 80;
server_name whatever.com www.whatever.com;
access_log /srv/www/whatever.com/logs/access.log;
root /srv/www/whatever.com/public_html;
index index.html index.htm index.php index.cgi;
error_page 400 406 407 409 410 411 412 413 414 415 416 417 418 422 423 424 425 426 444 449 450 490 /error/400.html;
error_page 401 /error/401.html;
@reqshark
reqshark / nginx.conf
Created May 3, 2012 03:14
basic nginx conf directory
worker_processes 4;
events
{
worker_connections 1024;
}
http
{
include mime.types;
default_type application/octet-stream;
@reqshark
reqshark / seeds.rb
Created May 12, 2012 12:35
for importing csv data into rails 3.2 and ruby 1.9.3
# This file should contain all the record creation needed to seed the database with its default values.
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
#
# Examples:
#
# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
# Mayor.create(name: 'Emanuel', city: cities.first)
require 'csv'