If you haven't already set your NPM author info, now you should:
npm set init.author.name "Your Name"
npm set init.author.email "you@example.com"
npm set init.author.url "http://yourblog.com"
npm adduser
#!/usr/bin/env python | |
import sys | |
import subprocess | |
def print_wiki_options(file) : | |
subprocess.call("clear") | |
with open(file, 'r') as f : | |
for line in f: | |
sys.stdout.write(line) |
from datetime import datetime | |
import matplotlib.pyplot as plt | |
import traceview | |
API_KEY = 'API KEY HERE' | |
def main(): | |
tv = traceview.TraceView(API_KEY) | |
results = tv.server.latency_by_layer('Default', time_window='week') |
location / { | |
proxy_pass http://localhost:3000/; | |
proxy_set_header Host $host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
} |
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import MySQLdb as mysql | |
def QueryDatabase(query, values): | |
"""Function to query a MySQL database and return the results of the | |
query.""" | |
# Initialize variables and return values. |
#!/usr/bin/python | |
import simplejson as json | |
import oauth2 as oauth | |
# Create your consumer with the proper key/secret. | |
consumer = oauth.Consumer(key="YOUR_CONSUMER_KEY", | |
secret="YOUR_CONSUMER_SECRET") |
from django.contrib.auth.decorators import user_passes_test, login_required | |
active_required = user_passes_test(lambda u: u.is_active, | |
login_url='/profile/not_active') | |
def active_and_login_required(view_func): | |
decorated_view_func = login_required(active_required(view_func)) | |
return decorated_view_func |
# List audio devices | |
ffmpeg -list_devices true -f dshow -i dummy | |
# Pipe audio from Line In to another computer (192.168.1.17) | |
ffmpeg -f dshow -i audio="Line In (High Definition Audio " -acodec libmp3lame -ab 320000 -f rtp rtp://192.168.1.17:1234 | |
# Listen to audio on destination computer | |
ffplay rtp://192.168.1.17:1234 |