Skip to content

Instantly share code, notes, and snippets.

@archeruwu
archeruwu / disco.py
Last active August 21, 2018 10:24
new discord statuses
# Code by Martmists#1003
# `status` is one value of the enum: disco.types.user.Status (see https://github.com/b1naryth1ef/disco/blob/master/disco/types/user.py#L63-L69)
# Types:
# 0 = normal
# 1 = streaming
# 2 = listening
# 3 = watching
@Earu
Earu / easychat_nametags.lua
Last active April 18, 2020 01:03
An EasyChat nametags module using markup.
surface.CreateFont("NameTagFont", {
font = "Tahoma",
extended = true,
size = 100,
weight = 880,
additive = false,
})
surface.CreateFont("NameTagShadowFont", {
font = "Tahoma",
@heyjoeway
heyjoeway / gunlockedtm.user.js
Last active October 11, 2020 21:14
Google Unlocked Tampermonkey
// ==UserScript==
// @name Google Unlocked Tampermonkey
// @namespace http://tampermonkey.net/
// @version 0.1
// @include *://www.google.com/*
// @include *://www.google.ad/*
// @include *://www.google.ae/*
// @include *://www.google.com.af/*
// @include *://www.google.com.ag/*
// @include *://www.google.com.ai/*
#!/bin/sh
set -eux
BRANCH=canary
ICONDIR="${XDG_DATA_HOME:=$HOME/.local/share}/icons"
APPDIR="$XDG_DATA_HOME/applications"
DISCORDDIR="$HOME/.local/opt/discord-$BRANCH"
mkdir -p "$ICONDIR" "$APPDIR" "$DISCORDDIR"
@twilight-sparkle-irl
twilight-sparkle-irl / .XCompose
Last active February 26, 2022 21:22
.XCompose unicode shenanigans pack
# the unicode shenanigans pack for XCompose, by Twilight (synthetic.garden)
# for when you need obfuscation
# Please use these wisely, using them for everything everywhere is dumb and causes accessibility issues.
# If that for some reason isn't a good enough reason for you: using these excessively will cause them to lose their power.
# Don't be a dumbass.
# breakers
# used to break up text when lookalikes can't be used
CHECK OUT THIS GUY HE'S IN THE GIST
⣠⣦⣤⣀
⠀⠀⠀⠀⢡⣤⣿⣿
⠀⠀⠀⠀⠠⠜⢾⡟
⠀⠀⠀⠀⠀⠹⠿⠃⠄
⠀⠀⠈⠀⠉⠉⠑⠀⠀⠠⢈⣆
⠀⠀⣄⠀⠀⠀⠀⠀⢶⣷⠃⢵
⠐⠰⣷⠀⠀⠀⠀⢀⢟⣽⣆⠀⢃
⠰⣾⣶⣤⡼⢳⣦⣤⣴⣾⣿⣿⠞
⠀⠈⠉⠉⠛⠛⠉⠉⠉⠙⠁
@hibiii
hibiii / ifmutil.sh
Created June 25, 2023 03:21
Bash device to allow selecting files for file management in a more interactive way
# Interactive File Management Utilities by hibi
#
# This source file will let you select individual files and copy and move them
# around much like a graphical file manager would. Intended to be used with
# `source` in your bashrc.
#
# Usage:
# Fsel name1 [name2 [...]] - selects files and folders
# Funsel [name1 [name2 [...]]] - unselects files and folders, or all
# Fcp [destination] - copies the files here or to destination
According to all known laws
of aviation,
there is no way a bee
should be able to fly.
Its wings are too small to get
its fat little body off the ground.
@unascribed
unascribed / randomUUID.js
Last active October 5, 2023 11:35
A simple and readable way to generate valid v4 UUIDs in JavaScript. CC0 https://creativecommons.org/publicdomain/zero/1.0/
function randomUUID() {
return randhex(8) + "-" + randhex(4) + "-4" + randhex(3) + "-" + choice(["8", "9", "a", "b"]) + randhex(3) + "-" + randhex(12);
}
let scratchTarr = new Uint32Array(1);
function choice(arr) {
crypto.getRandomValues(scratchTarr);
return arr[Math.floor(scratchTarr[0]%arr.length)]
}
function randhex(count) {
crypto.getRandomValues(scratchTarr);
@lloeki
lloeki / gist:62239da19ec25f90f215
Created December 16, 2014 16:15
open-vm-tools with clipboard and drag and drop on Ubuntu 14.04 Trusty Tahr
# You should be using open-vm-tools instead of vmware tools, because package manager.
# Also I hate third parties that write out of /opt and /usr/local.
# open-vm-tools-desktop is badly packaged though, here are the missing links:
sudo apt-get install open-vm-tools open-vm-tools-desktop
# Reboot, and resize works, but no DnD nor clipboard
sudo mkdir /var/run/vmblock-fuse
sudo su -l -c "vmware-vmblock-fuse -o subtype=vmware-vmblock,default_permissions,allow_other /var/run/vmblock-fuse"
# Now we have /run/vmblock-fuse populated.
# Adding an upstart rule in /etc/init is left as an exercise to the reader.