Skip to content

Instantly share code, notes, and snippets.

@pawelel
pawelel / MudHorizontalNavMenu.razor
Created October 16, 2021 11:44
MudBlazor horizontal menu alternative
<style>
.mud-expand-panel, .muudstrap-navbar-expand{
color: var(--mud-palette-appbar-text);
background-color: var(--mud-palette-appbar-background);
}
.muudstrap-navbar .mud-button{
text-transform: none;
}
@astamicu
astamicu / Remove videos from Youtube Watch Later playlist.md
Last active May 1, 2024 20:23
Script to remove all videos from Youtube Watch Later playlist

UPDATED 22.11.2022

It's been two years since the last update, so here's the updated working script as per the comments below.

Thanks to BryanHaley for this.

setInterval(function () {
    video = document.getElementsByTagName('ytd-playlist-video-renderer')[0];

 video.querySelector('#primary button[aria-label="Action menu"]').click();
@zbicin
zbicin / Instalacja Node.js na Windows, Linuksie i MacOS.md
Last active May 1, 2024 20:22
Instalacja Node.js na Windows, Linuksie i MacOS

Instalacja Node.js na Windows, Linuksie i MacOS

Najprostszym i najpewniejszym sposobem na bezproblemową instalację Node.js jest użycie NVM (Node Version Manager), który pobierze za nas odpowiednią paczkę, zainstaluje ją i ustawi poprawnie wszystkie systemowe ścieżki.

Windows

  1. Pobieramy spakowany instalator z GitHuba projektu nvm-windows:

https://github.com/coreybutler/nvm-windows/releases/download/1.1.7/nvm-setup.zip

Docker Swarm in LXC Containers

Part of collection: Hyper-converged Homelab with Proxmox

After struggling for some days, and since I really needed this to work (ignoring the it can't be done vibe everywhere), I managed to get Docker to work reliable in privileged Debian 12 LXC Containers on Proxmox 8

(Unfortunately, I couldn't get anything to work in unprivileged LXC Containers)

There are NO modifications required on the Proxmox host or the /etc/pve/lxc/xxx.conf file; everything is done on the Docker Swarm host. So the only obvious candidate who could break this setup, are future Docker Engine updates!

@edokeh
edokeh / index.js
Last active May 1, 2024 20:20
佛祖保佑,永无 BUG
//
// _oo0oo_
// o8888888o
// 88" . "88
// (| -_- |)
// 0\ = /0
// ___/`---'\___
// .' \\| |// '.
// / \\||| : |||// \
// / _||||| -:- |||||- \
@bch15
bch15 / Subscriptions
Created November 15, 2023 08:24
V2ray subscriptions
https://tackserver-code.ir/api/json/mrpooya.xyz.json
https://test2.sub-channel.workers.dev/vless/iphone/random
https://raw.githubusercontent.com/yebekhe/TelegramV2rayCollector/main/sub/base64/mix
--------------*------------*---*-----------------------
--------------*------------*---*-----------------------
@johndavisnz
johndavisnz / lockerstor-debian.md
Last active May 1, 2024 20:15
Installing Debian on the Nimbustor4/2 ( as5304t/as5202t )

Whilst Asustor's ADM suits most people, it is possible to install ANY intel operating system on the nimbustor4/2 (as5202t/as5304t) as they run fairly generic intel hardware (asmedia sata controller, rtl8125 2.5gbe nic and ite system management chip)

in this gist I'll detail the steps needed to install and configure Debian11

Before proceeding you need to decide where you're going to install Debian.

Most people will choose to install it to a usb3 attached drive - either a usb3 ssd ( samsung t5 or similar ) or a usb3 hdd. This gives the most straightforward install ( just tell Debian to use the entire usb3 drive to install to ) and maximises available space on the NAS HDDs

The other option is to install Debian direct to the NAS hard drives - that means no extra drive hanging off the nas, and you can raid1 mirror the system partition across all drives for added resiliency ( though this is somewhat limited as the EFI boot partition is only on sda - so in the case of sda failing you'd need to boot off i

@MaherSaif
MaherSaif / hook.js
Created April 22, 2012 12:49
simple javascript hooks system
Expected Result:
----------------
One
Two
Three
Four
Six
# Let's say you were stupid and used the postgres account for something you
# shouldn't have, so you have a database owned by postgres, with all objects
# inside owned by postgres. You regain sanity and want to transfer the
# ownership to an account that isn't a database superuser.
#
# In most cases, reassigning ownership is as simple as using
# REASSIGNED OWNED. However, that does not work if you are using the
# postgres account, so you have to alter the ownership manually.
#
# First, make sure you connect to the database using the postgres account.
@ThomasFrans
ThomasFrans / git-worktree.md
Last active May 1, 2024 20:11
A gentle introduction to Git worktree

A Gentle Introduction to Git Worktree

Git worktree has become a major part of how I use Git over the past year. Anytime I mention it somewhere however, I get reactions from people who have never heard about the feature. Others have heard about it, but don't know how exactly it works or why it's beneficial. That's why I decided to write a short tutorial/introduction on this awesome feature that is baked right into the very git you are already using. I hope this can help people discover worktrees and be a gentle introduction on how to get started using them.

What is Git worktree

Git worktree facilitates working with multiple branches. In a normal Git workflow, you can only ever have one branch checked out at a single time.