Skip to content

Instantly share code, notes, and snippets.

View george-haddad's full-sized avatar

George Haddad george-haddad

  • Berlin
View GitHub Profile
@george-haddad
george-haddad / ubuntu_synaptics_driver_update_dell_docking_station.md
Created January 4, 2024 08:54
Updating synaptics driver on Ubuntu for Dell docking station to work

I use a big docking station block that allows me yo use 3 monitors with my laptop. At times when a fully Ubuntu system update occurs it breaks the driver. The solution is to either re-install the existing driver or update to a new one.

Follow instructions here from Synaptics

# Download deb repo file and install it

sudo apt install ./Downloads/synaptics-repository-keyring.deb

sudo apt update
@george-haddad
george-haddad / postgres_docker_quickstart.md
Created November 21, 2022 10:35
PostgreSQL Quickstart docker command

Need to get a PostgreSQL DB up and runing locally for testing. Command spins a Postgres docker with standard env params for a user, password and initial db.

docker run --name postgresql \
  -e POSTGRES_USER=postgres \
  -e POSTGRES_PASSWORD=P@ssW0rd12345 \
  -e POSTGRES_DB=postgres \
  -p 5432:5432 \
  -d postgres
@george-haddad
george-haddad / ubuntu kernel.md
Created August 11, 2022 08:06
Free up boot drive for more kernels

It has come to the point where I have been given a Linux laptop and the /boot partition is really small and only holds 2 kernels. Each time I try to upgrade it stops beacuse the /boot partition runs out of space.

Here are some commads I use to free up some space.

# check what kernel version I am currently using
uname -a

# list the kernels currently installed
@george-haddad
george-haddad / google_sheets.md
Last active May 18, 2022 09:41
Google Sheet text formatting

Prefix strings with a single quote to stop google sheet from formatting your values.

Some examples:

'+/- or '+49-123-4567890
@george-haddad
george-haddad / keycloak_docker.md
Last active August 17, 2021 11:43
Keycloak Quickstart docker command

Get keycloak in a docker up and running quickly without fuss for quick testing.

docker run -p 8888:8080 \
 -e KEYCLOAK_USER=admin \
 -e KEYCLOAK_PASSWORD=admin \
 quay.io/keycloak/keycloak:15.0.1
@george-haddad
george-haddad / mysql_docker_quickstart.md
Created August 5, 2021 11:05
MySQL Quickstart docker command

Need to get a MySQL DB up and runing locally for testing. Command spins a MySQL docker with standard env params for a user, root user and some database initialized.

docker run -p 127.0.0.1:3306:3306 \
  --rm \
  --name mysql-test \
  --env MYSQL_ROOT_PASSWORD=root \
  --env MYSQL_DATABASE=my_database \
 --env MYSQL_USER=alice \
@george-haddad
george-haddad / gist:3eed7f9644403240d286b8936ab3d648
Last active May 25, 2021 07:38
To get my wireless headphones working on Ubuntu GNU/Linux

List of useful VSCode Extensions that I have installed. (Adding links was going to take too much time so these are their exact names)

  • API Blueprint Language
  • API Blueprint Viewer
  • API Elements extension
  • Better package.json
  • Bracket Pair Colorizer
  • Cloudfoundry Manifest YAML support
  • Code Spell Checker