Skip to content

Instantly share code, notes, and snippets.

View JanKoppe's full-sized avatar
🐧
NOOT NOOT!

Jan Koppe JanKoppe

🐧
NOOT NOOT!
View GitHub Profile
TF_LOG=DEBUG tf apply
2023-06-12T08:44:15.341+0200 [INFO] Terraform version: 1.4.6
2023-06-12T08:44:15.341+0200 [DEBUG] using github.com/hashicorp/go-tfe v1.21.0
2023-06-12T08:44:15.341+0200 [DEBUG] using github.com/hashicorp/hcl/v2 v2.16.2
2023-06-12T08:44:15.341+0200 [DEBUG] using github.com/hashicorp/terraform-config-inspect v0.0.0-20210209133302-4fd17a0faac2
2023-06-12T08:44:15.341+0200 [DEBUG] using github.com/hashicorp/terraform-svchost v0.1.0
2023-06-12T08:44:15.341+0200 [DEBUG] using github.com/zclconf/go-cty v1.12.1
2023-06-12T08:44:15.341+0200 [INFO] Go runtime version: go1.19.6
2023-06-12T08:44:15.341+0200 [INFO] CLI args: []string{"/home/j/.asdf/installs/terraform/1.4.6/bin/terraform", "apply"}
2023-06-12T08:44:15.341+0200 [DEBUG] Attempting to open CLI config file: /home/j/.terraformrc
@JanKoppe
JanKoppe / README.md
Created January 24, 2021 13:11
Flashing Draytek Vigor130 when it's bricked

We have had a bricked Vigor130, which would not reset. We were unable to reach it even after resetting multiple times.

It was pingable on 192.168.1.1, but did not reply to any open ports with nmap scans, nor did it act as a dhcp server.

We connected a TTL adapter to the 4 pins on the board to see if there's a serial console on it.

Pinout:

                         |
+3.3v | RX | TX | GND |
$ LIBVA_DRIVER_NAME=i965 ffmpeg -y -init_hw_device qsv=hw -filter_hw_device hw -f decklink -i 'DeckLink Quad HDMI Recorder (1)' -vf hwupload=extra_hw_frames=64,format=qsv -c:v h264_qsv -b:v 5M output.mp4
ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 10.2.0 (GCC)
configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-avisynth --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmfx --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librav1e --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --e
@JanKoppe
JanKoppe / DesktopVideoUpdateTool
Last active October 19, 2020 12:48
ffmpeg-no-decklink-sources
# DesktopVideoUpdateTool -la
Available Devices:
* DeckLink Quad HDMI Recorder (Gc0272b0)
Firmware is up to date
@JanKoppe
JanKoppe / gist:96dc92564f223e86e21e28a66523518b
Last active April 15, 2020 12:28
ugly POC to get billable seconds per project for a gitlab runner from the api
import gitlab
from datetime import datetime, timedelta
import dateutil.parser
import pytz
import pprint
import os
BILLING_PERIOD_DAYS=7
@JanKoppe
JanKoppe / README.md
Last active December 9, 2019 11:59
36C3: Pretalx XML filter out track
@JanKoppe
JanKoppe / 1001.conf
Created July 2, 2019 08:24 — forked from blha303/1001.conf
Asterisk 1.0.0.1 context
[1001]
exten => _X.,1,Set(CALLERID(name)=1.0.0.1)
exten => _X.,n,Answer
exten => _X.,n,Wait(1)
exten => _X.,n,Playback(1001-recordtype) ; "Enter record type on your phone keypad, followed by the hash key. Press 1 to go to next character"
exten => _X.,n,Read(recordtype,,,si,)
exten => _X.,n,Playback(1001-domain) ; "Enter domain name to retrieve record, followed by the hash key"
exten => _X.,n,Read(domain,,,si,)
exten => _X.,n,Set(RECORD="${SHELL(/usr/bin/1001.py "${recordtype}")}")
exten => _X.,n,Set(ADDR="${SHELL(/usr/bin/1001.py "${domain}")}")
@JanKoppe
JanKoppe / group_vars_all.ayml
Created May 27, 2019 10:03
Ansible Templating issue
test:
multiline: |
f4x6aaBtLPQk898Ymfkn
TQsi69wDY40aluFbdp99
jqdGOkx9CN2xgWOM8JeI
M4lXnXyctLTDejDb2eZu
XBPmvqXJStQFZIQwHzLF
by0cxOYjrY3On6hj3oqk
Xu0Ze6Sz8EbC7udHsyxE
jNv0M7lWNJCfegOlDCJH
@JanKoppe
JanKoppe / .gitignore
Created May 2, 2019 09:25 — forked from smoser/.gitignore
cloud-init ubuntu nocloud example with network config
*.img
*.raw
@JanKoppe
JanKoppe / howToModifyOvaFile.md
Created May 2, 2019 05:54 — forked from goodjob1114/howToModifyOvaFile.md
how to modify .ova file on linux/Mac using terminal....export vm (OVF 1.0) from virtualbox, then modify some tag and hash value for import vm to ESXi

extract ova files from an archive

$ tar -xvf vmName.ova

modify ovf for some invalid tag

$ vi vmName.ovf