Skip to content

Instantly share code, notes, and snippets.

@stuaxo
stuaxo / download-ow1.9.sh
Last active July 16, 2023 00:57
Install openwatcom-1.9 on Linux
#!/bin/bash
#
# Download open watcom 1.9 from sourceforge.
#
# Requires curl or wget
FILENAME="open-watcom-c-linux-1.9"
URL="https://master.dl.sourceforge.net/project/openwatcom/open-watcom-1.9/$FILENAME"
# Check if curl is available
if command -v curl >/dev/null 2>&1; then
@hyperupcall
hyperupcall / settings.jsonc
Last active October 11, 2025 12:44
VSCode config to disable popular extensions' annoyances (telemetry, notifications, welcome pages, etc.)
// I'm tired of extensions that automatically:
// - show welcome pages / walkthroughs
// - show release notes
// - send telemetry
// - recommend things
//
// This disables all of that stuff.
// If you have more config, leave a comment so I can add it!!
{
@JoeBlakeB
JoeBlakeB / kotlinRun.sh
Created May 10, 2023 10:19
A simple bash script to build and run a single kotlin file with build cache to only re compile if source file changes.
#!/bin/bash
#
# A simple bash script to build and run a single kotlin file
# with build cache to only re compile if source file changes
#
# Copyright (C) 2023 Joe Baker (JoeBlakeB)
# This program is free software under the GPLv3 license.
#
if [[ $1 == "-h" || $1 == "--help" ]]; then
@stuaxo
stuaxo / hyperlink.sh
Last active January 5, 2025 20:48
Output OSC-8 hyperlink in the terminal
@rokibhasansagar
rokibhasansagar / split_json.sh
Created May 4, 2023 13:21 — forked from arlina-espinoza/split_json.sh
Bash script to split a JSON into multiple files. Uses jq.
#!/bin/bash
# Split a JSON into multiple files. Uses jq.
# Usage
# ./split_json.sh /path/to/json/file
file="$1"
jq -cr 'keys[] as $k | "\($k)\t\(.[$k])"' "$file" | awk -F\\t '{ file=$1".json"; print $2 > file; close(file); }'
@Ridhookas
Ridhookas / index.html
Last active May 26, 2023 03:59
Ridhokurs
<body>
<canvas id="canvas" width="1400" height="600"></canvas>
</body>
@d3nd3
d3nd3 / patch.sh
Created April 15, 2023 18:07
Exagear License for pi-legacy
rmdir '/opt/exagear/lic'
rm '/opt/exagear/bin/actool'
# non legacy versions
printf '\x00\xf0\x20\xe3\x01\x00\xa0\xe3' | dd of='/opt/exagear/bin/ubt_x32a32_al_mem2g' bs=1 seek=866740 count=8 conv=notrunc 2> /dev/null
printf '\x00\xf0\x20\xe3\x01\x00\xa0\xe3' | dd of='/opt/exagear/bin/ubt_x32a32_al_mem3g' bs=1 seek=996256 count=8 conv=notrunc 2> /dev/null
# legacy version (pi0 armv6)
printf '\x01\x00\xa0\xe3\x01\x00\xa0\xe3' | dd of='/opt/exagear/bin/ubt_x32a32_al' bs=1 seek=1071816 count=8 conv=notrunc 2> /dev/null
@mihow
mihow / send_get_as_post.py
Created March 14, 2023 01:16
Send a GET request as a POST to overcome 414 Request-URI Too Large
# Submit a "GET" request via POST so we can send
# more data than fits in a URL
resp = requests.post(
url,
headers = {'X-HTTP-Method-Override': 'GET'},
data=params)
@DavidBuchanan314
DavidBuchanan314 / widevine_fixup.py
Last active July 15, 2025 03:43
Patch aarch64 widevine blobs from ChromeOS to work on non-ChromeOS linux, including platforms with 16K page size like Apple Silicon / Asahi Linux
"""
MIT License
Copyright (c) 2023 David Buchanan
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@roycewilliams
roycewilliams / scanModem.sh
Last active September 22, 2025 20:50
archive of linmodems.org scanModem.sh
#!/bin/bash
echo
NOTE=" ONLY use scanModem downloaded as: http://linmodems.technion.ac.il/packages/scanModem.gz"
UPDATE="2005_Oct_23"
cat<<END>/dev/null
Just working notes and URLs
http://linmodems.technion.ac.il/packages/smartlink/
mirror http://phep17.technion.ac.il/linmodems