Skip to content

Instantly share code, notes, and snippets.

View felixfischer's full-sized avatar

Felix Fischer felixfischer

View GitHub Profile
@felixfischer
felixfischer / universelle-packliste.md
Last active November 12, 2023 14:26
universelle Packliste

universelle Packliste

Kleidung

  • Jacke/Mantel
  • Regenschutz
  • Windbreaker
  • schicke Oberbekleidung (z. B. Jackett)
  • dunkler Pullover/Sweater
  • 2-3 Langarm-Shirts
@codepo8
codepo8 / reset.md
Created October 8, 2022 07:06
Reset WLAN in train

sudo /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -z

openssl rand -hex 6 | sed 's/(..)/\1:/g; s/.$//' | xargs sudo ifconfig en0 ether

@koraysels
koraysels / roland-dxy-1350.md
Last active May 8, 2023 00:17
Roland Plotter HPGL install guide for Mac
@MrDrMcCoy
MrDrMcCoy / Caddyfile
Created August 23, 2019 21:55
Run Nextcloud, Bitwarden_rs, and poste.io with Caddy proxy in Docker
yourhost.com {
redir / https://cloud.yourhost.com 301
}
cloud.yourhost.com {
tls admin@yourhost.com
header / Strict-Transport-Security "max-age=31536000;"
root /var/www/html
fastcgi / nextcloud:9000 php {
connect_timeout 1h
@KrzysztofPrzygoda
KrzysztofPrzygoda / htpasswd.php
Last active September 19, 2022 07:37
A simple PHP .htpasswd and .htaccess generator
<pre>
<?php
/**
* A simple PHP .htpasswd and .htaccess generator
* If already present, .htpasswd is overwrittern but .htaccess is prepended with Access clousure if not found
*
* @author Krzysztof Przygoda, 2018
* @version 1.0
*/
@docPhil99
docPhil99 / macFFmpeg.md
Last active August 16, 2024 14:38
Mac webcam FFmpeg

#Capture and stream a webcam To capture using the iSight camera on a Mac, or infact any other webcam connected to the Mac, we can use FFmpeg. First get a list of the devices installed.

ffmpeg -f avfoundation -list_devices true -i "" 

This will list the aviable video and audio devices.

The below will capture at 30fps and the set video size to a file. ffmpeg -f avfoundation -framerate 30 -video_size 640x480 -i "0:none" out.avi

@patrickleet
patrickleet / elasticsearch_cluster.yml
Created December 14, 2017 15:56
docker stack for elasticsearch cluster
version: "3"
networks:
default:
proxy:
external: true
volumes:
@prasanthj
prasanthj / lirc-pi3.txt
Last active June 20, 2024 10:09
Getting lirc to work with Raspberry Pi 3 (Raspbian Stretch)
Notes to make IR shield (made by LinkSprite) work in Raspberry Pi 3 (bought from Amazon [1]).
The vendor has some documentation [2] but that is not complete and sufficient for Raspbian Stretch.
Following are the changes that I made to make it work.
$ sudo apt-get update
$ sudo apt-get install lirc
# Add the following lines to /etc/modules file
lirc_dev
lirc_rpi gpio_in_pin=18 gpio_out_pin=17
@gboudreau
gboudreau / AuthyToOtherAuthenticator.md
Last active September 19, 2024 20:21 — forked from Ingramz/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy

Exporting your 2FA tokens from Authy to transfer them into another 2FA application

IMPORTANT - Update regarding deprecation of Authy desktop apps

Past August 2024, Authy stopped supported the desktop version of their apps:
See Authy is shutting down its desktop app | The 2FA app Authy will only be available on Android and iOS starting in August for details.

And indeed, after a while, Authy changed something in their backend which now prevents the old desktop app from logging in. If you are already logged in, then you are in luck, and you can follow the instructions below to export to tokens.

If you are not logged in anymore, but can find a backup of the necessary files, then restore those files, and re-install Authy 2.2.3 following the instructions below, and it should work as expected.

@igr
igr / install-startssl-certs.sh
Created November 10, 2016 21:11
Installs startssl CA certs into the global Java keystore
#!/bin/bash
# Downloads and installs the startssl CA certs into the global Java keystore
set -euf -o pipefail
# Check if JAVA_HOME is set
if [ "$JAVA_HOME" = "" ]
then
echo "ERROR: JAVA_HOME must be set."
exit 1