Skip to content

Instantly share code, notes, and snippets.

@complex857
complex857 / calendizer.php
Created October 29, 2012 09:24
calendizer
<?php
define('OUTDIR', dirname(__FILE__).'/out/');
define('IN_CSV', dirname(__FILE__).'/magyar_naptar_2013_indd_utf8.txt');
header('Content-Type:text/html; charset=utf-8');
$layouts = array(
-1 => 'plain',
/*
* +--+--+
@complex857
complex857 / dbextract.sh
Created February 29, 2012 21:14
extract specific db from mysqldump output
#!/bin/bash
# copypasted from the internet, added foreign key check disable/enable
line=`grep -m 1 -n "Current Database: .$2" $1 | cut -d ":" -f 1`
next=`sed 1,${line}d $1|grep -m 1 -n "Current Database" | cut -d ":" -f 1`
end=$(($line + $next -1))
echo set foreign_key_checks = 0';'
sed -n ${line},${end}p $1
echo set foreign_key_checks = 1';'
@complex857
complex857 / addWithTermination.js
Created October 5, 2011 05:41
-val, -vel rag generálása szóhoz
function addWithTermination(word) {
var vowels = [
'a', 'á',
'e', 'é',
'i', 'í',
'o', 'ó',
'ö', 'ő',
'u', 'ú',
'ü', 'ű'
@complex857
complex857 / gist:888178
Created March 26, 2011 10:04
dcl sqrt for vms \o/
$ if P1 .eqs. "MAIL"
$ then
$ mail 'f$env("procedure")' MAULIS /subject="VMS BEADANDO 3"
$ goto legvege
$ endif
$ base = p1 * 1000000
$ last = 0
$ cur = 999 !gyok1hez
$ mul_loop:
$ cur = cur+1
@complex857
complex857 / gist:879407
Created March 21, 2011 12:54
win32 crtmpserver r395
Index: builders/VS2010/rtmpserver/rtmpserver.vcxproj
===================================================================
--- builders/VS2010/rtmpserver/rtmpserver.vcxproj (revision 395)
+++ builders/VS2010/rtmpserver/rtmpserver.vcxproj (working copy)
@@ -14,6 +14,7 @@
<ProjectGuid>{263CEFE6-3D6C-4F9F-9FE0-DA8A9A2FA996}</ProjectGuid>
<RootNamespace>rtmpserver</RootNamespace>
<Keyword>Win32Proj</Keyword>
+ <ProjectName>crtmpserver</ProjectName>
</PropertyGroup>