Skip to content

Instantly share code, notes, and snippets.

View rerobins's full-sized avatar

Robert Robinson rerobins

View GitHub Profile
@rerobins
rerobins / changeRecGroup.sh
Created August 6, 2014 19:12
Change the recording group of mythtv recordings
#!/bin/bash
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
@rerobins
rerobins / freebaseexample.py
Created April 28, 2014 17:12
Implementation that will execute the freebase example found on: https://developers.google.com/freebase/v1/rdf-overview
import json
import urllib
import urllib2
from rdflib import ConjunctiveGraph
api_key = '' # Your Key here.
service_url = 'https://www.googleapis.com/freebase/v1/rdf'
topic_id = '/m/02h40lc'
params = {
'key': api_key
@rerobins
rerobins / SimpleSWTWrapper.java
Created April 28, 2014 16:32
SWT Wrapper for spot checking SWT components
private void buildDisplay() {
Display display = new Display();
Shell shell = new Shell(display);
// create a new GridLayout with two columns
// of different size
FillLayout layout = new FillLayout(SWT.BORDER);
// set the layout to the shell
shell.setLayout(layout);
@rerobins
rerobins / backupMyDMS.sh
Created April 18, 2013 22:35
Backs up mydms files so that they can be backed up off-site
#!/bin/sh
# Copyright (c) 2013 Robert Robinson
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@rerobins
rerobins / divxTranscode.sh
Created April 18, 2013 22:30
Converts video files recorded from mythtv using handbrake.
#!/bin/sh
# Copyright (c) 2013 Robert Robinson
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@rerobins
rerobins / hashCompare.sh
Created April 18, 2013 22:27
Compares the hash outputs in two files to find duplicate files.
#!/bin/sh
# Copyright (c) 2013 Robert Robinson
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@rerobins
rerobins / jpgToPDF.sh
Created April 16, 2013 23:18
Converts color jpg files created by simple scan program into a pdf document.
#!/bin/bash
# Copyright (c) 2013 Robert Robinson
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@rerobins
rerobins / .bash_aliases
Created April 15, 2013 16:58
My bash_aliases file.
alias last_logon='last | grep reboot | head'