Skip to content

Instantly share code, notes, and snippets.

View nopeless's full-sized avatar

nopeless nopeless

  • 01:42 (UTC -05:00)
View GitHub Profile
@nopeless
nopeless / gist:9609f5e45adc5b0032d6b7cba8e9ba69
Last active September 5, 2021 10:15
How to make private extension in vsc
cd %USERPROFILE%/.vscode/extensions
yo code
# if that errors do
npm install -g yo generator-code

# This is an important step
# I found this the hard way but without a "__metadata" in the package.json, you cannot set themes nor activate extensions
# So, here is a dummy payload that you can add to your package.json
@nopeless
nopeless / README.md
Last active November 1, 2023 13:09
Python regex cheat sheet fast easy only examples

Official python re examples are so bad

Read this small note before you go

The python regex structure is mostly this
re.<method> is the go to interface with common signature as (pattern, string, flags=0)
and most of the time there is an equivalent Pattern.<method> with the first argument being the string instead of pattern
But the <method> has [, pos[, endpos]] and no flags=0 which might be useful
So I will omit all the equivalent methods' signatures

@nopeless
nopeless / git commands.sh
Last active September 9, 2021 12:37
Git snippets
# basics
# oh frik the commit message was wrong
git commit -a --amend -m "new message"
# or
git commit -a --amend --no-edit
# set remote
git remote set-url origin url
# other stuff