Skip to content

Instantly share code, notes, and snippets.

View youngchief-btw's full-sized avatar
👋
chat with me!

YoungChief youngchief-btw

👋
chat with me!
View GitHub Profile
@santaklouse
santaklouse / CrossOver.sh
Last active September 5, 2025 17:24
unlimited CrossOver trial (MacOS)
#!/usr/bin/env bash
# checck if pidof exists
PIDOF="$(which pidof)"
# and if not - install it
(test "${PIDOF}" && test -f "${PIDOF}") || brew install pidof
# find app in default paths
CO_PWD=~/Applications/CrossOver.app/Contents/MacOS
test -d "${CO_PWD}" || CO_PWD=/Applications/CrossOver.app/Contents/MacOS
@hackermondev
hackermondev / bot.ts
Last active January 21, 2025 17:08
Sound's World Code
import { Client, Message, User } from "discord.js"
import chalk from "chalk"
const client: Client = new Client()
client.on('ready', () => {
console.log(chalk.green(`started bot on ${client.user.tag}`))
})
client.on('message', async function(message: Message) {
@jdah
jdah / .vimrc
Created June 14, 2021 11:54
jdh's NeoVim .vimrc
call plug#begin()
Plug 'drewtempelmeyer/palenight.vim'
Plug 'vim-airline/vim-airline'
Plug 'wlangstroth/vim-racket'
Plug 'sheerun/vim-polyglot'
Plug 'rust-lang/rust.vim'
Plug 'preservim/tagbar'
Plug 'universal-ctags/ctags'
Plug 'luochen1990/rainbow'
Plug 'vim-syntastic/syntastic'
@Kas-tle
Kas-tle / merge.sh
Last active January 22, 2023 02:45
Merge GeyserOptionalPack With Existing Resource Pack
: ${1?'Please specify an input resource pack in the same directory as the script (e.g. ./merge.sh MyResourcePack.zip)'}
# ensure jq is installed
if command jq --version 2>/dev/null | grep -q "1.6"; then
printf "\e[32m[+]\e[m \e[37mDependency jq satisfied\e[m\n"
echo
else
echo "Dependency jq-1.6 is not satisfied"
echo "You must install jq-1.6 before proceeding"
echo "See https://stedolan.github.io/jq/download/"
@mousebyte
mousebyte / coc-discord-rpc-wsl-passthrough.md
Last active May 16, 2025 04:14
coc-discord-rpc on WSL: passthrough to Discord on host Windows

Using coc-discord-rpc on WSL

You can use [npiperelay][] to let coc-discord-rpc connect to a Discord instance running on the host Windows operating system. It requires modifying the extension a bit, but it's relatively painless. This guide assumes you have [coc.nvim][] and [coc-discord-rpc][] already installed.

Get npiperelay and socat

To build npiperelay, you'll need [Go][]. Grab the golang package from your favorite package manager and follow the instructions on the [npiperelay][] repo. You'll also need to install socat if it doesn't come with your distribution.

@dispherical
dispherical / public.pgp
Last active September 30, 2023 17:02
My public PGP key
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQGNBGUYUR0BDADBJLypjHStJIuYGk+8eIQMoBqRzUSalgGmQsfcffKG476wqRi6
3jcf5UseuttaqpTLeb92CA8JF98JkmScTisRLgBHkJk13BJLBmY6byIueT+//MGR
RLj2aNVW2irmd5sTULKzGFQ+0EfbLUPm+oXYl6LU7kEKZInwp671+Xmehax0ldON
sGAfsJiJp3xBM6FvxA8LplRWqL3Mhbh/pfLA6SMTgG8Ig4W6sNQ12LWsfhK/HHMb
gUCSujlr7g5Ffl80v2PIgXX5NUHHyHxV+Y2qKcn2PJlgkvlICZZuGiO9p6pI69De
l7UoqCUjhkfRTLgls5lPJrzZMK4SozRkHVUJ/D7/Humj8aPNmCnfcKnb9ZVsKBpH
fTNjiFPZoe03ILR7wrCFfsalqF5fpKDuzc5gs4AnHiOQRm13Z0NU5KtrhcRVItcy
qe1Ig0ZQiDrLiLFwpZ6lA9x6ZtnhrGVtYWOmSvjsnPMMksZkn5Xyew7c/jheYPhm

Keybase proof

I hereby claim:

  • I am aboutdavid on github.
  • I am aboutdavid (https://keybase.io/aboutdavid) on keybase.
  • I have a public key ASCepr-g9NOR8BjZpA26FMsHxbSXRYoxADtvU_Yx8KFMQgo

To claim this, I am signing this object:

@geerlingguy
geerlingguy / minecraft.yml
Created September 24, 2020 18:01
Minecraft installation on Kubernetes via Ansible and Helm
# Minecraft Server deployment for Kubernetes clusters via Ansible's Helm module.
#
# The Helm module is part of the Kubernetes collection. Install it with:
#
# ansible-galaxy collection install community.kubernetes
#
# Then run the playbook:
#
# ansible-playbook main.yml
#
@trentwiles
trentwiles / img.php
Created July 8, 2020 12:33
Image Proxy
<?php
/*
Image proxy in the works.
*/
$image = $_GET['url'];