Skip to content

Instantly share code, notes, and snippets.

View raybesiga's full-sized avatar

Ray Besiga raybesiga

View GitHub Profile
@raybesiga
raybesiga / unload-keyboard
Last active August 29, 2015 14:27 — forked from JohnMurray/unload-keyboard
Disable Mac OS X Keyboard (built-in only)
#!/bin/bash
# Unload the keyboard so I can use my external keyboard
# and not worry about accidentally pressing buttons on
# the built-in. This may not be a problem for you but, you
# should see my desk sometimes (Oh no!!) ;-)
sudo kextunload /System/Library/Extensions/AppleUSBTopCase.kext/Contents/PlugIns/AppleUSBTCKeyboard.kext/
@raybesiga
raybesiga / Create Teachers Weekly Script
Last active December 11, 2015 11:28
Management command to generate new scripts
import datetime
import logging
import itertools
from logging import handlers
from django.core.management.base import BaseCommand
from django.contrib.sites.models import Site
from django.contrib.auth.models import User
from django.core.mail import send_mail
from django.conf import settings
from django.template import Context, Template