Skip to content

Instantly share code, notes, and snippets.

@superseb
superseb / rke2-commands.md
Last active January 11, 2025 10:59
RKE2 commands

RKE2 commands

  • Updated on May 29 to accommodate etcd container not having /bin/sh available anymore.

Install

curl -sL https://get.rke2.io | sh
systemctl daemon-reload
systemctl start rke2-server
@chrisswanda
chrisswanda / WireGuard_Setup.txt
Last active January 11, 2025 10:56
Stupid simple setting up WireGuard - Server and multiple peers
Install WireGuard via whatever package manager you use. For me, I use apt.
$ sudo add-apt-repository ppa:wireguard/wireguard
$ sudo apt-get update
$ sudo apt-get install wireguard
MacOS
$ brew install wireguard-tools
Generate key your key pairs. The key pairs are just that, key pairs. They can be
<?php
namespace App\Traits;
trait PostsPerMonthSeries
{
protected function getChartData(): array
{
return [
'data' => [
@keilmillerjr
keilmillerjr / Creating an AUR Package.md
Last active January 11, 2025 10:52
How to create and manage an AUR package. #AUR #ARCH #makepkg #PKGBUILD
@thewh1teagle
thewh1teagle / main.py
Last active January 11, 2025 10:47
Bypass Chrome v20 encryption and extract cookies using Chrome Remote Debugging without admin rights.
"""
Bypass Chrome v20 appbound encryption and extract cookies using Chrome Remote Debugging without admin rights.
Including HTTP Only and Secure cookies.
Developed by: github.com/thewh1teagle
License: MIT
For educational purposes only.
Usage:
pip install websocket-client requests
python main.py
@questionlp
questionlp / Installing FreeBSD on a Steam Deck.md
Last active January 11, 2025 10:47
Installing FreeBSD on a Steam Deck

Installing FreeBSD 14.2 on a Steam Deck

Installing onto the internal NVMe SSD

  1. Download and burn a FreeBSD 14.2 amd64 installer ISO from FreeBSD.org
  2. Burn the installer ISO on to a USB drive, or use a multi-boot tool like IODD or Ventoy
  3. Use a USB dock or hub (Anker PowerExpand or 543 6-in-1 USB hub is what I've been using) with USB power delivery pass-through to connect the following devices:
    1. USB-C power adapter
    2. USB keyboard
  4. USB boot drive with FreeBSD installer burned or loaded on it

I've recently joined Amazon Dublin from India and got opportunities to interview with Meta London, Zalando Berlin & some other companies. I extensively researched about companies hiring internationally which support visa & relocation for Tech roles. So sharing list of companies:

Do consider to STAR, if it helped you.

London

// ==UserScript==
// @name E621/E6AI order:* navigation with API
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Allows for order:* search result navigation.
// @author nameynamename
// @match https://e621.net/posts/*
// @match https://e6ai.net/posts/*
// @match https://e926.net/posts/*
// @grant GM.xmlHttpRequest
@kvablack
kvablack / render.py
Created July 7, 2023 20:56
DDPO animation using iceberg
from iceberg import Renderer, Bounds, Colors, PathStyle, Corner, FontStyle, Color, StrokeCap
from iceberg.primitives.layout import Directions, Anchor, Compose, Arrange, Align
from iceberg.arrows import Arrow, ArrowHeadStyle
from iceberg.primitives import Blank, Image, Ellipse, Text, Rectangle, BorderPosition, MathTex
import imageio
import numpy as np
from PIL import Image as PImage
from IPython.display import Video
from tqdm.notebook import tqdm
@kabakaev
kabakaev / migrate-immich-to-cnpg.md
Created December 23, 2024 20:10
Immich: migrate postgres to CloudNativePG

Migrate Immich helm chart deployment to CloudNativePG

Deploy a cnpg operator and a one-node postgres cluster

See also immich-app/immich-charts#149 (comment)

# Re-use the password from the source postgres instance.
PASSWORD=$(kubectl -n immich get secrets immich-postgres-user -o yaml | grep ' password:' | awk '{print $NF}' | base64 -d)
echo "immich@postgres password is: $PASSWORD"