Skip to content

Instantly share code, notes, and snippets.


Lukáš Lalinský lalinsky

View GitHub Profile
View gist:a694bc04f8c87800beed962ad8369c76
lalinsky /
Created Jan 3, 2020
Bulk delete UFW rules
ufw status numbered | grep '# XXX' | perl -p -e 's{\[\s*(\d+)\].*}{\1}' | sort -rn | xargs -L1 ufw --force delete
View gnome-terminal-dark.desktop
[Desktop Entry]
Exec=env GTK_THEME=Adwaita:dark gnome-terminal
Name=Gnome Terminal (Dark)
GenericName=Terminal (Dark)
View gist:a43a4d1f171b15bf64295a8425ffe119
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c Modules/objc/objc-runtime-compat.m -o build/temp.macosx-10.6-intel-2.7/Modules/objc/objc-runtime-compat.o -DPyObjC_STRICT_DEBUGGING -DMACOSX -DPyObjC_BUILD_RELEASE=1006 -DMACOSX -g -fexceptions -Wall -Wstrict-prototypes -Wmissing-prototypes -Wformat=2 -W -Wpointer-arith -Wmissing-declarations -Wnested-externs -W -Wno-import -Wno-unknown-pragmas -Wshorten-64-to-32 -Ilibffi-src/include -Ilibffi-src/powerpc -isysroot /Applications/
Modules/objc/objc-runtime-compat.m:885:17: error: cannot find interface declaration for 'Object'; did you mean 'NSObject'?
@implementation Object (NSObjectCompat)
lalinsky / worlde-easykey-win81.txt
Last active Jan 23, 2017
worlde easykey usb capture
View worlde-easykey-win81.txt
3 12.840773 host 2.40.0 USB 64 GET DESCRIPTOR Request DEVICE
Frame 3: 64 bytes on wire (512 bits), 64 bytes captured (512 bits) on interface 0
Interface id: 0 (usbmon2)
Encapsulation type: USB packets with Linux header and padding (115)
Arrival Time: Jan 23, 2017 19:16:58.537817000 CET
[Time shift for this packet: 0.000000000 seconds]
Epoch Time: 1485195418.537817000 seconds
[Time delta from previous captured frame: 12.840416000 seconds]
View DecisionTreeClassificationModel to JSON.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View int64_format.diff
diff -Naur ./src/slon/slon.h ../slony1-2.0.7/src/slon/slon.h
--- a/src/slon/slon.h 2016-02-23 19:29:31.534631870 +0000
+++ b/src/slon/slon.h 2011-07-11 21:19:57.000000000 +0000
@@ -29,9 +29,6 @@
#include <sys/time.h>
-#ifndef INT64_FORMAT
-#define INT64_FORMAT "%" INT64_MODIFIER "d"
View mb-linux-32.json
"metadata": {
"version": {
"essentia": "2.1-beta1",
"essentia_git_sha": "v2.1_beta1-34-gf95df8b",
"extractor": "music 1.0"
"audio_properties": {
"analysis_sample_rate": 44100,
"bit_rate": 0,
lalinsky / osx
Created Apr 15, 2014
picard build scripts
View osx
cd deps
tar xf chromaprint-fpcalc-*.tar.gz
rm chromaprint-fpcalc-*.tar.gz
export PATH=`pwd`/`ls | grep chromaprint-fpcalc`:$PATH
cd ..
cat <<EOS >
import re, sys, datetime
source = open('picard/').read()
patched_source = re.sub(r'PICARD_VERSION = \((\d+), (\d+), (\d+), (\S+), (\d+)\)', r'PICARD_VERSION = (\1, \2, \3, "dev", ' +'%Y%m%d') + ')', source)