Skip to content

Instantly share code, notes, and snippets.


Ray Besiga raybesiga

View GitHub Profile
raybesiga / unload-keyboard
Last active Aug 29, 2015 — forked from JohnMurray/unload-keyboard
Disable Mac OS X Keyboard (built-in only)
View unload-keyboard
# 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 / Create Teachers Weekly Script
Last active Dec 11, 2015
Management command to generate new scripts
View Create Teachers Weekly Script
import datetime
import logging
import itertools
from logging import handlers
from 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