Skip to content

Instantly share code, notes, and snippets.

View kfigiela's full-sized avatar

Kamil Figiela kfigiela

View GitHub Profile
{
"name": "example",
"build": {
"dockerfile": "Dockerfile",
},
"remoteUser": "user"
}
@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 / 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 / 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 <[email protected]>
#
# 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 / 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 / .ignoreme
Created December 14, 2017 11:08
freer monad
a
@kfigiela
kfigiela / DefaultKeyBinding.dict
Created September 12, 2017 19:29 — forked from Overbryd/DefaultKeyBinding.dict
Textmate like key bindings for all Mac OSX input fields
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!--
Put this file unter ~/Library/KeyBindings/DefaultKeyBinding.dict
Ctrl+Shift+D duplicate line
Ctrl+U uppercase Word/selection
Ctrl+Shift+U lowercase Word/selection
Ctrl+K delete line
Alt+Return insert new line below your cursor
-->
@kfigiela
kfigiela / diff.diff
Created July 6, 2017 09:17
Traktor bar markers
diff --git a/Screens/Views/Waveform/Stripe.qml b/Screens/Views/Waveform/Stripe.qml
index 6561d2b..c3d9204 100755
--- a/Screens/Views/Waveform/Stripe.qml
+++ b/Screens/Views/Waveform/Stripe.qml
@@ -26,6 +26,7 @@ Traktor.Stripe {
AppProperty { id: trackLength; path: "app.traktor.decks." + (deckId + 1) + ".track.content.track_length" }
AppProperty { id: propTrackSampleLength; path: "app.traktor.decks." + (deckId + 1) + ".track.content.sample_count" }
+ AppProperty { id: trackBPM; path: "app.traktor.decks." + (deckId+1) + ".tempo.base_bpm" }
@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 / _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