Skip to content

Instantly share code, notes, and snippets.

View v2px's full-sized avatar
👻

v2px

👻
  • Berlin - Germany
View GitHub Profile
@v2px
v2px / icecast.rb
Last active December 14, 2015 07:19 — forked from anonymous/icecast.rb
require 'mechanize'
require 'xmlsimple'
plugin = Plugin.new "icecast"
plugin.handle(/^stream$/i) do |data|
next data[:room].say "Punkrockers Stream: http://stream.punkrockers-radio.de:8000/prr"
end
plugin.handle(/^np$/i) do |data|
@v2px
v2px / rules-ipv4.iptables
Last active July 10, 2021 17:52 — forked from jirutka/rules-both.iptables
replaced obsolete state match with conntrack
###############################################################################
# Copyright 2012 Jakub Jirutka. All rights reserved.
#
# "THE KOFOLA-WARE LICENSE" (Revision 1):
# Jakub Jirutka originally wrote this file. As long as you retain this notice you
# can do whatever you want with this stuff. If we meet some day, and you think
# this stuff is worth it, you can buy me a Kofola in return. <[email protected]>
#
###############################################################################
@v2px
v2px / soupclones.md
Last active August 7, 2020 17:44 — forked from severak/soupclones.md
Soup clones comparison

Soup clones comparison

only things which are different are described here. Unique features are marked bold.

(Note this is mostly for me as TODO list for Kyselo.)

Kyselo Souper.io Loforo
developer Severák zorp & titos2k DevZero LLC (Jovan)
opensource? yes not yet no - commercial service
@v2px
v2px / .vimrc
Created November 10, 2024 12:41
set mouse=
set ttymouse=
set background=dark
set number
set relativenumber
set laststatus=2
@v2px
v2px / log.c
Created November 10, 2024 13:48
#include <sys/errno.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
int
psircd_log(const char *level, const char *fname, int lineno, const char *fxname, const char *fmt, ...) {
char *log_prefix = NULL;
@v2px
v2px / log.c
Created November 10, 2024 17:11
#include <sys/errno.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#define TIMEBUF_LEN 32 /* this should fit %c for all locales */
int
#include <arpa/inet.h>
#include <netinet/in.h>
#include <stdio.h>
#include <string.h>
#include <sys/errno.h>
#include <sys/socket.h>
#include <sys/types.h>
#include "log.h"