Navigation Menu

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 / netbeans.desktop
Created May 10, 2011 06:10
Netbeans Linux shortcut
[Desktop Entry]
Encoding=UTF-8
Name=NetBeans IDE 7.0
GenericName=NetBeans IDE
Comment=NetBeans IDE
Icon=/opt/netbeans/nb/netbeans.png
Exec=/opt/netbeans/bin/netbeans
Category=Development;IDE;Java;
Type=Application
Terminal=false
@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 / 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

@hron84
hron84 / checkdns.rb
Created April 26, 2011 10:09
Check domain on domain.hu
#!/usr/bin/env ruby
require 'uri'
require 'net/http'
require 'iconv'
if ARGV.size < 1 or ARGV[0] == '--help'
puts "Usage: #{File.basename(__FILE__)} DOMAIN"
exit 1
end
@hron84
hron84 / ddns-update
Created December 1, 2012 00:54
DynDNS update script for MikroTik
# Set needed variables
:local username "YourUser"
:local password "YourPass"
:local hostname "yourhostname.dyndns.org"
:global dyndnsForce
:global previousIP
# print some debug info
:log info ("UpdateDynDNS: username = $username")
{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