Skip to content

Instantly share code, notes, and snippets.

View olbat's full-sized avatar

Luc Sarzyniec olbat

View GitHub Profile
@olbat
olbat / French
Created April 14, 2015 10:32
Raidcore - missing translations
$ grep -Rn -- '^--.\+--[[:space:]]*TODO:[[:space:]]*French[[:space:]].\+!!!!' | wc -l
172
$ grep -Rn -- '^--.\+--[[:space:]]*TODO:[[:space:]]*French[[:space:]].\+!!!!'
Modules/Avatus.lua:44:-- ["Holo Hand Spawned"] = "Holo Hand Spawned", -- TODO: French translation missing !!!!
Modules/Avatus.lua:52:-- ["Portals have opened!"] = "Portals have opened!", -- TODO: French translation missing !!!!
Modules/Avatus.lua:53:-- ["Gun Grid Activated"] = "Gun Grid Activated", -- TODO: French translation missing !!!!
Modules/Avatus.lua:59:-- ["PURGE BLUE BOSS"] = "PURGE BLUE BOSS", -- TODO: French translation missing !!!!
Modules/Avatus.lua:61:-- ["GO TO SIDES !"] = "GO TO SIDES !", -- TODO: French translation missing !!!!
Modules/Avatus.lua:62:-- ["INTERRUPT CRUSHING BLOW!"] = "INTERRUPT CRUSHING BLOW!", -- TODO: French translation missing !!!!
@olbat
olbat / errors.rb
Created September 19, 2011 12:26
Thread-safe ruby library that allow you to download, extract, compress and hash (archive) files
# Exception classes
# An error related to the resource management
class ResourceError < Exception
end
# The specified resource was not found
class ResourceNotFoundError < ResourceError
end
@olbat
olbat / cpubench.c
Created September 19, 2011 11:48
CPU Benchmark that try to get guess precisely the number of loop that can be performed in a specified amount of time
/*
* Copyright (C) 2011 Sarzyniec Luc <mail@olbat.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
@olbat
olbat / data_spoofer_receiver.c
Created September 19, 2011 11:58
Share data spoofing them and bouncing on a specified server (data are stored in TCP ACK field, bouncing is done via TCP RST)
/*
* Copyright (C) 2006, 2007 Sarzyniec Luc <mail@olbat.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
@olbat
olbat / printfile.c
Created September 19, 2011 12:03
Allow you to print (binary) files in a formated and readable output
/*
* Copyright (C) 2006, 2007 Sarzyniec Luc <mail@olbat.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
@olbat
olbat / portscanner.c
Created September 19, 2011 12:14
Scan a specific machine to see which ports it's listening on
/*
* Copyright (C) 2006, 2007 Sarzyniec Luc <mail@olbat.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
@olbat
olbat / Makefile
Created September 19, 2011 12:39
GNU/Linux Kernel module sample that read the current time on the RTC chip
obj-m += realtimeclock.o
all:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
clean:
make -c /lib/modules/$(shell uname -r)/build M=$(PWD) clean
@olbat
olbat / keybase.md
Created January 26, 2017 13:13
keybase.md

Keybase proof

I hereby claim:

  • I am olbat on github.
  • I am olbat (https://keybase.io/olbat) on keybase.
  • I have a public key whose fingerprint is D1CC 3AE0 5ADA FF27 BEE6 27B7 0B1A 5390 865E 24D7

To claim this, I am signing this object:

@olbat
olbat / icu_info.cr
Last active May 5, 2017 00:53
A Crystal program that returns information about the ICU install
require "xml"
require "c/dlfcn"
PKGNAME = "icu-uc"
TESTFUNC = "u_init"
{% if flag?(:darwin) %}
SOFILE = "libicuuc.dylib"
{% elsif flag?(:windows) %}
SOFILE = "libicuuc.dll"
{% else %}
@olbat
olbat / ruby_collapse_nested_module_defs.rb
Last active May 5, 2017 11:50
Ruby script that rewrite source code collapsing nested modules definitions
src = STDIN.read
# iterate on "1st level" module definitions
src.dup.scan(/^module [^;]+$.+?^end/m) do |mod|
# get the nested modules' definitions
mdefs = mod.scan(/^ *module [^\n]+$(?=\n +module)/m).map(&:to_s)
# stop if there is no nested module definition
next if mdefs.empty?
ndefs = mdefs.size
# get the last definition that's not extracted because of the look ahead