Skip to content

Instantly share code, notes, and snippets.

View kfigiela's full-sized avatar

Kamil Figiela kfigiela

View GitHub Profile
@kfigiela
kfigiela / N2QAYB001178.conf
Created February 14, 2019 11:39
Panasonic TV (2018 models) remote control (N2QAYB001178) LIRC config
# Please make this file available to others
# by sending it to <lirc@bartelmus.de>
#
# this config file was automatically generated
# using lirc-0.9.0-pre1(default) on Thu Feb 14 12:13:24 2019
#
# contributed by Kamil Figiela
#
# brand: Panasonic
@kfigiela
kfigiela / alb.tf
Created June 21, 2021 09:38
AWS ALB OIDC Google authentication
resource "aws_lb_listener" "https" {
load_balancer_arn = aws_lb.frontend.arn
port = "443"
protocol = "HTTPS"
ssl_policy = "ELBSecurityPolicy-2016-08"
certificate_arn = "TODO-CERT-ARN"
default_action {
type = "authenticate-oidc"
authenticate_oidc {
@kfigiela
kfigiela / _README.md
Last active July 13, 2023 10:14
Traktor Kontrol S5 S8 hacks

Warnings and instructions

  • You need to modify some Traktor files – do backup before you try – if files are incorrects screens become black.
  • You're doing that at your own risk!
  • If sth goes really bad – reinstall Traktor :-)
  • Traktor QML files are located by default in /Applications/Native Instruments/Traktor 2/Traktor.app/Contents/Resources/qml on Mac, on Windows look for qml in directory where Traktor is installed (I don't have windows machine around)…
  • You need real text-editor to modify files, you should try with Atom or Notepad++ to apply modifications
  • Files here are so called diff files, here is how to read them: http://stackoverflow.com/questions/2529441/how-to-read-the-output-from-git-diff

Hacks

{
"name": "example",
"build": {
"dockerfile": "Dockerfile",
},
"remoteUser": "user"
}
@kfigiela
kfigiela / trails.overpass
Created January 28, 2020 07:32
OSM overpass hiking trails query
/*
https://overpass-turbo.eu/#
*/
[out:xml][timeout:25];
(
rel[route]["osmc:symbol"][route="hiking"]({{bbox}});
);
out body;
>;
out skel qt;
@kfigiela
kfigiela / s5-browser-buttons.diff
Last active August 24, 2019 01:20
Traktor Kontrol S5 midi buttons hack
diff --git a/CSI/S5/S5Deck.qml b/CSI/S5/S5Deck.qml
index de264f7..29acf03 100755
--- a/CSI/S5/S5Deck.qml
+++ b/CSI/S5/S5Deck.qml
@@ -1244,6 +1244,8 @@ Module
{
enabled: browserIsContentList.value
+ Wire { from: "%surface%.display.buttons.2"; to: TriggerPropertyAdapter { path:"app.traktor.midi.buttons.3" } }
+ Wire { from: "%surface%.display.buttons.3"; to: TriggerPropertyAdapter { path:"app.traktor.midi.buttons.4" } }
@kfigiela
kfigiela / gist:7a9edfcf74ecaf94383fc5326fde094d
Created October 20, 2018 14:05
Xiaomi Air Purifier 2s miio output
Device ID: XXXXXXXXXX
Model info: zhimi.airpurifier.ma2
Address: X.X.X.X
Token: XXXXXXXXXXXX via stored token
Support: At least basic
Type info: miio:air-purifier, sensor, miio, air-purifier
Capabilities: miio:buzzer, miio:led-brightness, miio:switchable-led, pm2.5, relative-humidity, temperature, switchable-mode, mode, switchable-power, restorable-state, power, state
@kfigiela
kfigiela / Denon_RC-1163_lircd.conf
Last active October 5, 2018 15:15
LIRC config file for Denon RC-1163 remote for DRA-F109/DNP-F109/DCD-F109
# contributed by Kamil Figiela
#
# brand: Denon
# model no. of remote control: RC-1163
# devices being controlled by this remote: DRA-F109/DNP-F109/DCD-F109
#
# DRA-F109 has also serial port in its "Remote Connector" that provides better integration.
# See blog post for more information: http://kfigiela.github.io/2014/06/15/denon-remote-connector/
begin remote
@kfigiela
kfigiela / gist:7081994
Created October 21, 2013 10:53
ffmpeg timelapse / image sequence with video fade in and fade out and audio fade out commandline
ffmpeg -r 20 # input frame rate \
-i "%05d.JPG" # input file pattern \
-i audio.mp3 # input audio file \
-af "afade=t=out:st=132:d=4" # fade out audio for 4 seconds starting at 132 second \
-vf "fade=in:0:40, fade=out:2694:40" # fade in video in first 40 frames, then fade out for 40 frames starting at frame 2694 \
-r 30 # out frame rate is 30s (in that way youtube allows hd movies) \
-s 1280x720 # resize video to hd-ready res \
-vcodec libx264 -threads 4 -profile:v main -preset fast # video encoding settings \
-shortest # output file length should be of shortest input file length (usually audio file will be longer, so we fade out and cut) \
output.mp4 #output file name
@kfigiela
kfigiela / .ignoreme
Created December 14, 2017 11:08
freer monad
a