Skip to content

Instantly share code, notes, and snippets.

View jamek's full-sized avatar
💭
I may be slow to respond.

Dawid Jamka jamek

💭
I may be slow to respond.
View GitHub Profile
diff --git a/package/gperftools/Config.in b/package/gperftools/Config.in
new file mode 100644
index 0000000..21c5724
--- /dev/null
+++ b/package/gperftools/Config.in
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_GPERFTOOLS
+ bool "GPerfTools"
+ help
+ Gperftools
@jamek
jamek / reflect.py
Created July 25, 2018 10:57 — forked from huyng/reflect.py
A simple echo server to inspect http web requests
#!/usr/bin/env python
# Reflects the requests from HTTP methods GET, POST, PUT, and DELETE
# Written by Nathan Hamiel (2010)
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler
from optparse import OptionParser
class RequestHandler(BaseHTTPRequestHandler):
def do_GET(self):
@jamek
jamek / compact.cpp
Created May 30, 2018 09:28 — forked from Wunkolo/compact.cpp
Ascii Raymarcher(old)
#include <math.h>
#include <algorithm>
#include <string>
#include <pmmintrin.h>
using namespace std;typedef float R;
#define _W 79
#define _H 39
#define EP 0.01f
#define OP operator
#define C const
@jamek
jamek / onchange.sh
Created February 15, 2016 16:54 — forked from senko/onchange.sh
Watch current directory and execute a command if anything in it changes
#!/bin/bash
#
# Watch current directory (recursively) for file changes, and execute
# a command when a file or directory is created, modified or deleted.
#
# Written by: Senko Rasic <senko.rasic@dobarkod.hr>
#
# Requires Linux, bash and inotifywait (from inotify-tools package).
#
# To avoid executing the command multiple times when a sequence of