This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#makes default xsane pdf saves be less big, run ./shrinkpdf.sh in directory containing xsane pdf saves | |
shopt -s nullglob | |
for f in *.pdf | |
do | |
echo "shrinking- $f" | |
pdf2ps "$f" "${f%.pdf}.ps" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- # | |
from __future__ import unicode_literals | |
AUTHOR = u'Carl Reynolds' | |
AUTHOR_EMAIL = '[email protected]' | |
SITENAME = u'Carl Reynolds' | |
SITEURL = '' | |
PATH = 'content' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
def run(text, shift): | |
text = text.lower() | |
ord_of_a = ord('a') | |
result = '' | |
for letter in text: | |
if letter in 'qwertyuiopasdfghjklzxcvbnm': | |
letter = chr(abs((ord(letter) - ord_of_a + shift) % 26 + ord_of_a)) | |
result += letter |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
def run(text, shift): | |
text = text.lower() | |
ord_of_a = ord('a') | |
result = '' | |
for letter in text: | |
if letter in 'qwertyuopasdghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM': | |
letter = chr(abs((ord(letter) - ord_of_a + shift) % 26 - ord_of_a)) | |
result += letter |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://askubuntu.com/questions/9135/how-to-backup-settings-and-list-of-installed-packages |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://personal.natwest.com/personal/mortgages/secure/mortgage-overpayment-tool.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo stop network-manager | |
sudo ifconfig eth0 up | |
sudo dhclient eth0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://help.ubuntu.com/community/Lubuntu/Documentation/RemoveOldKernels |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata": { | |
"name": "", | |
"signature": "sha256:04b30ba320a353b89132e56d777ef9e8c15306435f116f4cad53b3b7ece4ccfb" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ |