Skip to content

Instantly share code, notes, and snippets.

View rivman's full-sized avatar
🏠
Working from home

RivDesign rivman

🏠
Working from home
View GitHub Profile
# This is a anonymized version of the script I use to renew all my SSL certs
# across my servers. This will not work out of the box for anyone as your network will be
# different. But may be useful starting place for others.
#
# I use a cronjob that runs this every week. It only replaces certificates when a certificate has been renewed.
# Renews/creates cert from letsencrypt & places it where it needs to be.
# Currently, that is:
# * Nginx (local for plex)
# * Plex Media Server
@rivman
rivman / css-processors.html
Last active February 1, 2022 21:40
Process CSS - Packages & Use (NKRD 2022)
DEVELOPING TOOLS :
-----------------
1. purifycss-extended
https://www.npmjs.com/package/purifycss-extended
A function that takes content (HTML/JS/PHP/etc) and CSS, and returns only the used CSS.
PurifyCSS Extended does not modify the original CSS files. You can write to a new file, like minification.
This leave the CSS original intact, not modity (not combine clases, not ordering fonts and media queries)
@jcwillox
jcwillox / toolbox-context-menu.ps1
Last active August 14, 2025 13:17
PowerShell script to automatically add context menu entries for Jetbrains IDEs
<#
.SYNOPSIS
Automatically add context menu entries for Jetbrains IDEs.
.PARAMETER Name
The name or names of the IDEs to add context menus for, use -List to see available IDEs.
.PARAMETER BasePath
The path to the Toolbox apps directory, defaults to "$env:LOCALAPPDATA\JetBrains\Toolbox\apps".
.PARAMETER Global
Install context menu entries in HKLM registry (machine wide), requires running as administrator.
.PARAMETER Force
@Asjas
Asjas / reset.css
Created May 19, 2021 07:09
Modern CSS Reset - Andy Bell
// https://piccalil.li/blog/a-modern-css-reset
/* Box sizing rules */
*,
*::before,
*::after {
box-sizing: border-box;
}
/* Remove default margin */
@sareiodata
sareiodata / wp_remove_assets.php
Last active January 23, 2024 16:43
WP Remove Assets
<?php
/*
* Plugin Name: WP Remove Assets
* Plugin URI: https://www.cozmsolabs.com
* Version: 0.1
* Description: Filter particular scripts and style to load in posts or pages that don't need it.
* Author: Cristian Antohe
* Author URI: https://www.cozmoslabs.com/
*/
#!/bin/bash
ffmpeg -rtsp_transport tcp \
-i rtsp://smartiptv:PASSWORD@192.168.2.3/Streaming/Channels/102 \
-i rtsp://smartiptv:PASSWORD@192.168.2.3/Streaming/Channels/202 \
-i rtsp://smartiptv:PASSWORD@192.168.2.3/Streaming/Channels/302 \
-i rtsp://smartiptv:PASSWORD@192.168.2.3/Streaming/Channels/402 \
-i rtsp://smartiptv:PASSWORD@192.168.2.3/Streaming/Channels/502 \
-i rtsp://smartiptv:PASSWORD@192.168.2.3/Streaming/Channels/602 \
-filter_complex "
@meub
meub / pi-servo.py
Last active December 25, 2020 21:59
Raspberry Pi Bell Ringer
#!/usr/bin/env python
import time
import RPi.GPIO as GPIO # Importing the GPIO library
from time import sleep # Import sleep module from time library
# Set up GPIO
servo_pin = 21 # GPIO Pin where servo is connected
GPIO.setmode(GPIO.BCM)
{
"assets" : [
{
"accessibilityLabel" : "Seals",
"id" : "391BDF6E-3279-4CE1-9CA5-0F82811452D7",
"pointsOfInterest" : {
"0" : "A016_C009_0"
},
"url-4K-HDR" : "https:\/\/sylvan.apple.com\/Aerials\/2x\/Videos\/SE_A016_C009_HDR_20190717_3m30s_HDR_4K_HEVC.mov",
"url-4K-SDR" : "https:\/\/sylvan.apple.com\/Aerials\/2x\/Videos\/SE_A016_C009_SDR_20190717_3m30s_SDR_4K_HEVC.mov",
@catchdave
catchdave / replace_synology_ssl_certs.sh
Last active July 12, 2025 17:11
CLI script to programmatically replace SSL certs on Synology NAS
# MOVED to public repo: https://github.com/catchdave/ssl-certs/blob/main/replace_synology_ssl_certs.sh
@warifp
warifp / Windows
Last active November 8, 2024 17:37 — forked from JerryLokjianming/Crack Sublime Text Windows and Linux.md
Crack Sublime Text 3.2.2 Build 3211
How to Crack Sublime Text 3 with Hex Editor
1. Download & Install Sublime Text 3.2.2 Build 3211
2. Visit Hexed.it
3. Open file sublime_text.exe
4. Search address 97 94 0D
5. Change to 00 00 00
6. Export File