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
#include <iostream>
#if defined _WIN32 || defined __CYGWIN__
#include <windows.h>
#define sleep Sleep
#else
#include <unistd.h>
#endif
using namespace std;
@hron84
hron84 / README.md
Last active July 9, 2020 21:10
easy-rsa CRL regen

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 September 17, 2019 14:19
Interactive YUM updates

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

{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
<?php
function val($x) {
if($x === true) { return 'on'; }
elseif($x === false) { return 'off'; }
else { return (string)$x; }
}
function isDrupalReady() {
---- 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 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 / 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 / electool-sysadmin-promo.md
Created November 2, 2016 12:25
Electool Sysadmin ad

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

@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,