Skip to content

Instantly share code, notes, and snippets.

View koudis's full-sized avatar

Jan Kubalek koudis

View GitHub Profile
#include <thread>
#include <chrono>
#include <iostream>
int main() {
std::thread t([] {
std::cout << "Thread started" << std::endl;
std::this_thread::sleep_for(std::chrono::seconds(3));

Keybase proof

I hereby claim:

  • I am koudis on github.
  • I am koudis (https://keybase.io/koudis) on keybase.
  • I have a public key ASCNqo-X8zgA8SHpbP1TXzuQRsEzFlbezMKpjQjr2lQRjgo

To claim this, I am signing this object:

#include <mach-o/dyld.h>
#include <string.h>
#include <dlfcn.h>
#include <stdio.h>
int32_t
library_version(const char* libraryName) {
unsigned long i, j, n;
struct load_command *load_commands, *lc;
@koudis
koudis / .c
Created July 14, 2019 21:02
Register/unregister Windows USB device
#include <iostream>
#include <string>
#include <windows.h>
#include <setupapi.h>
#include <combaseapi.h>
#include <newdev.h>
#include <Usbiodef.h>
@koudis
koudis / config.yml
Last active August 29, 2015 14:25 — forked from pkuczynski/parse_yaml.sh
Read YAML file from Bash script
development:
adapter: mysql2
encoding: utf8
database: my_database
username: root
password: