Skip to content

Instantly share code, notes, and snippets.

View dimon222's full-sized avatar
💭
Patching code

Dmitry Romanenko dimon222

💭
Patching code
View GitHub Profile
@SkyyySi
SkyyySi / youtube-vanced-alternatives.md
Last active August 25, 2024 13:54
A list of alternatives after the shutdown of Vanced

NONE OF THESE CLIENTS ARE VERIFIED BY ME FOR SECURITY OR ANYTHING ELSE! USE AT YOUR OWN RISK!

These are the current alternatives (with links when possible):

@MalikAQayum
MalikAQayum / pcgameitplaytest.user.js
Last active February 3, 2022 20:38
gets the latest playtest from https://steamcommunity.com/groups/pcgameitplaytest/rss/ and request access to it.
// ==UserScript==
// @name PCGameit Playtests
// @namespace https://pcgameit.com
// @version 0.3
// @description gets the latest playtest from https://steamcommunity.com/groups/pcgameitplaytest/rss/ and request access to it.
// @author MalikQayum
// @connect store.steampowered.com
// @connect steamcommunity.com
// @match https://store.steampowered.com/*
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js
@mattkenn4545
mattkenn4545 / install-k3s.sh
Last active April 11, 2022 16:03
K3s/Rancher install script
#!/bin/env bash
set -e
export PATH=/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin
: <<'README'
# Master node install, note this script /should/ be idempotentish. Rerunning to get worker node command output is fine
sudo -E ./install-k3s.sh
# to skip install of rancher
SKIP_RANCHER_INSTALL=true sudo -E ./install-k3s.sh
@adisbladis
adisbladis / podman-shell.nix
Last active August 22, 2024 00:43
Use podman within a nix-shell
{ pkgs ? import <nixpkgs> {} }:
let
# To use this shell.nix on NixOS your user needs to be configured as such:
# users.extraUsers.adisbladis = {
# subUidRanges = [{ startUid = 100000; count = 65536; }];
# subGidRanges = [{ startGid = 100000; count = 65536; }];
# };
@MalikAQayum
MalikAQayum / ProfileLinker.user.js
Last active February 29, 2024 02:35
Adds clickable icon links to external sites (steam-tracker.com, removed.timekillerz.eu, astats.nl, steamrep.com, barter.vg, backpack.tf, steamtrades, steamgifts)
// ==UserScript==
// @name Profile Linker
// @namespace https://gist.github.com/MalikAQayum/11ae7ba9b7741eb9d01af883dadedca4
// @version 1.23
// @description Adds clickable icons to external sites in the "profile_rightcol".
// @author MalikQayum
// @include /^https?:\/\/steamcommunity\.com[/]+(id|profiles)[/]+[^/]+(\/|)$/
// @downloadURL https://gist.github.com/MalikAQayum/11ae7ba9b7741eb9d01af883dadedca4/raw/ProfileLinker.user.js
// @updateURL https://gist.github.com/MalikAQayum/11ae7ba9b7741eb9d01af883dadedca4/raw/ProfileLinker.user.js
// @grant none
@Revadike
Revadike / steamtrades_users.json
Created August 24, 2018 14:12
SteamTrades Users JSON
[
{
"steamid": "76561198105197441",
"name": "SirIronMaiden",
"reputation": {
"positive": 2817,
"negative": 0
}
},
{
@AndersonIncorp
AndersonIncorp / install.md
Created June 29, 2018 16:36
Install any linux distro on VPS with low RAM, locked ISO boot

Overview

Scenario

  • Your VPS provider doesn't support ISO mount
  • Your VPS has low RAM and cannot load whole ISO image
  • Your current /boot is to small to contain ISO file

Workaround

  • Boot low memory ISO (CorePure64.iso ~ 14MB)
  • Create new partition ~1GB / size of your ISO
  • dd your ISO into that partition
@martin-juul
martin-juul / alpine-boostrap.sh
Last active July 19, 2020 22:33
[Alpine Bootstrapping script for Linode] Script for installing an alpine linode via lish/rescue console - Forked from https://github.com/jcorme/alpine-linode-bootstrap
#!/bin/sh
HOST=${HOST:-alpine}
INTERFACES="auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
hostname $HOST
"
@schmich
schmich / ducky.md
Last active September 17, 2024 13:43
Programming media keys on the Ducky One 2 Skyline

Programming Media Keys on the Ducky One 2 Skyline

To use media keys on the Ducky One 2 Skyline, you must record a macro to bind the media function to a hotkey combination, i.e. Fn plus some key.

Example

Important: In the instructions below, "Press X+Y+Z" means press and hold key X, press and hold key Y, press and hold key Z in that order, and then release all three.

As an example, to bind Fn+PgUp to the play/pause media function:

@kobake
kobake / git-commit-size.sh
Created November 5, 2017 13:42
Calculate size of a git commit object.
#!/bin/bash
if [ $# -ne 1 ]; then
echo "Usage: git-commit-size.sh <commit hash>" 1>&2
exit 1
fi
HASH=$1
ITEM_LIST="`git diff-tree -r -c -M -C --no-commit-id $HASH`"