Skip to content

Instantly share code, notes, and snippets.

@mbikovitsky
mbikovitsky / CMakeLists.txt
Last active August 29, 2015 14:09
MinGW-w64 getopt
cmake_minimum_required (VERSION 2.8.12)
project(getopt)
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
add_library(getopt STATIC getopt.c getopt.h)
#!/bin/bash
# Copyright (c) 2013 Michael Bikovitsky
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@mbikovitsky
mbikovitsky / greetings.bf
Created September 13, 2013 15:39
Happy Programmers' Day!
++++++++[->++++++++<]>++++++++.<+++++[->+++++<]>.<+++[->+++<]>++++++..+++++++++.
<+++++++++[->---------<]>--------.<++++++[->++++++<]>++++++++++++.<+++++[->+++++
<]>+++++++++.---.--------.<+++[->+++<]>++.<++++[->----<]>-.<+++[->+++<]>+++..---
-----.<+++[->+++<]>++++.+.<++++++++[->--------<]>------------.-------.<++++++[->
++++++<]>.<+++++[->+++++<]>++++.<++++[->++++<]>++++++++.<+++++++++[->---------<]
>-------.<++++[->----<]>----.---.<
@mbikovitsky
mbikovitsky / gist:6752403
Created September 29, 2013 13:11
Hex Workshop *.PFF structure library
#include "standard-types.hsl"
#pragma maxarray(65536)
#pragma hide()
typedef struct DDS_PIXELFORMAT {
DWORD dwSize;
DWORD dwFlags;
DWORD dwFourCC;
DWORD dwRGBBitCount;
DWORD dwRBitMask;
@mbikovitsky
mbikovitsky / kanobu_featured.py
Last active December 28, 2015 04:59
Python 3 script for downloading the featured image from the homepage of Kanobu. After running the script the current directory will contain the individual panels and the merged image. Dependencies: - Beautiful Soup 4 (https://pypi.python.org/pypi/beautifulsoup4/) - Pillow (https://pypi.python.org/pypi/Pillow)
@mbikovitsky
mbikovitsky / privateer.html
Created December 9, 2013 18:39
Small application for stripping Pidgin logs of private information.
<!-- Copyright (c) 2013 Michael Bikovitsky
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
/* Copyright (c) 2013 Michael Bikovitsky
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
@mbikovitsky
mbikovitsky / Interface.acf
Created May 21, 2016 10:48
MSRPC type serialization sample
interface MyInterface
{
typedef [encode, decode] MY_STRUCT;
}
@mbikovitsky
mbikovitsky / keytest.py
Created May 31, 2016 22:11
Keystone test
#!/usr/bin/env python3
import struct
from keystone import *
from capstone import *
CODE = """
begin:

Keybase proof

I hereby claim:

  • I am mbikovitsky on github.
  • I am bikodbg (https://keybase.io/bikodbg) on keybase.
  • I have a public key ASAm9t66Hkt-A2j_XtgPlp9O3vKPK683hGwrAdNkqwCbLQo

To claim this, I am signing this object: