Skip to content

Instantly share code, notes, and snippets.

View stevenscg's full-sized avatar

Chris Stevens stevenscg

View GitHub Profile
@viezel
viezel / NappSQL
Created October 8, 2012 19:10
Napp SQL for Alloy Framework
/*
* Napp Framework
* (c) 2012 Napp ApS
* www.napp.dk
*
* NAPP SQL ALLOY ADAPTER
* Dual SQLite/SQL sync adapter which will store all models in
* an on device database
*/
@timoa
timoa / var_dump.js
Created September 16, 2012 18:04
Similar "var_dump()" PHP function with Appcelerator Titanium Mobile (http://timoa.com/en/2012/07/appcelerator-dump-javascript-object-ti-api-debug/)
/**
* Debug : var_dump
*
* @var: Var
* @level: Level max
*
*/
function var_dump(_var, _level) {
var dumped_text = "";
if(!_level) _level = 0;
@snooc
snooc / centos6.3-chef-solo-bootstrap.sh
Created September 5, 2012 20:24
CentOS 6.3 Chef-Solo Bootstrap - Ruby1.9.3 + libyaml
#! /bin/bash
#####################
# Run this as root! #
#####################
yum update
yum groupinstall "Development Tools"
yum install zlib-devel readline-devel openssl-devel
@evildmp
evildmp / gist:3094281
Last active June 30, 2023 10:55
Set up Django, nginx and uwsgi

This document has now been incorporated into the uWSGI documentation:

http://uwsgi-docs.readthedocs.org/en/latest/tutorials/Django_and_nginx.html

Set up Django, nginx and uwsgi

Steps with explanations to set up a server using:

@johnkary
johnkary / WSSoapClient.php
Created June 27, 2012 20:08
WS-Security for PHP SoapClient
<?php
/**
* Copyright (c) 2007, Roger Veciana
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this
@willolbrys
willolbrys / ApacheLogster.py
Created June 26, 2012 17:08
ApacheLogster Log Parser
### A modified sample logster parser file that can be used to count the number
### of response codes found in an Apache access log.
###
### For example:
### sudo ./logster --dry-run --output=ganglia ApacheLogster /var/log/httpd/access_log
###
###
### Copyright 2011, Etsy, Inc.
###
### This file is part of Logster.
@marktheunissen
marktheunissen / pedantically_commented_playbook.yml
Last active April 19, 2025 17:31 — forked from phred/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
This playbook has been removed as it is now very outdated.
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active April 20, 2025 21:04
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@winhamwr
winhamwr / tutorial.md
Created June 4, 2012 22:37
Creating a repeatable, dynamic site to site VPN with OpenSwan on Ubuntu 10.04 from Amazon EC2

Creating a dynamic site-to-site VPN with OpenSwan on Ubuntu 10.04 on EC2

Wes Winham [email protected]

There are many tutorials floating around the web that almost get you a dynamic VPN in EC2. The goal of this tutorial is to be a one-stop-shop for this specific setup.

@douglasjarquin
douglasjarquin / amazon-linux.erb
Last active February 29, 2016 01:42 — forked from darrinholst/amazon-linux.erb
Chef bootstrap template for Amazon Linux
bash -c '
#
# make sure sudo users have the full path...
#
# sudo visudo
# Defaults env_keep += "PATH"
# Defaults !secure_path
#