This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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:/ $ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import simplejson | |
from flask import Flask, g, request | |
from couchdb.design import ViewDefinition | |
import flaskext.couchdb | |
app = Flask(__name__) | |
""" | |
CouchDB permanent view |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
There’s some discussion about how to do this here, involving Werkzeug’s middleware. | |
http://stackoverflow.com/questions/4239825/static-files-in-flask-robot-txt-sitemap-xml-mod-wsgi | |
This is another way to do it, assuming you have a folder called “static” under where the main application .py file is located: | |
from flask import Flask, request | |
app = Flask(__name__, static_url_path='') | |
@app.route('/') | |
def root(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for file in ~anish/.ssh/id_rsa.pub ; do ssh-keygen -lf $file; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'syslog' | |
require 'net/http' | |
require 'aws-sdk' | |
Syslog.open | |
AWS.config({ | |
:access_key_id => '<iam user key>', | |
:secret_access_key => '<iam user secret>' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Client: | |
Version: 1.12.6 | |
API version: 1.24 | |
Go version: go1.7.5 | |
Git commit: a82d35e | |
Built: Tue Jul 18 23:18:48 2017 | |
OS/Arch: linux/amd64 | |
Server: | |
Version: 1.12.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.2" | |
services: | |
nginx: | |
container_name: local-dev-web | |
image: nginx:latest | |
networks : | |
- local-devnet | |
ports: | |
- "80:80" |
OlderNewer