Skip to content

Instantly share code, notes, and snippets.

View jhmaster2000's full-sized avatar
👁️‍🗨️

jhmaster jhmaster2000

👁️‍🗨️
View GitHub Profile
@imrodrigoalves
imrodrigoalves / resetWSLSpeeds.bat
Last active October 26, 2022 15:46
Allow WSL Fast Internet
@echo off
wsl exit
powershell -Command "Set-NetAdapterLso -Name 'vEthernet (WSL)' -IPv4Enabled $False -IPv6Enabled $False"
@kkrypt0nn
kkrypt0nn / ansi-colors-discord.md
Last active August 23, 2024 15:05
A guide to ANSI on Discord

A guide to ANSI on Discord

Discord is now slowly rolling out the ability to send colored messages within code blocks. It uses the ANSI color codes, so if you've tried to print colored text in your terminal or console with Python or other languages then it will be easy for you.

Quick Explanation

To be able to send a colored text, you need to use the ansi language for your code block and provide a prefix of this format before writing your text:

\u001b[{format};{color}m
# IDA (disassembler) and Hex-Rays (decompiler) plugin for Apple AMX
#
# WIP research. (This was edited to add more info after someone posted it to
# Hacker News. Click "Revisions" to see full changes.)
#
# Copyright (c) 2020 dougallj
# Based on Python port of VMX intrinsics plugin:
# Copyright (c) 2019 w4kfu - Synacktiv
@georges-gomes
georges-gomes / hmr.js
Created March 20, 2020 10:03
Hot module reload prototype
import inspector from "inspector";
const url2scriptid = new Map<string, string>();
const session = new inspector.Session();
session.connect();
setupDebugger();
function setupDebugger() {
@cherryblossom000
cherryblossom000 / Minimum number of levels and bookshelves required for Minecraft enchantments.md
Last active August 15, 2024 04:18
Minimum number of levels and bookshelves required for Minecraft enchantments

Minimum number of levels and bookshelves required for Minecraft enchantments

Last updated: August 2019

I made this for my answer to a question on Arqade/Gaming Stack Exchange.

Enchantment Levels Bookshelves
Aqua Affinity I 0 0
Bane of Arthropods I 5 3
@fnky
fnky / ANSI.md
Last active September 20, 2024 16:57
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@skx
skx / lsb_release
Last active August 20, 2023 14:31
Simple alternative to /usr/bin/lsb_release
#!/bin/sh
#
# This is a simple alternative to /usr/bin/lsb_release which
# doesn't require python.
#
# If /etc/os-release exists then we use that to output data
# in a compatible format to the original lsb_release utility.
#
# I consider this script trivial enough to be in the public-domain,
# but any patches or suggestsions will be welcome.