This file contains 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
#EXTM3U | |
#EXTINF:0,Bassoradio | |
http://83.145.201.209:8000/ | |
#EXTINF:0,Classic Radio | |
http://217.30.180.242:8000/clsr.ogg | |
#EXTINF:0,Groove FM | |
http://217.30.180.242:8000/gvfm.ogg |
This file contains 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 | |
# Put this in ~/.kde/Autostart/ssh-agent.sh | |
export SSH_ASKPASS=/usr/bin/ksshaskpass | |
/usr/bin/ssh-add |
This file contains 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/python | |
# -*- coding: utf-8 -*- | |
# | |
# Simple XML validator done while learning the use of lxml library. | |
# -- Juhamatti Niemelä <iiska AT iki DOT fi> | |
import lxml | |
from lxml import etree | |
if __name__ == "__main__": |
This file contains 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
# Original from http://snippets.dzone.com/posts/show/4468 by MichaelBoutros | |
# | |
# Optimized version which uses to_yaml for content creation and checks | |
# that models are ActiveRecord::Base models before trying to fetch | |
# them from database. | |
namespace :db do | |
namespace :fixtures do | |
desc 'Dumps all models into fixtures.' | |
task :dump => :environment do | |
models = Dir.glob(RAILS_ROOT + '/app/models/**.rb').map do |s| |
This file contains 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/sh | |
# | |
# Post-receive hook script which generates README.html to git-dir from | |
# README.md found at the head of master branch in repository. | |
# | |
# Gitweb can read the README.html and embed it to the project summary page. | |
git cat-file blob HEAD:README.md | markdown > $GIT_DIR/README.html |
This file contains 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 | |
from xml.etree import ElementTree | |
from xml.sax.handler import ContentHandler | |
from xml.sax import parse | |
import csv | |
This file contains 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
const webpack = require("webpack"); | |
const ExtractTextPlugin = require("extract-text-webpack-plugin"); | |
const ManifestPlugin = require("webpack-manifest-plugin"); | |
const autoprefixer = require("autoprefixer"); | |
const path = require("path"); | |
module.exports = { | |
entry: { | |
main: [ | |
"./assets/javascripts/index.js", |
This file contains 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 ruby | |
# Finds answer to following puzzle | |
# | |
# There are one thousand candles on the altar and one thousand priests | |
# in the temple. Their god asks the first priest to go and light all | |
# the candles. Then he has the second priest go to every second candle | |
# and put it out." | |
# | |
# The third goes to every third candle and, if it is not burning, he |
NewerOlder