This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import time | |
from math import floor | |
class SnowflakeGenerator: | |
def __init__(self, mid=None, time_start=1288834974657): | |
self.time_start = time_start | |
self.mid = mid if mid else os.getpid() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ┏┏┓o┳━┓┓━┓┏┏┓┳━┓ | |
// ┃┃┃┃┃━┫┗━┓┃┃┃┃━┫ | |
// ┛ ┇┇┛ ┇━━┛┛ ┇┛ ┇ | |
// miasma by xero (https://x-e.ro) | |
*.foreground: #c2c2b0 | |
*.background: #222222 | |
*.cursorColor: #5f875f | |
! black | |
*.color0: #222222 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.runelite.client; | |
import lombok.Setter; | |
import net.runelite.api.Client; | |
import java.awt.*; | |
import java.awt.event.MouseEvent; | |
public class Mouse { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
-- 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] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
// 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!! | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# hyperlink.sh | |
# | |
# Generate clickable hyperlinks to files in the terminal using OSC-8 standard ANSI. | |
# | |
# Usage: | |
# hyperlink.sh [-t text] [-r relative_folder] [-s] [--help] file | |
# | |
# Many terminals that support OSC-8 hyperlinks including: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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); }' |