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
Slakinov / fritz.js
Last active August 11, 2023 00:49
Garbage text animation transition for Svelte as seen on MusicForProgramming.net
View fritz.js
export default function(
node,
{
duration = 1000,
delay = 0,
reverse = false,
absolute = false,
pointerEvents = true,
}
) {
@LiEnby
LiEnby / flash.md
Last active June 16, 2023 07:56
Removing the timebomb from Adobe Flash Player
View flash.md

In Adobe Flash Player versions newer than 32.0.0.344 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
akella / setup.md
Last active February 10, 2024 04:24
My Setup
View setup.md
@d8ahazard
d8ahazard / plex_cleanup.py
Last active June 22, 2023 17:49
A utility for cleaning Plex collections and identifying orphaned media.
View plex_cleanup.py
import os
import pathlib
import sqlite3
target_path = ""
movie_list = []
tv_list = []
collection_list = []
@henri
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
http://127.0.0.1:8000/lexxapp/login?u_app=client
# 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
phpbits / full-codes.js
Last active July 1, 2022 11:32
Extend core Gutenberg blocks with custom attributes and settings. View full tutorials here : https://jeffreycarandang.com/extending-gutenberg-core-blocks-with-custom-attributes-and-controls/
View full-codes.js
/**
* External Dependencies
*/
import classnames from 'classnames';
/**
* WordPress Dependencies
*/
const { __ } = wp.i18n;
const { addFilter } = wp.hooks;
@mikowl
mikowl / oneliners.js
Last active February 18, 2024 21:22
👑 Awesome one-liners you might find useful while coding.
View oneliners.js
// Inspired by https://twitter.com/coderitual/status/1112297299307384833 and https://tapajyoti-bose.medium.com/7-killer-one-liners-in-javascript-33db6798f5bf
// Remove any duplicates from an array of primitives.
const unique = [...new 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
robinlandstrom / new-wireguard-peer.sh
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.
View new-wireguard-peer.sh
#!/bin/bash
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
knolaust / filter-gutenbergblocks-cpt.php
Last active February 21, 2024 20:34
Allow/disallow certain blocks for specific post types and custom post types in WordPress' Gutenberg Editor
View filter-gutenbergblocks-cpt.php
<?php
/**
* 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
chrisswanda / WireGuard_Setup.txt
Last active February 27, 2024 02:01
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
MacOS
$ brew install wireguard-tools
Generate key your key pairs. The key pairs are just that, key pairs. They can be