Skip to content

Instantly share code, notes, and snippets.

View SOSANA's full-sized avatar

Zach Sosana SOSANA

View GitHub Profile
@SOSANA
SOSANA / .babelrc
Last active March 25, 2017 18:10
Babel Config
{
"presets": [
[
"env",
{
"targets": {
"browsers": ["IE 8"]
}
}
],
@SOSANA
SOSANA / updateNpm.bat
Last active May 20, 2018 18:21
Update npm on windows using nvm-windows. Script runs latest, npm version just replace "latest" with version desired. Place script in nvm root folder C:\Users\<user>\AppData\Roaming\nvm or run %appdata% to locate nvm folder
@echo off
SETLOCAL EnableDelayedExpansion
if [%1] == ["latest"] (
echo Pass in the version you would like to install, or "latest" to install the latest npm version.
) else (
set wanted_version="latest"
if "!wanted_version!" == "latest" (
for /f %%i in ('npm show npm version') do set wanted_version=%%i
@SOSANA
SOSANA / package.json
Last active November 19, 2019 19:04
Firefox Developer Edition Live Server browser-sync setup for Linux or Windows OS
{
"name": "test-project",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "run-script-os",
"start:win32": "browser-sync start --server --files '**/*.css, **/*.html, **/*.js, !node_modules/**/*' --directory --port 7777 --browser \"C:\\Program Files\\Firefox Developer Edition\\firefox.exe\"",
"//": "Hello! If you are having trouble running this command. Try changing Firefox Developer Edition to FirefoxDeveloperEdition",
"start:darwin:linux": "browser-sync start --server --files '**/*.css, **/*.html, **/*.js, !node_modules/**/*' --directory --port 7777 --browser 'Firefox Developer Edition'"
@SOSANA
SOSANA / package.json
Last active August 15, 2020 22:48
Google Chrome Live Server browser-sync setup for Linux or Windows OS
{
"name": "future-project",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "run-script-os",
"start:win32":
"browser-sync start --server --files '**/*.css, **/*.html, **/*.js, !node_modules/**/*' --directory --port 7777 --browser \"C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe\"",
"start:darwin:linux":
@SOSANA
SOSANA / VSCODE_USER_SETTINGS.json
Last active March 17, 2022 04:40
VS Code user settings
{
"editor.tabSize": 2,
"editor.fontSize": 15,
"editor.snippetSuggestions": "top",
"editor.formatOnSave": true,
"window.zoomLevel": 1,
"emmet.triggerExpansionOnTab": true,
"editor.wordWrap": "on",
"javascript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": false,
"prettier.singleQuote": true,
@SOSANA
SOSANA / .eslintrc.json
Last active March 21, 2022 20:45
ESLint rules
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": [
"plugin:react/recommended",
"plugin:@next/next/recommended",
"airbnb",
@SOSANA
SOSANA / gitSaveGHCred.sh
Last active March 24, 2022 03:18
How to save a GitHub password globally on your personal device using Git
# Attention: This method saves the credentials in plaintext on your PC's disk. Everyone on your computer can access it, e.g. malicious NPM modules.
# Run
git config --global credential.helper store
# Then
git pull
@SOSANA
SOSANA / nerdFontInstallUbuntu.md
Created April 19, 2022 20:08
Install nerd font on ubuntu

1.) Download a Nerd Font

2.) Unzip and copy to ~/.fonts

3.) Run the command fc-cache -fv to manually rebuild the font cache

@SOSANA
SOSANA / winTileInstall.md
Last active April 25, 2023 02:14
Installing win tile gnome extension on ubuntu 22.04 gnome shell 42 and higher
  1. Install Extension Manager flatpak from flathub
  2. Download shell version 40, extension v7 of WinTile from the gnome extensions website
  3. Unpack zipfile
  4. Change metadata.json in the unpacked folder to include shell versions 42.0 as well as my current shell version got from terminal with gnome-shell --version
  5. Follow this guide on how to install a package manually through renaming and moving the unzipped folder
  6. Log out and log back in (Wayland does not allow you to restart with the command listed in the guide)
  7. Open Extension Manager and you should see WinTile under the User-Installed Extensions section above the System Extensions in the installed area.
@SOSANA
SOSANA / zshInstall.md
Last active May 1, 2023 01:35
install zsh, oh my zsh, and powerlevel10k on ubuntu

make sure updated dependencies sudo apt update

install zsh sudo apt install zsh

install oh my zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

/usr/bin/zsh look over the .zshrc file to select plugins, themes, and options.