Skip to content

Instantly share code, notes, and snippets.

@insertish
insertish / React Native.md
Last active April 15, 2025 02:14
Configure React Native with Typescript, Vite.js for react-native-web and Storybook.
@insertish
insertish / do the thing.sh
Created February 12, 2022 15:06
Combine all video files in a directory into one.
ls -w 1 > list && sed -i -e 's/^list$//' list && sed -i -e 's/^\(.\+\)$/file \'\1\'/' list && cat list && ffmpeg -f concat -safe 0 -i list -c copy output.mp4
@insertish
insertish / anonymise.js
Last active October 14, 2021 21:17
Randomise your Steam purchases for safely fucking with scammers.
[...document.querySelectorAll('.wallet_table_row')]
.map(x => {
if (x.querySelector('.wht_items').innerText.includes('£')) return x.parentElement.removeChild(x);
let amount = (Math.random() * 20).toFixed(2);
x.querySelector('.wht_total').innerText = "£" + amount;
x.querySelector('.wht_wallet_change').innerText = "-£" + amount;
x.querySelector('.wht_wallet_balance').innerText = "£0.00";
});
[...document.querySelectorAll('.wth_payment')].map(x => x.innerText = 'Visa **37');
@insertish
insertish / mastodon.md
Created August 27, 2021 16:57
Mastodon Docker Setup with Caddy