Create a dummy printer:
lpadmin -p myDummyPrinter -E -v file:///dev/null
Make it the default printer:
lpoptions -d myDummyPrinter
import { encode } from '@ethereumjs/rlp'; | |
import { ecrecover } from '@ethereumjs/util'; | |
import { keccak256 } from 'ethereum-cryptography/keccak'; | |
// tx: 0xb00b758da7b97dbeedd1ef62592b2c1427c70ca042dc51a63f3a39d8d31ebbcc | |
const chainId = 0x1n; | |
const nonce = 0x3n; | |
const maxPriorityFeePerGas = 0xf4240n; | |
const maxFeePerGas = 0x73323c225n; | |
const gasLimit = 0xdd9cn; |
<?php | |
// half-hearted CSS minification | |
$css = preg_replace( | |
array('/\s*(\w)\s*{\s*/','/\s*(\S*:)(\s*)([^;]*)(\s|\n)*;(\n|\s)*/','/\n/','/\s*}\s*/'), | |
array('$1{ ','$1$3;',"",'} '), | |
file_get_contents('linked.css') | |
); | |
// embed as a data: uri | |
$base64css = rtrim(strtr(base64_encode($css), '+/', '-_'), '='); |
Create a dummy printer:
lpadmin -p myDummyPrinter -E -v file:///dev/null
Make it the default printer:
lpoptions -d myDummyPrinter
// Can be used with https://github.com/xcv58/Custom-JavaScript-for-Websites-2 | |
// This snippet is released under the terms of the CC0 license: https://creativecommons.org/publicdomain/zero/1.0/deed.en | |
const cache_key = 'hn_comments_views' | |
const cache = JSON.parse(localStorage.getItem(cache_key) || '{}') | |
document.querySelectorAll('.athing.comtr').forEach(comm => { | |
if (!cache[comm.id]) { | |
const span = document.createElement('span') | |
span.innerHTML = '🔔' // :bell: emoji |
Using Charles Proxy, use a Map Remote to redirect https://spclient.wg.spotify.com/homeview/v1/home to http://localhost:6666
Then add Charles Proxy to your Wifi proxy.
Install the Charles ca certificate - this is well tucked away inside Android. The OS keeps changing, but if you search for "trust" then from this panel "install cerficate" you should get some of the way.
Then with this index.js
running, the shows and episodes will be striped out.
Now Spotify mobile won't show shows and podcasts.
It's 2024. You should use tsup instead of this.
🔥 Blazing fast builds
😇 CommonJS bundle
🌲 .mjs
bundle
✨ .d.ts
bundle + type-checking
export GITHUB_USER=magickatt | |
export GITHUB_TOKEN=secret | |
export GITHUB_REPOSITORY=magickatt/ContainerisingLegacyApplicationsTalk | |
git clone https://${GITHUB_USER}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY} |