Skip to content

Instantly share code, notes, and snippets.

View bastibeckr's full-sized avatar

Basti Becker bastibeckr

  • studio2010 GmbH
  • Munich, Germany
View GitHub Profile
Slakinov / fritz.js
Last active August 11, 2023 00:49
Garbage text animation transition for Svelte as seen on
export default function(
duration = 1000,
delay = 0,
reverse = false,
absolute = false,
pointerEvents = true,
) {
LiEnby /
Last active June 16, 2023 07:56
Removing the timebomb from Adobe Flash Player

In Adobe Flash Player versions newer than they added a "Timebomb" for the EOL. the player would refuse to run any custom flash content after 12/01/2021, instead it would just show this image

So knowing this, Lets crack it!

I acturally started looking into this before the 12/01/2021 hit, but only recently did i acturally discover a way to bypass the killswitch

(also- im aware i was not the first to do this, but i still did do it)

akella /
Last active May 1, 2024 05:33
My Setup
d8ahazard /
Last active June 22, 2023 17:49
A utility for cleaning Plex collections and identifying orphaned media.
import os
import pathlib
import sqlite3
target_path = ""
movie_list = []
tv_list = []
collection_list = []
henri / p5-backup2go-cheat-sheet.txt
Last active June 17, 2022 01:44
P5 Backup2Go Command Line Cheat Sheet
# Archiware Cheat Sheet - Backup2Go
# These are some useful commands which I stumbled upon while setting up automatic P5 configurarions
# web interface URL
# start backup (from client) - depending on which server you wish to initate a backup with you may need to change this
/usr/local/aw/bin/nsdchat -c Server 10001 start now
# stop the deamon
phpbits / full-codes.js
Last active July 1, 2022 11:32
Extend core Gutenberg blocks with custom attributes and settings. View full tutorials here :
* External Dependencies
import classnames from 'classnames';
* WordPress Dependencies
const { __ } = wp.i18n;
const { addFilter } = wp.hooks;
mikowl / oneliners.js
Last active March 28, 2024 20:52
👑 Awesome one-liners you might find useful while coding.
// Inspired by and
// Remove any duplicates from an array of primitives.
const unique = [ Set(arr)]
// Sleep in async functions. Use: await sleep(2000).
const sleep = (ms) => (new Promise(resolve => setTimeout(resolve, ms)));
// or
const sleep = util.promisify(setTimeout);
robinlandstrom /
Created February 21, 2019 20:16
Script to automatically add configration for a new peer to a wireguard server. It will then print a QR code to the console that can be used to add the config to the Android or OS X wireguard client.
readonly INTERFACE="wg0"
# Generate peer keys
readonly PRIVATE_KEY=$(wg genkey)
readonly PUBLIC_KEY=$(echo ${PRIVATE_KEY} | wg pubkey)
readonly PRESHARED_KEY=$(wg genpsk)
# Read server key from interface
knolaust / filter-gutenbergblocks-cpt.php
Last active April 5, 2024 12:14
Allow/disallow certain blocks for specific post types and custom post types in WordPress' Gutenberg Editor
* Allowed Block Types Configuration
* Gist Keywords: wordpress, editor, gutenberg, blocks
* @category WordPress
* @author Knol Aust
* @version 1.0.0
* @description Limit the blocks allowed in Gutenberg for improved content control.
chrisswanda / WireGuard_Setup.txt
Last active June 6, 2024 08:21
Stupid simple setting up WireGuard - Server and multiple peers
Install WireGuard via whatever package manager you use. For me, I use apt.
$ sudo add-apt-repository ppa:wireguard/wireguard
$ sudo apt-get update
$ sudo apt-get install wireguard
$ brew install wireguard-tools
Generate key your key pairs. The key pairs are just that, key pairs. They can be