Skip to content

Instantly share code, notes, and snippets.


Basti Becker bastibeckr

  • studio2010 GmbH
  • Munich, Germany
View GitHub Profile
Slakinov / fritz.js
Last active July 15, 2022 11:49
Garbage text animation transition for Svelte as seen on
View fritz.js
export default function(
duration = 1000,
delay = 0,
reverse = false,
absolute = false,
pointerEvents = true,
) {
KuromeSan /
Last active January 29, 2023 05:38
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 March 25, 2023 04:14
My Setup
d8ahazard /
Last active July 17, 2022 02:29
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
View p5-backup2go-cheat-sheet.txt
# 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 :
View full-codes.js
* External Dependencies
import classnames from 'classnames';
* WordPress Dependencies
const { __ } = wp.i18n;
const { addFilter } = wp.hooks;
mikowl / oneliners.js
Last active March 20, 2023 04:47
👑 Awesome one-liners you might find useful while coding.
View oneliners.js
// 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 March 27, 2023 06:05
Allow/disallow certain blocks for specific post types and custom post types in WordPress' Gutenberg Editor
View filter-gutenbergblocks-cpt.php
add_filter('allowed_block_types', 'Knolaust_Allowed_Block_types', 10, 2);
* Limit the blocks allowed in Gutenberg.
* @param mixed $allowed_blocks Array of allowable blocks for Gutenberg Editor.
* @param mixed $post Gets current post type.
* @return mixed $allowed_blocks Returns the allowed blocks.
chrisswanda / WireGuard_Setup.txt
Last active March 11, 2023 14:27
Stupid simple setting up WireGuard - Server and multiple peers
View WireGuard_Setup.txt
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