Skip to content

Instantly share code, notes, and snippets.

@xero
xero / miasma.Xcolors
Created June 5, 2023 19:10
miasma “fall” colorscheme
// ┏┏┓o┳━┓┓━┓┏┏┓┳━┓
// ┃┃┃┃┃━┫┗━┓┃┃┃┃━┫
// ┛ ┇┇┛ ┇━━┛┛ ┇┛ ┇
// miasma by xero (https://x-e.ro)
*.foreground: #c2c2b0
*.background: #222222
*.cursorColor: #5f875f
! black
*.color0: #222222
@chsami
chsami / Mouse.java
Created May 20, 2023 21:21
VirtualMouse java
package net.runelite.client;
import lombok.Setter;
import net.runelite.api.Client;
import java.awt.*;
import java.awt.event.MouseEvent;
public class Mouse {
@80sVectorz
80sVectorz / rscan.js
Last active August 3, 2023 11:07
Recursive scan terminal command for outputing an ascii tree representation of the network.
/*
-- RSCAN --
VERSION 2.5
Bitburner script: https://github.com/bitburner-official/bitburner-src https://store.steampowered.com/app/1812820/Bitburner/
Recursive scan terminal command for displaying an ascii art tree representation of the full network:
rscan --detailed
-------------------Network Tree-------------------|-|Balance|-|Hack Chance|-|Security LVL|-|Hacking LVL|-|Root?|
home----------------------------------------------| $701.293m 100% 1% 1 [X]
├─n00dles | $2.984k 18% 83% 1 [X]
@stuaxo
stuaxo / download_file.sh
Last active July 16, 2023 00:56
Download a file using intermediate .part file and automatically resume.
#!/bin/bash
# Function to handle the download
download_file() {
local delete_flag="${1:-false}"
local url="$2"
local filename="$3"
# Extract filename from URL if not provided
if [ -z "$filename" ]; then
@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 May 3, 2024 12:52
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!!
{
@stuaxo
stuaxo / hyperlink.sh
Last active July 16, 2023 00:57
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>
@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)