Skip to content

Instantly share code, notes, and snippets.

@InfiniteCoder01
InfiniteCoder01 / README.md
Last active October 19, 2024 13:02
Game of life in helix editor (experimental plugins in steel scheme PR)

Instructions

You will need a copy of this helix fork (works for sure in this commit, in case breaking changes happen)

Follow instructions in STEEL.md (you might need to add +stable after cargo to all commands if you get helix-term build errors, f. e. cargo xtask steel will become cargo +stable xtask steel) to install helix and steel and don't forget to run cargo xtask code-gen (or cargo +stable xtask code-gen) after you install helix to generate bindings

Copy all files in this gist into your helix config directory (game-of-life.scm into cogs subdirectory inside)

A metatable can be defined like

local t = setmetatable({}, {
  __tostring = function() return 'custom tostring behavior!' end
})

Here are the metamethods that you can define, and their behavior

Operators

@Xavier59
Xavier59 / privatekeysolana.js
Created December 28, 2021 14:49
Convert Solana private key from/to base58/uint8array
// exporting from a bs58 private key to an Uint8Array
// == from phantom private key to solana cli id.json key file
// npm install bs58 @solana/web3.js
const web3 = require("@solana/web3.js");
const bs58 = require('bs58');
let secretKey = bs58.decode("[base58 private key here]");
console.log(`[${web3.Keypair.fromSecretKey(secretKey).secretKey}]`);
// exporting back from Uint8Array to bs58 private key
@sainnhe
sainnhe / gruvbox-material-alacritty.yml
Last active January 7, 2025 20:55
Gruvbox Material for Alacritty
# The definition of color schemes.
schemes:
gruvbox_material_hard_dark: &gruvbox_material_hard_dark
primary:
background: '0x1d2021'
foreground: '0xd4be98'
normal:
black: '0x32302f'
red: '0xea6962'
green: '0xa9b665'
@hjertnes
hjertnes / doom.txt
Created April 6, 2018 08:28
Doom Emacs Cheatsheet
SPC
SPC: find file
, switch buffer
. browse files
: MX
; EX
< switch buffer
` eval
u universal arg
x pop up scratch
@darkn3rd
darkn3rd / Arch-VirtualBox.md
Last active July 10, 2023 14:32
Arch Linux as VirtualBox Guest

ArchLinux Virtualbox STEP-by-STEP

These are my ArchLinux on Virtualbox notes with some added explanations.

  • Joaquin Menchaca (Nov 6, 2017)

Create Virtualbox System

This is handcrafted creation of using Virtualbox using defaults with these adjustments:

@thomasheller
thomasheller / INSTALL.md
Last active March 16, 2025 21:10
Install Arch Linux in VirtualBox VM
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active April 26, 2025 10:50
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname