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 | |
# Copyright 2009 Gaute Hope <[email protected]> | |
# Distributed under the GNU General Public Licence v2 | |
# | |
# Counts resulting categories for Exherbo repositories | |
# using the namingschemes; first two chars, last two chars | |
# and first and last char. | |
repos=$(paludis --list-repositories | tr -d '*\n') |
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
/* | |
* Copyright (c) 2009 Gaute Hope <[email protected]> | |
* Distributed under the terms of the GNU General Public Licence v2 | |
* | |
* Waits for change of ~/.plan | |
* | |
*/ | |
# include <iostream> | |
# include <sys/inotify.h> |
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
# -*- coding: utf-8 | |
# This syncs/gets the latest photos from your flickr photostream and saves them in | |
# a Django model (FlickrPhoto) | |
# Gaute Hope <[email protected]> (c) 2010 | |
# Licenced under Creative Commons v3.0 | |
# http://creativecommons.org/licenses/by/3.0/ | |
# this goes in models.py: | |
from django.db import models |
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
function [rtable, nr, nl, nj] = routhtable (T) | |
% Lagar og analyserer Routh-Hurwitz tabell. | |
% Author: Gaute Hope <[email protected]> | |
% Created: 2010-04-16 | |
% | |
% Usage: [rtable, nr, nl, nj] = routhtable (T) | |
% | |
% T = Symbolsk transferfunksjon | |
% |
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
/* | |
* crypttest.cs: Demonstrates how to serialize and encrypt any object | |
* | |
* Gaute Hope <[email protected]> | |
* | |
* To deserialize it you need to know the unencrypted serialized length. | |
* So to store or send also pass the length, e.g. create a struct like this: | |
* | |
* public struct EncryptedObject { | |
* public int length; |
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 | |
# 2010-11-15 | |
# Combines pdf's | |
# http://polybori.blogspot.com/2010/10/combining-pdfs.html | |
out=$1 | |
shift | |
echo "Creating pdf: ${out} of: $@" |
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/python2 | |
# | |
# Gaute Hope <[email protected]> 2011 | |
# | |
# Extract full-size photos from photos.live.com using rss feed | |
# | |
# Requires: - feedparser: http://feedparser.org/ - Python 2 | |
VERSION = 1 |
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
*.json | |
*.xml | |
token* | |
oauth* |
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
#! python | |
# Format: (y, x, [userdata], ..) | |
# Sorterer i stigande rekkefølge | |
positions = [ (1.0 , 1.1, 1), | |
(10.0 , 50.0, 2), | |
(9.0 , 39.0, 3), | |
(30.0 , 5.0, 4), | |
(40.0 , 10.0, 5), | |
] |
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 | |
# Wrapper for curl, posting to the sprunge.us pastebin | |
cat $1 | curl -F 'sprunge=<-' http://sprunge.us | |
OlderNewer