Skip to content

Instantly share code, notes, and snippets.

@DrAzraelTod
DrAzraelTod / serverlist
Created June 7, 2017 11:20
My "current" podget serverlist file
# Default Server List for podget
# FORMAT: <url> <category> <name>
# NOTES:
# 1. The Category must be one word without spaces. You may use underscores.
# 2. Any spaces in the urls needs to be converted to %20
# 3. Disable the downloading of any feed by commenting it out with a #.
# 4. If you are creating ASX playlists, make sure the feed name does not
# have any spaces in it.
# Find more servers at: http://www.ipodder.org/directory/4/podcasts
http://chaosradio.ccc.de/chaosradio_express-latest.rss tech CRE
@DrAzraelTod
DrAzraelTod / pascal.rb
Created April 19, 2017 12:45
quick and dirty pascal triangle in ruby
#!/usr/bin/ruby
# -*- encoding: utf-8 -*-
def pascal(depth)
ret = []
prev = nil
(0..depth-1).each{|zeile|
current = [1]
if !prev.nil?then
@function str-replace($source, $substring, $replacement) {
$start: str-index($source, $substring);
@if $start {
@return
str-slice($source, 1, $start - 1)
+ $replacement
+ str-slice(
$source,
$start + str-length($substring)
);
@DrAzraelTod
DrAzraelTod / example.md.txt
Last active February 22, 2016 10:15
Hugo-Example
+++
title="Hallo Hugo"
author="Dr. Azrael Tod"
draft=true
issoid="blog/1636"
date = "2016-02-22T11:00:00"
aliases = "blog/1636"
tags = ["Quählkot", "Softwareschrott", "Technik", "g33ky.de", "Open-Source"]
+++
Früher™ hatte ich mal ein tag "G33KY.de wird eingestellt/stirbt"...
@DrAzraelTod
DrAzraelTod / conver.py
Created February 22, 2016 09:43
Script to convert old WebChao-Posts to Hugo-Metadata and stripped post-only-HTML including comments
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys,re,codecs
from bs4 import BeautifulSoup
from datetime import datetime
fn = sys.argv[1]
print('converting file: '+fn)
@DrAzraelTod
DrAzraelTod / xcschememanagement.plist.diff
Created October 1, 2015 09:15
Change for making a "scheme" available to other Users in XCode
<dict>
<key>SchemeUserState</key>
<dict>
- <key>UnitTests.xcscheme</key>
+ <key>UnitTests.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
@DrAzraelTod
DrAzraelTod / servinit.cfg
Last active August 29, 2015 14:14
RedEclipse - Explode Mode - Now faster and with somewhat balanced weapons
// This file controls server side variables which control the operation of the server.
// To change a setting, remove the "// " in front of it and change the value.
//
// serverpass "nope" // server password required to successfully connect
adminpass "nope" // server password for administrators (/setmaster password)
if (= $rehashing 0) [
ircfilter 1 // defines the way the colour-to-irc filter works; 0 = off, 1 = convert, 2 = strip
ircaddrelay name chat.freenode.net 6667 g33ky-re
ircaddchan name "#g33ky"
ircrelaychan name "#g33ky" 2
@DrAzraelTod
DrAzraelTod / breaking_loops.java
Created September 2, 2014 10:58
How to break nested loops in Java?
for (BArray a: a_array) {
C find_me = null;
b_loop:
for (CArray b : a) {
for (C c: b) {
if (c.is_searched_result) {
find_me = c;
continue b_loop;
@DrAzraelTod
DrAzraelTod / type_conversions.js
Created June 25, 2014 09:31
automatic type-conversions suck
!!(""&&0)
> false
!!(""+0)
> true
!!(""-0)
> false
!!(""||0)
> false
!!(0+0)
> false
@DrAzraelTod
DrAzraelTod / disable_touchpad.sh
Created April 24, 2014 09:45
quick script to disable the touchpad on my work-thinkpad (t61)
#!/bin/bash
touchpad_id=`xinput list | grep -i "Synaptics TouchPad" | cut -f2 | grep -oE "[0-9]+"`;
xinput set-prop $touchpad_id "Device Enabled" 0