Skip to content

Instantly share code, notes, and snippets.

View Justinzobel's full-sized avatar

Justin Zobel Justinzobel

View GitHub Profile
@Justinzobel
Justinzobel / gist:a0632813310b34f1b284e0cee09d4616
Created March 3, 2025 11:13
Librewolf keep tabs between sessions
LibreWolf by default closes all tabs unless they are pinned when you exit.
`Settings > General > Open previous windows and tabs`
@Justinzobel
Justinzobel / add-ppa-manual.md
Last active February 23, 2025 09:56
How to add a PPA on Ubuntu without add-apt-repository or the software-properties-common package

I wrote this down as I don't like having to install a handful of dependencies just to add a repository (PPA) on Ubuntu.

I used fish in my example.

Get the signing key URL

  1. Open PPA Page (https://launchpad.net/~fish-shell/+archive/ubuntu/release-3 for example)
  2. Click Tecnical details about this PPA (green writing)
  3. Click the signing key link (this goes to https://keyserver.ubuntu.com/pks/lookup?fingerprint=on&op=index&search=0x88421E703EDC7AF54967DED473C9FCC9E2BB48DA)
  4. Right click the link after sig cert and copy link (This copied link goes in the curl command to get the key)
Commands to run
# This will take a while:
`gitlab-rails console`
Then once you have the prompt `Feature.enable(:vscode_web_ide), run:
`Feature.enable(:vscode_web_ide)`
@Justinzobel
Justinzobel / gist:aa0d056c000de38515c7f44e80ac73f8
Created September 2, 2024 02:38
How to install flatpak-builder as a Flatpak
flatpak install org.flatpak.Builder
@Justinzobel
Justinzobel / gist:aaf6fd4021a4ac9106219ae18c845de7
Created May 21, 2024 02:21
How to get Steam OS to use Wayland on the Desktop Mode
echo wayland > ~/.config/steamos-session-type
Then reboot.
@Justinzobel
Justinzobel / gist:8e0ac0264c1872f7636d06b5362ff06e
Created April 30, 2024 03:11
Combat Master Steam Launch Options
-screen-width 2560 -screen-height 1440 -screen-fullscreen 1
@Justinzobel
Justinzobel / git_squash_commits_locally.md
Created October 25, 2023 07:41
Git Squash Commits Locally

4 is the number of commits you want to squash

git rebase -i origin/master~4 branch_name

This will open your edit, replace the pick with squash on the commits you want to squash into the main commit.

The editor will open again and you need to comment out all commit messages that you don't want.

git push -f git push origin +branch_name

@Justinzobel
Justinzobel / database-tools-rosetta-stone.md
Last active October 15, 2023 08:59
Database Tools Rosetta Stone MySQL PostgreSQL SQLite
Level Action MySQL PostgreSQL SQLite
General Exit quit \quit .quit
Database List Databases show databases; \l .databases
Database Create Database CREATE DATABASE db_name;
Database Connect to a Database use db_name; \c db_name
Table List Tables show tables; \dt .table
Table Describe Table Columns describe table_name; \d table_name .schema table_name
Processses Show Process List show processlist;
Read Data Show All Data select * from table_name; select * from table_name;
@Justinzobel
Justinzobel / thunderbird-115-fix.md
Last active February 18, 2025 04:54
Fix Thunderbird 115's title bar and remove search bar

Thunderbird 115 introduced a new look. I hate it. Not only does it no longer fit in with KDE Plasma, it lost functionality due to it's new integrated search bar in the title bar.

So I went on a mission to fix it.

To restore the regular title bar:

Go into Settings > General > Language & Appereance and uncheck the Hide system window titlebar

To remove search bar:

Discourse Maintenance Page with Apache2

As root

cd /var/discourse
nano containers/app.yml

Comment out these lines: