Skip to content

Instantly share code, notes, and snippets.

View jonlabelle's full-sized avatar

Jon LaBelle jonlabelle

View GitHub Profile
@jonlabelle
jonlabelle / setup-tor.md
Created October 8, 2023 19:26 — forked from skippednote/setup-tor.md
Setup Tor on macOS

Setup One: Buy a Mac if you don't have one.

Setup Two: Install Homebrew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Setup Three:

@jonlabelle
jonlabelle / vscode-terminal-nvm.md
Created June 11, 2022 03:10 — forked from stormwild/vscode-terminal-nvm.md
Visual Studio Code NVM Node Integrated Terminal Issue

Visual Studio Code NVM Node Issue

NVM

Given that nvm is installed on Mac OS X High Sierra or Mojave using the install script

~/.bash_profile

export NVM_DIR="$HOME/.nvm"
@jonlabelle
jonlabelle / ANSI.md
Created August 14, 2021 16:21 — forked from fnky/ANSI.md
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1b
  • Decimal: 27
@jonlabelle
jonlabelle / Settings.StyleCop
Last active February 26, 2021 10:46 — forked from sneal/Settings.StyleCop
StyleCop settings
<StyleCopSettings Version="105">
<GlobalSettings>
<CollectionProperty Name="RecognizedWords">
<Value>upsert</Value>
<Value>api</Value>
<Value>deserializer</Value>
<Value>deserializing</Value>
<Value>json</Value>
<Value>json:api</Value>
</CollectionProperty>
@jonlabelle
jonlabelle / relative_time.py
Last active November 23, 2019 17:45 — forked from zhangsen/relative_time.py
python-relative-time
from datetime import datetime, timedelta
def relative_time(date):
"""Take a datetime and return its "age" as a string.
The age can be in second, minute, hour, day, month or year. Only the
biggest unit is considered, e.g. if it's 2 days and 3 hours, "2 days" will
be returned.
@jonlabelle
jonlabelle / dotnetcheatsheet.md
Created July 23, 2018 19:50 — forked from nth-block/dotnetcheatsheet.md
Dotnet core Cheat Sheet