Skip to content

Instantly share code, notes, and snippets.

View ViktorStiskala's full-sized avatar

Viktor Stískala ViktorStiskala

View GitHub Profile
@ViktorStiskala
ViktorStiskala / cclean.sh
Created October 21, 2010 20:05
cclean.sh
#!/bin/bash
#
# Transliterate and clean C code using iconv and GNU Indent
# Created: 2010-10-21
# Author: Viktor Stískala, viktor@stiskala.cz
#
filename="$1"
encoding="$2"
@ViktorStiskala
ViktorStiskala / gist:557567
Created August 30, 2010 15:33
Wondershaper script without LAN limitation
#!/bin/bash
# Wonder Shaper
# please read the README before filling out these values
#
# Speed/Rate syntax: tcng vs. tc
# source: http://www.faqs.org/docs/Linux-HOWTO/Traffic-Control-tcng-HTB-HOWTO.html
#
# tcng English tc
# ----------------------------------------------
# bps bit(s) per second bit
@ViktorStiskala
ViktorStiskala / CustomRenderer.php
Created August 28, 2010 19:53
Custom renderer for Nette framework with containerClass support
<?php
/**
* Extended form renderer.
*
* @author Viktor Stískala <viktor(at)stiskala.cz>
*/
class CustomRenderer extends ConventionalRenderer
{
/**
* Renders 'control' part of visual row of controls.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Author: Viktor Stískala
# Contact: viktor (at) stiskala.cz
# Copyright: This module has been placed in the public domain.
"""
This module removes language specific characters from file name
and makes it more usable for web. Can be also used as nautilus user script