Skip to content

Instantly share code, notes, and snippets.

@sztanpet
sztanpet / antihl.lua
Last active October 19, 2015 12:26
A hexchat lua (https://github.com/mniip/hexchat-lua) plugin to ignore highlights from users
--[[
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
@sztanpet
sztanpet / pre-commit
Last active September 4, 2015 21:04 — forked from hugowetterberg/cleanup.sed
#!php
<?php
$files = array();
exec('git diff-index --cached --name-only --diff-filter=ACMRTUXB HEAD', $files );
$exitcode = 0;
// dont redirect stderr to stdin, we will get the errors twice, redirect it to dev/null
if ( PHP_OS == 'WINNT' )
$redirect = ' 2> NUL';
else