Skip to content

Instantly share code, notes, and snippets.

View TheCrether's full-sized avatar
💯
workin'

Denis Imeri TheCrether

💯
workin'
View GitHub Profile
@TheCrether
TheCrether / bd3d4befe38185704bf0fc875e9deed6\configuration.json
Last active June 5, 2021 21:41
Visual Studio Code Settings Sync Gist
{"contents":{"cSpell":{"words":["Crether","MEMEBOT","cooldown","downvote","downvotes","downvoting","upvote","upvoted","upvotes"]}},"overrides":[],"keys":["cSpell.words"]}
@TheCrether
TheCrether / findwrong.py
Created October 12, 2020 06:08
REPLY 2020 Wells-Read
import re
from time import sleep
# parse the wells.txt and remove all non-words and words where special characters are at the beginning/end
wells = []
with open("wells.txt", "r") as f:
temp = f.read() \
.replace("\n", " ") \
.split(" ")
@TheCrether
TheCrether / subtree-workflow.txt
Created January 4, 2021 14:56 — forked from dwilliamson/gist:e9b1ba3c684162c5a931
Workflow for using git subtree on Windows
To include a library as a subtree, follow these steps:
1. Add the project as a remote
git remote add <remote-name> <source-repo>
2. Fetch the remote
git fetch <remote-name>
3. Add the project
git subtree add --prefix "path/to/project" <remote-name> <remote-branch-name> --squash
@TheCrether
TheCrether / taskmgr.bat
Last active February 27, 2021 18:03
taskmgr with process explorer
reg.exe delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\taskmgr.exe" /v Debugger /f
start taskmgr.exe
reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\taskmgr.exe" /v Debugger /t REG_SZ /d "Your Process Explorer Path" /f