Skip to content

Instantly share code, notes, and snippets.

@nk23x
nk23x / remove_global_styles_and_svg_filters.php
Last active April 11, 2023 20:52 — forked from oldrup/remove_global_styles_and_svg_filters.php
Remove Global Styles and SVG Filters from WP 5.9.1 - 2022-02-27
// Remove Global Styles and SVG Filters from WP 5.9.1 - 2022-02-27
function remove_global_styles_and_svg_filters() {
remove_action( 'wp_enqueue_scripts', 'wp_enqueue_global_styles' );
remove_action( 'wp_body_open', 'wp_global_styles_render_svg_filters' );
}
add_action('init', 'remove_global_styles_and_svg_filters');
// This snippet removes the Global Styles and SVG Filters that are mostly if not only used in Full Site Editing in WordPress 5.9.1+
// Detailed discussion at: https://github.com/WordPress/gutenberg/issues/36834
// WP default filters: https://github.com/WordPress/WordPress/blob/7d139785ea0cc4b1e9aef21a5632351d0d2ae053/wp-includes/default-filters.php
@nk23x
nk23x / RSS.md
Created April 6, 2023 19:34 — forked from thefranke/RSS.md
A list of RSS endpoints, readers and resources

The RSS Endpoint List

Please refer to this blogpost to get an overview.

Replace *-INSTANCE with one of the public instances listed in the scrapers section. Replace CAPITALIZED words with their corresponding identifiers on the website.

Social Media

Twitter

@nk23x
nk23x / LINKS_ONLINE_TOOLS.txt
Last active April 4, 2023 18:59
## OUTDATED CONTENT ## links: network tools online
@nk23x
nk23x / ffmpeg_icecast_to_twitter_broadcast.md
Created February 19, 2023 16:20
ffmpeg: stream 128k icecast radio to twitter broadcast rtmp source

twitter broadcast w. ffmpeg

step 1

you need to create a source in studio.twitter.com

step 2

use ffmpeg to create a black video stream with audi from a different (network-)source stream (icecast)

ffmpeg -f lavfi -y -i color=c=black@0:rate=30 \
sudo tcpdump -A -s 10240 'tcp port 8080 and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)' | egrep --line-buffered "^........(GET |HTTP\/|POST |HEAD )|^[A-Za-z0-9-]+: " | sed -r 's/^........(GET |HTTP\/|POST |HEAD )/\n\1/g'
@nk23x
nk23x / pine64_pinephone_installation_instructions.md
Last active March 9, 2023 14:41
pine64 pinephone beta essential setup steps - https://is.gd/pine64setup

do not buy pinephone pine64!

WARNING: if you have not done it, already: do not buy that crappy pinephone pine64. despite the hardware related limitations, you will hardly find any linux distribution that fits. the pine keyboard needs additional driver and setup before you can use it, otherwse it's not possible to find the "-" key for example.

HANDS OFF!

see also: https://news.itsfoss.com/pinephone-review/

pine64 setup

@nk23x
nk23x / add_user.sh
Created January 31, 2023 23:58 — forked from nsabine/add_user.sh
Shell script to add a user to LDAP. Based on OpenLDAP and RFC 2307 memberuid group attributes.
#!/bin/bash
#
# add_user.sh: Add user to LDAP
# Author: Nick Sabine
#
# Defaults
LDAP_BASE="dc=ORG,dc=local"
LDAP_ACCOUNTS_DN="ou=people,${LDAP_BASE}"
LDAP_USER_GROUP="cn=user_group,ou=groups,${LDAP_BASE}"
@nk23x
nk23x / aws-s3-doc.txt
Last active January 28, 2023 19:18
sample s3 bucket access policies: bucket, user
AWS Documentation / Amazon Simple Storage Service (S3) / Developer Guide
Managing Access Permissions to Your Amazon S3 Resources
Using Bucket Policies and User Policies
* https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html
Bucket Policy Examples
** https://docs.aws.amazon.com/AmazonS3/latest/dev/example-bucket-policies.html
@nk23x
nk23x / icecast2_complete_setup.md
Last active October 6, 2022 23:44
run icecast2 on vps instance (example!)

vps icecast2 setup

required software

on localhost

  • youtube-dl
  • detox
  • ffmpeg
  • rsync