Skip to content

Instantly share code, notes, and snippets.

Avatar
🔫
Hunting bugs

Gabor Garami hron84

🔫
Hunting bugs
View GitHub Profile
@hron84
hron84 / README.md
Last active Jul 9, 2020
easy-rsa CRL regen
View README.md

Easy-RSA CRL Regenerator

This script helps to regenerate CRL whenever is expires. Copy it into the Easy-RSA root, e.g. /etc/openvpn/easy-rsa and use it like the all other Easy-RSA scripts:

# source vars
# ./regen-crl
@hron84
hron84 / README.md
Last active Sep 17, 2019
Interactive YUM updates
View README.md

Interactive YUM Updates

This script allows you to select certain packages for update. It is useful if you having trouble running a single yum update and have a lot of packages to update (which is very common on production systems) or you want to delay the update of some packages but want the rest as soon as possible.

Usage

View bigbase.json
{stateIntArray:[I;1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,3,3,3,2,4,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,5,5,5,5,5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,6,2,2,2,2,2,6,7,4,4,7,7,7,7,7,8,9,10,10,10,10,10,10,10,9,11,12,8,13,12,11,13,14,8,13,12,11,14,8,13,12,11,12,8,9,11,13,15,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,5,1,1,1,1,1,5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,16,17,18,2,4,19,19,19,4,8,9,20,20,20,20,20,20,20,9,11,21,2,22,23,23,23,22,2,24,21,25,14,26,24,21,25,26,24,21,9,24,8,13,27,12,11,8,13,12,11,8,13,12,11,8,13,12,11,8,9,11,15,1,1,1,1,1,1,1,1,1,1,1,1,1,5,5,5,5,1,1,1,1,1,1,1,5,5,5,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,16,17,18,2,2,2,2,4,4,4,2,19,19,19,2,4,4,4,2,2,2,2,8,9,28,28,28,28,28,28,28,9,11,29,2,30,30,30,30,2,29,2,30,30,30,30,2,2,30,30,30,30,30,30,30,2,2,30,30,30,30,30,30,30,2,8,2,28,28,28,28,28,28,28,2,24,8,30,2,30,2,30,2,30,24,8,2,30,2,30,2,24,8,30,2,30,24,8,9,24,27,1,1,1,1,1,1,1,1,1,1,1,1,5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,5,1,1,1,1,1,1,1,1,1,1,31,2,2,16,17,18,2,2,32,4,4,19
View isDrupalReady.php
<?php
function val($x) {
if($x === true) { return 'on'; }
elseif($x === false) { return 'off'; }
else { return (string)$x; }
}
function isDrupalReady() {
View gist:0afb54c93606ad0753671282c8628a44
---- Minecraft Crash Report ----
WARNING: coremods are present:
Inventory Tweaks Coremod (InventoryTweaks-1.63.jar)
IELoadingPlugin (ImmersiveEngineering-core-0.12-86.jar)
AppleCore (AppleCore-mc1.12.2-3.1.4.jar)
LogisticsPipesCoreLoader (logisticspipes-0.10.1.63.jar)
CTMCorePlugin (CTM-MC1.12.2-0.3.2.20.jar)
LoadingPlugin (BetterWithLib-1.12-1.5.jar)
Contact their authors BEFORE contacting forge
@hron84
hron84 / happy.c
Last active Jul 31, 2018 — forked from neoeno/sad.c
View happy.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 / Hungarian.txt
Created Jan 10, 2017
WHMCS Translation
View Hungarian.txt
$_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";
View electool-sysadmin-promo.md

Electool Hungary Kft. (www.electool.com)

Budapesti központból, kilenc ország több száz vállalatát kiszolgáló, B2B felhő alapú pénzügyi szoftverek fejlesztője és e-beszerzési szolgáltatások régiós piacvezetője rendszergazdát keres a következő környezet támogatására:

Centos, Vmware, PostgreSQL, Lotus Domino, Tivoli Storage Manager, ActiveMQ, Tomcat, Memcached, Ruby on Rails, Nginx, Apache, Windows SBS

View 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
pam_auth_mysql OpenSSL MD5 Support patch
View 03_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
You can’t perform that action at this time.