Skip to content

Instantly share code, notes, and snippets.

View SOSANA's full-sized avatar

Zach Sosana SOSANA

View GitHub Profile
@SOSANA
SOSANA / screenPrimary.md
Last active July 19, 2023 21:48
fix for login screen doesn't appear on the primary screen linux

Set your display mode as desired using Settings > Devices > Displays

sudo cp ~/.config/monitors.xml /var/lib/gdm3/.config

Reboot the computer

@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 / remove_node_modules.sh
Last active June 6, 2023 17:56
A bash script to remove all sub folders containing node_modules from the root directory
#!/bin/bash
# run this command in root directory
# sh ./remove_node_modules.sh;
# Find all node_modules folders in the root directory
find . -type d -name "node_modules"
# Initialize the count of folders removed to 0
count=0
@SOSANA
SOSANA / remove_files.sh
Last active July 18, 2023 17:07
a bash script to remove all files containing .json and -edited.jpg from root folder
#!/bin/bash
# remove all files containing .json and -edited.jpg. Place in root subfolder and will remove from all subfolders
# bash remove_files.sh
# Get the current directory
current_dir=$(pwd)
# Initialize counters for json and edited jpg files
json_count=0
@SOSANA
SOSANA / remove_file-type.sh
Created July 18, 2023 17:05
a bash script to remove all files named "file-type" in the root directory and subfolders
#!/bin/bash
# remove all files named "file-type" in the root directory and subfolders
# bash remove_files.sh
# Get the current directory
current_dir=$(pwd)
# Initialize counter for file-type files
file_type_count=0
@SOSANA
SOSANA / sosana-react-snippets.json
Last active August 15, 2023 15:49
vscode snippet extension config for react
{
"Functional component": {
"scope": "javascriptreact",
"prefix": "rcz",
"body": [
"const ${TM_FILENAME_BASE} = () => {",
" return (<div><h1>${0:Hello World}</h1></div>);",
"}",
"export default ${TM_FILENAME_BASE}"
],