Skip to content

Instantly share code, notes, and snippets.

View Informatic's full-sized avatar
🤔
excuse me, is this facebook

Piotr Dobrowolski Informatic

🤔
excuse me, is this facebook
View GitHub Profile
@Informatic
Informatic / pycextractor.py
Last active April 21, 2016 21:49
Extracts .pyc from frozen binaries (i've got no idea what freezer that was :^))
"""
Extracts plain python bytecode / marshal code from frozen binary.
Dirty as fuck and might fail / miss random stuff, but worked fine for me.
NOTE: Creates dump_*.pyc files in current directory!
"""
import sys
counter = 1
@Informatic
Informatic / example.tex
Last active May 10, 2016 16:30
Lennyface LaTeX package
\documentclass{article}
\usepackage{lenny}
\begin{document}
Hello World! \lenny
\end{document}
@Informatic
Informatic / Makefile
Last active July 24, 2016 08:51 — forked from jcmvbkbc/Makefile
ESP8266 Makefile for C/C++, which seems to compile properly on FreeRTOS SDK
# tnx to mamalala
# Changelog
# Changed the variables to include the header file directory
# Added global var for the XTENSA tool root
#
# This make file still needs some work.
#
# Updated for SDK 0.9.2
#
# Output directors to store intermediate compiled files
@Informatic
Informatic / contrec.lua
Created December 18, 2016 15:30
MagicLantern continuous recording Lua replacement (for Canon 500D, seems to work fine for me)
-- starts movie recording after a delay
contrec_running = false
contrec_stop = false
contrec_countdown = 0
function contrec_main()
if contrec_running then contrec_stop = true return end
if camera.mode == MODE.MOVIE and movie.recording == false and contrec_menu.submenu["Delay Amount"].value > 0 then
contrec_running = true
@Informatic
Informatic / thegame.py
Last active December 28, 2016 23:24
Simple SIP DTMF-to-keypress program I hacked up on 33c3. It is for tetris, you know.
# $Id$
#
# SIP DTMF-to-keypress
#
# Copyright (C) 2003-2008 Benny Prijono <benny@prijono.org>
#
# 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 2 of the License, or
# (at your option) any later version.
@Informatic
Informatic / README.md
Last active September 13, 2017 07:46
ansible + letsencrypt + nginx

Small example on how to set up letsencrypt with nginx and ansible.

  1. Include nginx snippet in default configuration and configuration of every vhost you would like to have letsencrypt enabled for
  2. Make sure nginx is reloaded before letsencrypt role (protip: - meta: flush_handlers)
  3. Use playbook.yml as a further example.
@Informatic
Informatic / gist:ba8aef167a92eba5acde
Created March 9, 2016 19:29
FLOSS / Non-shady Windows tools
@Informatic
Informatic / IOMMU fun.md
Last active September 13, 2017 07:49
Log of my struggle with vfio / iommu / VGA passthrough

It just works™, at least on Windows 10 & UEFI/OVMF. Remember to have QXL emulated graphics enabled. This will show as an additional screen in Windows, but you'll be able to just disable it. Only downside of that is you won't get OVMF and Windows splashscreen on physical screen.

Hardware

  • AMD Phenom II x4 955
  • ASRock 970 Extreme3
  • AMD Radeon R9 280x
  • 16GB RAM
@Informatic
Informatic / bundle-conf
Created October 29, 2017 10:09
Simple OpenVPN+EasyRSA configuration bundler
#!/usr/bin/env bash
set -e
panic() { echo $* >&2; exit 1; }
HOST="$(hostname)"
CLIENT="$1"
[ -z "$CLIENT" ] && panic "usage: ./bundle-conf [CLIENT]"
@Informatic
Informatic / README.md
Created February 24, 2018 12:21
Raspberry Pi xscreensaver DPMS fix

This script will watch for xscreensaver blanking event and disable actual HDMI output accordingly.