Skip to content

Instantly share code, notes, and snippets.

View brokenmold's full-sized avatar
:octocat:
Spaghetti code, It's what's for dinner.

Jason Glass brokenmold

:octocat:
Spaghetti code, It's what's for dinner.
View GitHub Profile
@brokenmold
brokenmold / jsconfig.json
Last active July 1, 2022 21:58
Absolute Imports and Module Path Aliases
// tsconfig.json or jsconfig.json
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"components/*": ["./pages/components/*"]
}
}
}
@brokenmold
brokenmold / Kill Lost Process
Last active August 18, 2022 01:44
Kill Lost Process
// ** Kill Process on Specific Port **
sudo kill -9 $(sudo lsof -t -i:3001)
or
kill -9 $(lsof -t -i:3001)
@brokenmold
brokenmold / CSS Reset
Last active June 24, 2022 11:49
Modern CSS Reset
// ** Smoothing **
* {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
// ** Box Sizing Rules **
*,
*::before,
*::after {
@brokenmold
brokenmold / Env-Killer
Last active January 29, 2023 16:53
Wipe oops'd .env's from GitHub
*** Removes most recent unpushed env commit & adds env to gitignore ***
echo '.env' >> .gitignore
git rm -r --cached .env
git add .gitignore
git commit -m 'untracking .env'
git push origin master
*** Removes all env instances from commit history ***
/* *******************************************************************************************
* PUPPETEER
* https://pptr.dev/
* ******************************************************************************************* */
// When you install Puppeteer, it downloads a recent version of Chromium (~170MB Mac, ~282MB Linux, ~280MB Win)
// that is guaranteed to work with the API.
npm install puppeteer
@gjerokrsteski
gjerokrsteski / remove env file from git forever
Last active May 3, 2024 19:42
remove env file from git history forever
echo '.env' >> .gitignore
git rm -r --cached .env
git add .gitignore
git commit -m 'untracking .env'
git push origin master
@triztian
triztian / gen-ssh-keys.md
Last active November 4, 2023 11:47
DigitalOcean Generate SSH keys

Adding SSH Keys to Droplets

How it Works

You can add SSH keys to DigitalOcean which can then be selected during the droplet create process to add the selected SSH keys under the root user.

When using SSH keys a root password will no longer be set as SSH keys will be used as the preferred method of access.

We do not manage the server after creation, so editing, adding, or removing SSH keys from the SSH interface will not affect any of the stored keys on droplets that you have created.