Skip to content

Instantly share code, notes, and snippets.

if __FILE__ == $0
ip = ARGV[0]
if not ip =~ /^\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3}$/
$stderr.puts "'#{ip}' is not a valid IP"
exit
end
`/etc/init.d/denyhosts stop`
@KrzaQ
KrzaQ / 0_reuse_code.js
Last active August 29, 2015 14:11
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@KrzaQ
KrzaQ / example.cpp
Created October 13, 2014 09:27
Default example cpp by kq
#include <cstdlib>
#include <cstdint>
#include <ctime>
#include <algorithm>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <iostream>
#include <iomanip>
#include <type_traits>
#include <sstream>
#include <boost/tti/has_member_function.hpp>
struct int_size{
int size() const { return 42; };
};
@KrzaQ
KrzaQ / DLL
Created April 17, 2012 23:30 — forked from anonymous/DLL
DLL
// dllmain.cpp : Defines the entry point for the DLL application.
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
HINSTANCE g_hInstance = NULL;
//Game.exe+113F0 - 55 - push ebp
// int __cdecl sub_4113F0(LPCSTR lpText)