Skip to content

Instantly share code, notes, and snippets.

@drcjar
drcjar / projectbasics
Created July 29, 2014 13:17
Overview of project basics
0. git & virtualenv as per https://dont-be-afraid-to-commit.readthedocs.org/en/latest/
1. install the things you need - in my case matplotlib, pandas, and some other stuff... I copied https://gist.github.com/fyears/7601881
2. install non python matplotlib and scipy dependencies and repeat 1 so it actually works
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"metadata": {
"name": "",
"signature": "sha256:04b30ba320a353b89132e56d777ef9e8c15306435f116f4cad53b3b7ece4ccfb"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
@drcjar
drcjar / gist:5ce2a44b98e5bb957c21
Created May 8, 2015 13:29
fixing ubuntu alternate install too small boot partition
https://help.ubuntu.com/community/Lubuntu/Documentation/RemoveOldKernels
@drcjar
drcjar / gist:d03d2c4f9fbf1d5e1daa
Created June 2, 2015 11:26
networking ubuntu post upgrade (with a wired connection)
sudo stop network-manager
sudo ifconfig eth0 up
sudo dhclient eth0
https://personal.natwest.com/personal/mortgages/secure/mortgage-overpayment-tool.html
@drcjar
drcjar / gist:95099be72908b4ef322f
Created September 12, 2015 13:16
backup notes
http://askubuntu.com/questions/9135/how-to-backup-settings-and-list-of-installed-packages
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
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
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = u'Carl Reynolds'
AUTHOR_EMAIL = 'drcjar@gmail.com'
SITENAME = u'Carl Reynolds'
SITEURL = ''
PATH = 'content'