Skip to content

Instantly share code, notes, and snippets.

View ciembor's full-sized avatar

Maciej Ciemborowicz ciembor

View GitHub Profile
@ciembor
ciembor / dfmonitor
Created July 30, 2011 18:24
Simple monitor of disk usage
#!/bin/bash
# Example usage:
# dfmonitor -h /home
while true;
do
clear
df $@
sleep 5
@ciembor
ciembor / gist:1045843
Created June 24, 2011 22:52
execute JavaScriptMVC from any directory
We couldn’t find that file to show.
@ciembor
ciembor / lista.c
Created June 8, 2011 01:26
ASD, listy
/*
W implementacji wskaźnikowej dana jest lista pojedynczo wiązana o parzystej liczbie elementów.
Zero też jest liczbą parzystą. Elementy danej listy POPRZESTAWIAC w ten sposób,
zeby na początku znalazły się elementy najbardziej skrajne
- pierwszy z ostatnim, następnie drugi z przedostatnim itd.
*/
#include<stdio.h>
#include<stdlib.h>
@ciembor
ciembor / broadcast.php
Created June 7, 2011 06:07
Broadcast Messaging System based on BotApi (Gadu-Gadu protocol)
<?php
require_once 'GGBotApi/PushConnection.php';
/********************************/
/******* LISTA ROZMÓWCÓW ********/
/********************************/
$interlocutors = array(
8112393 => array('Asia', 149, 179, 0),
@ciembor
ciembor / cstrike
Created June 7, 2011 06:02
CouterStrike and Windows .xinit
#!/bin/sh
######################
# ~/.xinit/cstrike #
######################
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap