Skip to content

Instantly share code, notes, and snippets.

@JSouthGB
JSouthGB / mypostgres.sh
Created July 25, 2023 20:25 — forked from jefrydco/mypostgres.sh
Run PostgreSQL and pgAdmin4 on Docker with single command
#!/bin/bash
# Create postgres directory with pgvolume and pga4volume as child directory.
mkdir -p postgres/{pgvolume,pga4volume}
# Navigate to postgres directory
cd postgres
# Create pg.env that holds environment variable for postgres docker container.
cat << EOF > pg.env
@JSouthGB
JSouthGB / clean-up-arch-linux.md
Created July 4, 2023 17:34 — forked from rumansaleem/clean-up-arch-linux.md
Instructions to clean up Arch Linux (Manjaro)

Contents

  • Clean pkg cache
  • Remove unused packages (orphans)
  • Clean cache in /home
  • remove old config files
  • Find and Remove
    • duplicates
    • empty files
    • empty directories
  • broken symlinks

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.

#!/bin/bash
# deluge2rtorrent
# deluge handles downloading and initial sorting
# this script is to move everything to rtorrent
# torrents and torrent data only
# torrent info will not be preserved (seed time, etc)
# -P flag and echo because i dont run this unattended
# this is quick and dirty, i have no idea what im doing
@JSouthGB
JSouthGB / 0_reuse_code.js
Created October 1, 2016 02:43
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console