Skip to content

Instantly share code, notes, and snippets.

View hron84's full-sized avatar
🔫
Hunting bugs

Gabor Garami hron84

🔫
Hunting bugs
View GitHub Profile
@hron84
hron84 / happy.c
Last active July 31, 2018 10:00 — forked from neoeno/sad.c
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <time.h>
#include <stdlib.h>
const char* RESET = "\x1B[0m";
const char *COLORS[] = { "\x1B[31m", "\x1B[32m", "\x1B[33m", "\x1B[34m", "\x1B[35m", "\x1B[36m" };
int main() {
@hron84
hron84 / sqlite.pm
Created June 22, 2011 15:27
OTRS SQLite support (Kernel/System/DB/sqlite.pm)
# --
# Kernel/System/DB/mysql.pm - mysql database backend
# Copyright (C) 2001-2011 OTRS AG, http://otrs.org/
# --
# $Id: mysql.pm,v 1.55.2.3 2011/03/01 19:17:30 en Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --
@hron84
hron84 / Hungarian.txt
Created January 10, 2017 07:06
WHMCS Translation
$_LANG["invoicesbacktoclientarea"] = "<< Vissza az \303\234gyf\303\251lkapuhoz";
$_LANG["upgradedowngradeconfigoptions"] = "Csomagv\303\241lt\303\241si opci\303\263k";
$_LANG["twitterfollowuswhy"] = "hogy megismerje a leg\303\272jabb h\303\255reinket \303\251s aj\303\241nlatainkat";
$_LANG["contacterrorsubject"] = "Nem adt\303\241l meg t\303\241rgyat";
$_LANG["knowledgebaseratingtext"] = "ember tal\303\241lta hasznosnak";
$_LANG["clientareaerrorphonenumber"] = "Nem adt\303\241l meg telefonsz\303\241mot";
$_LANG["quotevaliduntil"] = "\303\211rv\303\251nyes";
$_LANG["sslconfigcompletedetails"] = "Az SSL tanus\303\255tv\303\241ny be\303\241llit\303\241sa befejez\305\221d\303\266tt, \303\251s elk\303\274ld\303\251sre ker\303\274lt a tanus\303\255tv\303\241nykibocs\303\241t\303\263hoz. Hamarosan megkapod a meger\305\221s\303\255t\305\221 e-mailt.";
$_LANG["whoisresults"] = "WHOIS eredm\303\251nyek";
$_LANG["contacterrormessage"] = "Nem adt\303\241l meg \303\274zenetet";
@hron84
hron84 / lotto.c
Last active October 24, 2016 09:19 — forked from fejesjoco/lotto.c
/*
* Feladat:
* Irjon C programot az otoslotto nyeroszamainak veletlenszeru eloallitasara!
* Ugyeljen, hogy ne ismetlodjenek a szamok!
*
* Megoldas:
* Legeneralunk a "szamok" tombbe egy szamsort 1-90-ig (lehetseges nyeroszamok),
* Ezekbol kihuzunk egy szamot, amit beirunk a "nyeroszamok" tombbe,
* A kihuzott szamot a "szamok" tombben kicsereljuk az utolso elemmel,
* Legkozelebb a "szamok" tomb elsotol utolso elotti elemeig valasztunk nyeroszamot,
@hron84
hron84 / 03_openssl_md5_support.patch
Created May 24, 2016 15:14
pam_auth_mysql OpenSSL MD5 Support patch
#! /bin/sh /usr/share/dpatch/dpatch-run
## 02_libpam.patch by Lars Bahner <bahner@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: This patch makes sure Makefile references -lpam
## to insure correct linking
@DPATCH@
--- pam-mysql-0.7~RC1.orig/pam_mysql.c 2006-01-09 11:35:59.000000000 +0100
+++ pam-mysql-0.7~RC1/pam_mysql.c 2016-05-24 16:48:59.664125029 +0200
#!/bin/bash
PAPEROPTS="-x 210mm -y 297mm"
SCANOPTS="${PAPEROPTS} --resolution 300 --format=tiff --mode Gray"
function die() {
echo " !!!! $@ !!!!"
exit 1
}
@hron84
hron84 / .gitignore
Last active December 18, 2015 17:29
Plop
*.pyo
*.pyc
@hron84
hron84 / notepad.js
Last active December 17, 2015 13:39
Notepad bookmarklet
javascript:title=window.prompt("Title:", "Untitled");window.open("data:text/html, <html contenteditable><title>"+title+" &mdash; Notepad</title></html>","Notepad","modal=yes,alwayRaised=yes,fullscreen=no,width=640,height=480");
@hron84
hron84 / post.md
Last active December 15, 2015 17:09

Egy régóta dédelgetett álom vált ma valóra: végre megtaláltam a megfelelő környezetet arra, hogy felköltözzem a GitHub-ra. Már régóta tervezgettem a költözést, egészen pontosan azóta, amióta olvastam a GitHub Pages szolgáltatásról - már nem tudom, hol. Mert igazából ez az, ami nekem kell: egy szövegfájl, amibe beleírom a gondolataimat, néhány egyszerű trükk, amivel megformázom, és végül pár gombnyomás, amivel beküldöm.

Blogtörténelem

Eredetileg Wordpress alapú blogom volt. Az túlzás lenne, hogy szerettem, mondjuk, hogy kedveltem. Mármint a blogot. Az adminfelületét már

@hron84
hron84 / coelho.sh
Created March 22, 2013 13:05
Command line coelho
#!/bin/sh
curl -ks http://instantcoelho.com/ | fgrep -A1 '<div id="quote">' | sed -n 's/<p>//;s/<\/p>//;2p' | tr -d '\t'