Skip to content

Instantly share code, notes, and snippets.

View lucemans's full-sized avatar
🛠️
Building the new web

Luc van Kampen lucemans

🛠️
Building the new web
View GitHub Profile
@lucemans
lucemans / MagicScyllo.ts
Created August 4, 2023 23:31
Magic Scyllo Snippet for potential rewrite
type ValidDataType = string | number;
export type TableEntry = { [key: string]: ValidDataType } | typeof Object;
type TableMap<TableNames extends string = any> = {
[key in TableNames]: TableEntry
};
type KeyspaceMap<KeyspaceNames extends string = any> = {
[key in KeyspaceNames]: TableMap
@lucemans
lucemans / porkbun.js
Created May 15, 2023 19:33
Magical Porkbun Domain jQuery shortcut
/**
* I love porkbun.
* The snippet below lets you make using porkbun even more of a pleasant experience!
* It does this by hiding all the domains you *could have had*.. but are missing out on. (all the taken ones)
* To use it, simply do ur favourite porkbun search, and then once the page loads,
* press CTRL + SHIFT + I (or if you're on a mac.. suffer... i mean.. use the mouse.. and do `right click` -> `Inspect Element`)
* head to the console tab, and paste in the following snippet.
*/
$('.unavailableDomain').parent().parent().parent().remove();

Keybase proof

I hereby claim:

  • I am lucemans on github.
  • I am lucemans (https://keybase.io/lucemans) on keybase.
  • I have a public key ASCDcwoCoELWfYbrrhn_K34P64tLT1btOFYttEBiUzim1go

To claim this, I am signing this object:

@lucemans
lucemans / makewebp.sh
Created April 13, 2022 14:13
Convert all existing png files to webp in one command
#!/bin/sh
function makewebp(){ for file in *.png; do cwebp $file -o "${file%.*}.webp" $@; done }
did:3:kjzl6cwe1jw14bmcs472ycg239njj0biufzza0ce45w21hfg9r49w4c100mbv5w
### Keybase proof
I hereby claim:
* I am lucemans on github.
* I am lucemans (https://keybase.io/lucemans) on keybase.
* I have a public key ASD54k_a7RU8_OTrnpC_QX9LyjvSVZwlCiQogr4PVKYZSgo
To claim this, I am signing this object: