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
smtpd_banner = Welcome! I'm an ESMTP capable SMTP server.
biff = no
setgid_group = postdrop
append_dot_mydomain = no
myhostname = mail.mittudomain.hu
alias_maps = hash:/etc/postfix/aliases
alias_database = hash:/etc/postfix/aliases.db
<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<!-- $Id: vmware.service 995 2005-11-17 15:26:53Z yale $ -->
<!--
This file is part of avahi.
avahi is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<!-- $Id: ssh.service 1391 2007-02-07 11:54:54Z lennart $ -->
<!--
This file is part of avahi.
avahi is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation; either version 2 of the
@hron84
hron84 / gist:275390
Created January 12, 2010 17:36
Twitter1.awk
#!/usr/bin/awk -f
BEGIN {
twuser="user"
twpass="secret"
status = "";
if(twuser == "" || twpass == "") {
print "No twitter username or password defined";
exit 1;
@hron84
hron84 / gist:275392
Created January 12, 2010 17:37
Twitter2.awk
#!/usr/bin/awk -f
BEGIN {
twuser="user"
twpass="secret"
status = "";
}
{
status = status " " $0;
@hron84
hron84 / .irbrc
Created February 11, 2010 06:23
IRB config
def view_hash(hash)
a = hash.is_a?(Hash) ? [hash] : hash
Hirb::Helpers::Table.render a, :vertical => true
end
if defined? IRB
require 'irb/completion'
require 'rubygems'
begin
require 'hirb'
BEGIN {
post_email="senki@sehol.se";
post_pass="verysecret";
# Optional, delete this line if empty
post_siteid="1234567";
####################### DO NOT EDIT BELOW THIS ##########################
# Program name and URL
post_source = "GNU AWK";
@hron84
hron84 / epatch.sh
Created February 21, 2010 14:30
Bulk patch script
#!/bin/bash
## This code is proteced by Creative Commons Attribution-Share Alike 2.5 Generic licence
## Some rights reserved
##
## @author: Gabor Garami <hrgyster@gmail.com>
## @version: 0.2
## @since: 02/2010
@hron84
hron84 / CC-BY-NC-SA
Created August 8, 2010 21:25
CreativeCommons BY-NC-SA License in Text
Creative Commons
Creative Commons Legal Code
Attribution-NonCommercial-ShareAlike 2.0
CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE LEGAL
SERVICES. DISTRIBUTION OF THIS LICENSE DOES NOT CREATE AN ATTORNEY-CLIENT
RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION ON AN "AS-IS" BASIS.
CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE INFORMATION PROVIDED, AND
DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM ITS USE.
@hron84
hron84 / massunmask.pl
Created August 16, 2010 13:31
Mass unmask
#!/usr/bin/perl
my( $pack ) = "" ;
$pack .= " $_" for ( @ARGV ) ;
my( $b ) = 1;
while( $b )
{
$b = '' ;
@out = `emerge -pv$pack` ;
$portage = '/etc/portage/package' ;