Skip to content

Instantly share code, notes, and snippets.

@ucarion
ucarion / html_cleanup.rb
Last active December 26, 2024 03:46
Composing programs to PDF
require 'nokogiri'
input = $stdin.readlines.join
page = Nokogiri::HTML(input)
page.css('.example').each do |elem|
elem.inner_html = '<i>Environment diagram omitted.</i>'
end
page.css('img').remove
@rickklaasboer
rickklaasboer / how-to-setup-plex-with-sonarr-radarr-jackett-overseerr-and-qbittorrent-using-docker.md
Last active December 26, 2024 03:41
How to setup Plex with Sonarr, Radarr, Jackett, Overseerr and qBitTorrent using Docker

How to setup Plex with Sonarr, Radarr, Jackett, Overseerr and qBitTorrent using Docker

Before continuing: This guide is currently outdated but I'm working on a new one with upgrading steps included. I'll link it here once it's finished :)

This is a guide that will show you how to setup Plex Media Server with Sonarr, Radarr, Jackett, Overseerr and qBitTorrent with Docker. It is written for Ubuntu 20.04 but should work on other Linux distributions as well (considering supported distributions by Docker). It is also written for people who have some experience with Linux and Docker. If you are new to Docker, I recommend you to read the Docker documentation, and if you are new to Linux, I recommend you to read the Ubuntu documentation.

Now, let's get started!

Please note: This guide was written without considering hardlinking for Sonarr/Radarr. If you want to use hardlinking refer to #Hardlinking

@cobaltp
cobaltp / conv.ps1
Last active December 26, 2024 03:36
Extract Heaven Burns Red audio cache files to wav file
$workdir = Get-Location
$tempdir = Join-Path $workdir temp
$outputdir = Join-Path $workdir output
$hbrdir = "C:\Program Files (x86)\Steam\steamapps\common\HeavenBurnsRed"
$soundDir = "HeavenBurnsRed_Data\StreamingAssets\Sound"
$datadir = ""
$dlllist = "libvorbis.dll", "libmpg123-0.dll", "libg719_decode.dll", "avcodec-vgmstream-58.dll", "avformat-vgmstream-58.dll", "avutil-vgmstream-56.dll", "swresample-vgmstream-3.dll", "libatrac9.dll", "libcelt-0061.dll", "libcelt-0110.dll", "libspeex.dll"
function Get-DllDependencyInstalled {
param (
@hjertnes
hjertnes / doom.txt
Created April 6, 2018 08:28
Doom Emacs Cheatsheet
SPC
SPC: find file
, switch buffer
. browse files
: MX
; EX
< switch buffer
` eval
u universal arg
x pop up scratch
@vasanthk
vasanthk / System Design.md
Last active December 26, 2024 03:35
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@Inlustra
Inlustra / EXAMPLE_fa.js
Last active December 26, 2024 03:32
Next.js dynamic compatible react-icons generator
import type { IconBaseProps } from "@react-icons/all-files";
import dynamic from "next/dynamic";
import React, { ComponentType } from "react";
export interface IconPackProps extends IconBaseProps {
icon: string;
}
export const IconPack: React.FC<IconPackProps> = ({ icon, ...props }) => {
@ashutoshkrris
ashutoshkrris / YouTube_Playlist_Downloader.md
Last active December 26, 2024 03:32
Download all videos from YouTube Playlist in all supported resolutions (including 1080p and 4K)
  • Using this script, you can download all the videos from a YouTube Playlist in all supported resolutions (including 1080p and 2160p).
  • Enter the playlist url and the resolution you wish to download.
  • Install the required libraries: pytubefix, tqdm, tenacity
  • Make sure you have ffmpeg setup on your machine. Check the tutorial for the setup guide.
  • You can download the videos in the following resolutions: 144p, 240p, 360p, 480p, 720p, 1080p, 1440p, 2160p
  • Check the video for available resolutions.
@adamawolf
adamawolf / Apple_mobile_device_types.txt
Last active December 26, 2024 03:28
List of Apple's mobile device codes types a.k.a. machine ids (e.g. `iPhone1,1`, `Watch1,1`, etc.) and their matching product names
i386 : iPhone Simulator
x86_64 : iPhone Simulator
arm64 : iPhone Simulator
iPhone1,1 : iPhone
iPhone1,2 : iPhone 3G
iPhone2,1 : iPhone 3GS
iPhone3,1 : iPhone 4
iPhone3,2 : iPhone 4 GSM Rev A
iPhone3,3 : iPhone 4 CDMA
iPhone4,1 : iPhone 4S
@mmozeiko
mmozeiko / incbin.c
Last active December 26, 2024 03:24
Include binary file with gcc/clang
#include <stdio.h>
#define STR2(x) #x
#define STR(x) STR2(x)
#ifdef _WIN32
#define INCBIN_SECTION ".rdata, \"dr\""
#else
#define INCBIN_SECTION ".rodata"
#endif

An guide how to activate Windows 11 Pro for free

Why?

Because you will get some more features like an Bitlocker and host your device as an External Desktop which can be accessed through the internet

Am i also able to switch from any other edition to Pro?

The answer is yes! You can switch from almost any edition to Pro completely for free!

Note for users with unactivated Pro edition

People which already have Pro, but not activated, can skip to this step.

Getting started

What you first need to do is open CMD (Command Prompt) as Administrator using this keyboard key: