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
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

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)

@Axel-Erfurt
Axel-Erfurt / celluloidTV.m3u
Last active July 14, 2024 18:38
Livestreams deutscher TV-Sender
#EXTM3U
#EXTINF:-1,ARD
https://mcdn.daserste.de/daserste/de/master.m3u8
#EXTINF:-1,ARD ONE
https://mcdn.one.ard.de/ardone/hls/master.m3u8
#EXTINF:-1,ARD Alpha
https://mcdn.br.de/br/fs/ard_alpha/hls/de/master.m3u8
#EXTINF:-1,ARD Tagesschau
https://tagesschau.akamaized.net/hls/live/2020115/tagesschau/tagesschau_1/master.m3u8
#EXTINF:-1,ZDF
@akella
akella / setup.md
Last active July 10, 2024 14:46
My Setup
@d8ahazard
d8ahazard / plex_cleanup.py
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
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
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/
/**
* External Dependencies
*/
import classnames from 'classnames';
/**
* WordPress Dependencies
*/
const { __ } = wp.i18n;
const { addFilter } = wp.hooks;
@mikowl
mikowl / oneliners.js
Last active June 29, 2024 17:39
👑 Awesome one-liners you might find useful while coding.
// 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.
#!/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 April 5, 2024 12:14
Allow/disallow certain blocks for specific post types and custom post types in WordPress' Gutenberg Editor
<?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.