Skip to content

Instantly share code, notes, and snippets.

View gists-app-test's full-sized avatar

gists-app-test

View GitHub Profile
@gists-app-test
gists-app-test / dabblet.css
Created September 12, 2012 14:29 — forked from kaelig/dabblet.css
Barlesque Reset CSS
/**
* Barlesque Reset CSS
*/
@gists-app-test
gists-app-test / gist:3706976
Created September 12, 2012 14:29 — forked from cslroot/gist:3706800
redmine (bitnami) にfarend_fancyテーマを導入した.
git clone git://github.com/farend/redmine_theme_farend_fancy.git /Applications/YOUR_REDMINE_APP_NAME/apps/redmine/htdocs/public/themes/farend_fancy
@import "bootstrap/_mixins";
@mixin ribbon() {
position: absolute;
top: 35px;
right: 0;
background: #9E0800;
color: #fff;
line-height: inherit;
padding: 5px 30px;
@gists-app-test
gists-app-test / ab.rb
Created September 12, 2012 14:31 — forked from andrerigon/ab.rb
ab fixed formula for homebrew in lion
require 'formula'
class Ab < Formula
homepage 'http://httpd.apache.org/docs/trunk/programs/ab.html'
url 'http://www.apache.org/dist/httpd/httpd-2.4.3.tar.bz2'
sha1 '0ef1281bb758add937efe61c345287be2f27f662'
def install
# Mountain Lion requires this to be set, as otherwise libtool complains
# about being "unable to infer tagged configuration"
@gists-app-test
gists-app-test / qs.js
Created September 12, 2012 14:31 — forked from nessthehero/qs.js
Get the query string(s)
function qs() {
var vars = [],
grabUrl = window.location.search,
parts,
pieces,
qs = '',
qsVals = [];
if (typeof arguments[0] == 'string') {
@gists-app-test
gists-app-test / Functor.scala
Created September 12, 2012 14:31 — forked from julienrf/Functor.scala
A bottom up approach to category theory: Functors (2)
trait Functor[F[_]] {
def fmap[A, B](f: A => B): F[A] => F[B]
}
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.1 23576 1668 ? Ss Sep11 0:00 init
root 1170 0.0 0.2 49424 2672 ? Ss Sep11 0:00 /usr/sbin/sshd -D
root 1188 0.0 0.1 18888 1016 ? Ss Sep11 0:00 cron
mysql 1192 0.0 2.7 189348 26336 ? Ssl Sep11 0:00 /usr/sbin/mysqld
syslog 1212 0.0 0.0 12536 800 ? Ss Sep11 0:00 /sbin/syslogd -u syslog
root 1249 0.0 1.0 202636 10136 ? Ss Sep11 0:00 /usr/sbin/apache2 -k start
www-data 1262 0.0 4.7 246760 44920 ? S Sep11 0:01 /usr/sbin/apache2 -k start
www-data 1263 0.0 4.8 247784 45804 ? S Sep11 0:02 /usr/sbin/apache2 -k start
www-data 1264 0.0 4.3 242664 41344 ? S Sep11 0:00 /usr/sbin/apache2 -k start
@gists-app-test
gists-app-test / gist:3706992
Created September 12, 2012 14:32
connect to redis
if( app.settings.env == 'production') {
console.log("Connecting to nodejitsu redis...")
// jitsu databases create redis rip
// jitsu databases list
var conn_url = 'redis://nodejitsu:09a5ecd07a2850a3d28f46894f8f5543@carp.redistogo.com:9552/';
var rtg = url.parse(conn_url);
var db = redis.createClient(rtg.port, rtg.hostname);
var passwd = rtg.auth.split(':')[1];
console.log("redis port:"+rtg.port+" hostname:"+rtg.hostname+" passwd:"+passwd);
@gists-app-test
gists-app-test / template.json
Created September 12, 2012 14:32 — forked from mciarlo/template.json
Example template JSON
[
{
"id": "dc85d388d79348808e01ddbc9bbd438a",
"name": "Default",
"buckets": [
{
"id": "be95f1d2ff284b9f8cb699bccf664e6b",
"can_be_empty": false,
"items": [
{"required_content_type": "any"},
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <vector>
#include <string>
#include <sstream>
using namespace std;
int main(void)