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 / 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'
#!/bin/sh
git for-each-ref --count=15 --sort=-committerdate refs/heads/ --format='%(refname:short)!%(authorname)!%(committerdate:short)' | column -t -s '!'
@hron84
hron84 / README.md
Last active December 12, 2015 12:39

Git pre-commit hook for Ruby on Rails

This pre-commit hook is checks the files being committed to fits two rules:

  • No syntax error (both for Ruby and YAML files)
  • If this is an TestUnit, Cucumber, or RSpec test, it should pass

TODO

@hron84
hron84 / dir.groovy
Last active December 11, 2015 22:08
dir = {
klazz = null;
// So ugly hack. It is needed because some Groovy
// objects hides its getClass methods (like hashes)
if(it instanceof Class) {
klazz = it;
} else {
g = it.&getClass;
@hron84
hron84 / README.md
Last active December 11, 2015 01:09
Blocked IPs Drupal 6 module

Blocked IPs

placeholder

@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")
$('#nextmonth').on('click', fuction(e)) {
$.get('/rota_days/show.json?mon=12').success(function(data) {
rota_days = data
for ( i = 0; i < rota_days.length; i++)
{
rota_day = rota_days[0];
/* doing stuffs with rota_day */
}
@hron84
hron84 / deplist.txt
Created August 5, 2012 23:44
jetty output
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building SpringBlog 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.1:list (default-cli) @ SpringBlog ---
[INFO]
[INFO] The following files have been resolved:
[INFO] aopalliance:aopalliance:jar:1.0:compile
@hron84
hron84 / rbwhich.rb
Created February 23, 2012 01:41
Thin service init script with Bundler support
#!/usr/bin/env ruby
me = File.basename($0)
cmd = ARGV.shift
if not cmd or cmd == '--help'
puts "Usage: #{me} COMMAND"
exit 1
end