Skip to content

Instantly share code, notes, and snippets.

View debuggerboy's full-sized avatar
:octocat:
I may be slow to respond

debuggerboy debuggerboy

:octocat:
I may be slow to respond
View GitHub Profile
@debuggerboy
debuggerboy / app.py
Last active March 13, 2018 18:15 — forked from leplatrem/app.py
Simple Flask-couchdb demo
import simplejson
from flask import Flask, g, request
from couchdb.design import ViewDefinition
import flaskext.couchdb
app = Flask(__name__)
"""
CouchDB permanent view
@debuggerboy
debuggerboy / playing_with_remote_origin.txt
Created November 16, 2014 12:41
fool around with git remote origin
Already have a Git repository on your computer?
$ cd /path/to/existing/repo
$ git remote add origin https://<username>@github.com/<username>/<new_github_repo_created>.git
$ git push -u origin --all # pushes up the repo and its refs for the first time
$ git push -u origin --tags # pushes up any tags
To add a Remote Repo with other name - for ex: "gitbub"
git remote add github https://<username>@github.com/<username>/<new_github_repo_created>.git
@debuggerboy
debuggerboy / panasonic_P11_kernel_version.txt
Created March 5, 2014 19:56
Panasonc P11 Android 4.1.2 Kernel version
u0_a82@android:/ $ cat /proc/version
Linux version 3.4.0-perf-gf1371cb-00009-gd6ca730-dirty (ccadmin@BUILD12) (gcc version 4.6.x-google 20120106 (prerelease) (GCC) ) #1 SMP PREEMPT Wed Oct 30 14:50:10 CST 2013
u0_a82@android:/ $
@debuggerboy
debuggerboy / nginx_serverblocks_cfg
Created October 6, 2012 22:06
ERROR :: nginx virtual host configuration
# nginx 0.7.65
# You may add here your
# server {
# ...
# }
# statements for each of your virtual hosts
server {
listen 80; ## listen for ipv4; this line is default and implied
listen [::]:80 default ipv6only=on; ## listen for ipv6
@debuggerboy
debuggerboy / sangoma.sh
Created July 1, 2012 14:09 — forked from tony-landis/sangoma.sh
Automate installation of dahdi, libpri, sangoma, and all deps on debian
#!/bin/bash
DA='dahdi-linux-complete-2.5.0.1+2.5.0.1'
WAN="wanpipe-3.5.23"
PRI="libpri-1.4.12"
apt-get -y install build-essential
apt-get -y install gcc
apt-get -y install g++
apt-get -y install automake