Skip to content

Instantly share code, notes, and snippets.

@5310
5310 / retarget-symlinks.sh
Created September 4, 2023 08:39
Retarget absolute local symlinks for old mountpoint into relative symlinks #script
@5310
5310 / 1.bqn
Last active December 25, 2022 15:12
Learning BQN with Project Euler
# Euler 1 expression
+´ ×⟜(∨´ 0 = 3‿5 | ⊢)¨ ↕100
# Euler 1 operator
_comb_ ← {𝕩 𝔽 𝕨 𝔾 𝕩}
3‿5 +´∘×_comb_(∨˝ (0 = |⌜)) ↕100
@5310
5310 / code.md
Last active October 21, 2021 14:33
Tabula serialization mocks
type variables
worker
x
number
const f(x): Math.floor(Math.random()*x)
@5310
5310 / setup-shared-audio.sh
Created February 21, 2021 15:53
Setup Pulseaudio modules to merge a mic and an application for input #script
# Enter your input and output device names here
source=bluez_source.98_09_CF_F3_12_0F.headset_head_unit
sink=bluez_sink.98_09_CF_F3_12_0F.headset_head_unit
# Module names
sharednull=shared-null-sink
sharedsink=shared-sink
sharedsource=shared-source
# Cleanup devices left over from prior runs
@5310
5310 / eslintrc.js
Last active February 16, 2020 06:31
ESLint config #dotfile
// NOTE: Because common sense is in short supply,
// and now that ESLint v6 can't resolve external configs to extend
// (but can be persuaded to load plugins; not configs),
// the following code is necessary for my setup.
// Credit: https://github.com/eslint/eslint/issues/11914#issuecomment-569108633
const Module = require('module')
const ModuleFindPath = Module._findPath
Module._findPath = (request, paths, isMain) => {
const r = ModuleFindPath(request, paths, isMain)
if (!r) {
@5310
5310 / s2check.user.js
Last active March 16, 2024 17:31
Faster PoGO Tools for IITC-CE #userscript
// ==UserScript==
// @id s2check@pogohwh
// @name Pogo Tools, PoGOHWH
// @category Layer
// @namespace https://gitlab.com/AlfonsoML/pogo-s2/
// @downloadURL https://gitlab.com/AlfonsoML/pogo-s2/raw/master/s2check.user.js
// @homepageURL https://gitlab.com/AlfonsoML/pogo-s2/
// @supportURL https://twitter.com/PogoCells
// @version 0.93
// @description Pokemon Go tools over IITC. News on https://twitter.com/PogoCells. This is a form made to run MUCH faster, kept at: https://gist.github.com/5310/c216c40cf6d34834c9cfaad0d820ae4d
@5310
5310 / iitc-plugin-hide-chat.js
Last active March 14, 2022 18:49
IITC Plugin Hide Chat #userscript
// ==UserScript==
// @id iitc-plugin-hide-chat
// @name IITC plugin: Hide Chat
// @category Tweaks
// @version 0.1.0
// @description Hides the chat.
// @include https://*.ingress.com/intel*
// @include http://*.ingress.com/intel*
// @match https://*.ingress.com/intel*
// @match http://*.ingress.com/intel*
@5310
5310 / _s2-cells-to-google-maps.readme.md
Last active December 13, 2018 16:25
Adding S2 Cells to Google My Maps #article #script
@5310
5310 / xfce4-panel-auto-opaque.sh
Last active September 18, 2020 07:02 — forked from bharadwaj-raju/panel-alpha.sh
Changes XFCE panel transparency depending on whether any window on the current workspace is maximized or not #script
#!/usr/bin/env bash
#-- CONFIGURATION
transparent_alpha=0
maximized_alpha=100
interval=0.5
#--
alpha_prop_list=()
for prop in $(xfconf-query -c xfce4-panel -p /panels -l); do
@5310
5310 / gist:8093a998bd0c88e4775e7e3ce39b62c4
Last active May 19, 2019 04:02
Blockstack verification
Verifying my Blockstack ID is secured with the address 1PmXo962nyg3XiFDL6DMkdUwiGdbKHZqxs https://explorer.blockstack.org/address/1PmXo962nyg3XiFDL6DMkdUwiGdbKHZqxs