Skip to content

Instantly share code, notes, and snippets.

@tmc
tmc / macOS Sierra USB Fax Modem Reinstallation.md
Created June 15, 2017 02:15 — forked from essandess/macOS Sierra USB Fax Modem Reinstallation.md
Reinstall USB Fax Modem Capabilities on macOS Sierra

This post tells how to reinstall USB fax modem capabilities on macOS Sierra, after Apple dropped support.

If dropping support for fax modems affects you negatively, please take the time to issue feedback at Apple's website.

To restore USB Fax Modem capability to Sierra, simply copy the files listed below from your old El Capitan install.

Here is this list of files you need:

@tmc
tmc / gist:4054110
Created November 11, 2012 07:50
wat django
#views.py
def link_accounts(request):
if request.method == 'POST': # If the form has been submitted...
#De-listify the stupid freakin' post request11!!11
form = LinkForm(initial=init) # A form bound to the POST data
print "HEREEEEEE"
if form.is_valid(): # All valid
<project-report>
<project-name>lab5</project-name> **Required
<upload-date>NONE</upload-date> **Required
<upload-updated>NONE</upload-updated> **Required
<due-date>2011-10-20 00:00:00</due-date> **Required
<section-name>W</section-name> **Required
<grader-name>GRADER_Last</grader-name> **Required
<student-info> **Required
<student-name>Barish,David</student-name> **Required
<student-kuid>3450008</student-kuid> **Required
@tmc
tmc / gevent_poc.py
Created October 25, 2011 15:41 — forked from jmoiron/gevent_poc.py
gevent + zmq + multiprocessing poc
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Simple gevent POC to check how to get ZMQ sockets working with
subprocesses spawned by a simple process."""
# this code doesn't seem to work properly; it has a
# tendency to hang at various parts of the req/rep process
# all of this stuff works flawlessly if you change:
@tmc
tmc / gist:590294
Created September 21, 2010 18:57 — forked from jacobian/gist:590292
In [1]: from django.contrib.auth.models import User
In [2]: import datetime
In [3]: qs = User.objects.filter(date_joined__lte=datetime.datetime.now)
In [4]: print qs.query
------> print(qs.query)
SELECT "auth_user"."id", "auth_user"."username", "auth_user"."first_name", "auth_user"."last_name", "auth_user"."email", "auth_user"."password", "auth_user"."is_staff", "auth_user"."is_active", "auth_user"."is_superuser", "auth_user"."last_login", "auth_user"."date_joined" FROM "auth_user" WHERE "auth_user"."date_joined" <= 2010-09-21 13:58:50.361784
def print_name(user):
print "name is %s" % user
print_name("Travis Cline")
#!/bin/sh
num=21 # 3 weeks
for h in albert; do
date=`date +%Y%m%d-%H%M%S`
dir=/home/backup/$h.d
manifest=$dir/manifest
# Find the most recent backup
touch $manifest
/**
* Ubiquity commands to search mininova.org or thepiratebay.org
*/
var TorrentUbiquity = {};
TorrentUbiquity.MCM = {
'ANIME' : '1',
'BOOKS' : '2',
'GAMES' : '3',
'MOVIES' : '4',
'MUSIC' : '5',