Skip to content

Instantly share code, notes, and snippets.

View rantanlan's full-sized avatar

rantanlan

View GitHub Profile
@WolfwithSword
WolfwithSword / bambu_bed_mesh_flow.json
Last active September 20, 2024 14:37 — forked from mkosmo/bambu_mqtt.json
Node-RED Flow - BambuLab X1 MQTT Relay for Home Assistant MQTT Auto-Discovery
[
{
"id": "40b2e704eefd62e1",
"type": "group",
"z": "fbda6ab16491b918",
"name": "Bed Mesh Parser",
"style": {
"stroke": "#92d04f",
"fill": "#9363b7",
"fill-opacity": "0.16",
@x43x61x69
x43x61x69 / vnc_install.sh
Last active August 23, 2025 19:42
Steam Deck VNC Installation
#!/bin/bash
#
# Script for installing x11vnc on Steam Deck.
#
# Install:
#
# sh -c "$(curl -fsSL https://gist.githubusercontent.com/x43x61x69/9a5a231a25426e8a2cc0f7c24cfdaed9/raw/vnc_install.sh?$RANDOM)"
#
# This will modify root filesystem so it will probably get
# overwrite on system updates but is totally ok executing
@R0GGER
R0GGER / _hsts.conf
Last active June 29, 2025 19:40
Workaround - Security Headers @ NGINX Proxy Manager
{% if certificate and certificate_id > 0 -%}
{% if ssl_forced == 1 or ssl_forced == true %}
{% if hsts_enabled == 1 or hsts_enabled == true %}
# HSTS (ngx_http_headers_module is required) (63072000 seconds = 2 years)
add_header Strict-Transport-Security "max-age=63072000;{% if hsts_subdomains == 1 or hsts_subdomains == true -%} includeSubDomains;{% endif %} preload" always;
add_header Referrer-Policy strict-origin-when-cross-origin;
add_header X-Content-Type-Options nosniff;
add_header X-XSS-Protection "1; mode=block";
add_header X-Frame-Options SAMEORIGIN;
add_header Content-Security-Policy upgrade-insecure-requests;
@mmichaelb
mmichaelb / Telegram_SSH_Login_notifier.md
Last active October 17, 2024 08:39
"Intelligent" Telegram SSH Login notifier on Linux using PAM

"Intelligent" Telegram SSH Login notifier on Linux using PAM

This login notifier uses IP information to send silent telegram notifications if the login source seem to be trustable.

Telegram Bot setup

First, please read this awesome Medium tutorial on how to setup the Telegram bot.

Telegram Linux setup

@itsjfx
itsjfx / keep-to-enex-jfx.py
Last active August 10, 2024 15:01
A modified version of the popular keep-to-enex script which allows you to choose a backup folder instead of parsing each file or * as an argument
# originally created and posted by user dgc on
# https://discussion.evernote.com/topic/97201-how-to-transfer-all-the-notes-from-google-keep-to-evernote/
# Modified by user charlescanato https://gitlab.com/charlescanato/google-keep-to-evernote-converter
# Modified by gokhan mete erturk to enable bulk operation of html files without any parameters and
# solves the character set problems on Windows
# Modified by Leonard777 to add importing of image data.
# Modified by itsjfx to read a folder and import HTML files
# until now, Google Takeout for Keep does NOT export:
# - correct order of lists notes (non-checked first, checked last)
@chris2k20
chris2k20 / Proxmox-Cloudinit.sh
Last active September 29, 2024 19:35
Proxmox Cloud-Init Template Creation Bash-Script (Ubuntu)
#!/bin/bash
# Creates a Ubuntu Cloud-Init Ready VM Template in Proxmox
#
# Update the image name and URL for Ubuntu 22.04 LTS
export IMAGENAME="jammy-server-cloudimg-amd64.img"
export IMAGEURL="https://cloud-images.ubuntu.com/jammy/current/"
export STORAGE="local-zfs-cache"
export VMNAME="ubuntu-2204-cloudinit-template"
export VMID=902204
@AnatomicJC
AnatomicJC / android-backup-apk-and-datas.md
Last active October 21, 2025 19:04
Backup android app, data included, no root needed, with adb

Backup android app, data included, no root needed, with adb

Note: This gist may be outdated, thanks to all contributors in comments.

adb is the Android CLI tool with which you can interact with your android device, from your PC

You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.

Don't hesitate to read comments, there is useful tips, thanks guys for this !

@Tomalak
Tomalak / Twitter-uBlock.txt
Last active July 20, 2021 19:06
Custom blocking rules for websites I use.
! Twitter element block rules, for use in uBlock Origin -------------------------
! ads ---------------------------------------------------------------------------
twitter.com##div.suggested-tweet-stream-container
twitter.com##div.promoted-tweet
twitter.com##li.promoted-trend
twitter.com##div.Footer-adsModule
twitter.com##div.js-actionable-user.promoted-account
! timeline breakers -------------------------------------------------------------
twitter.com##.js-stream-item[data-suggestion-json*='RecycledTweetInline']
@AveYo
AveYo / .. MediaCreationTool.bat ..md
Last active October 24, 2025 11:14
Universal MediaCreationTool wrapper for all MCT Windows 10 versions - MOVED TO github.com/AveYo/MediaCreationTool.bat