Skip to content

Instantly share code, notes, and snippets.

Avatar

John Doe Zeitwaechter

  • Germany
View GitHub Profile
@Zeitwaechter
Zeitwaechter / xorg.conf
Created Sep 19, 2020
Working NVIDIA VGA xorg.conf
View xorg.conf
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 450.66
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 450.66
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
View 00-requirements.md

Warning

No warranties, it's all on you.

Pay attention to not touch any pins/contacts, if you do not own a enclosure/case for this RPi4 Setup.

Also.. 5 Volt stings a bit.

Now.. you have been warned.

View 00-arch-linux-kubernetes-scripts.md

All of this is untested/work in progress

@Zeitwaechter
Zeitwaechter / cinnamon-notifications.md
Last active May 12, 2020
Arch Linux 'nice to knows'
View cinnamon-notifications.md

If you have disabled network notifications by error you can try the following commands (user shell doesn't matter):

  • gsettings set org.gnome.nm-applet disable-connected-notifications false
  • gsettings set org.gnome.nm-applet disable-disconnected-notifications false
  • gsettings set org.gnome.nm-applet disable-vpn-notifications false

Cinnamon still has no native graphical applet for this. Meh.

@Zeitwaechter
Zeitwaechter / 00-mysql-notes.md
Created May 11, 2020
LaraCon 2018 - Addendum
View 00-mysql-notes.md

Taken from Kai Sassnowskis' talk at LARACON EU from 2018 source:

  • Indeces aren't used when using functions (like e.G. YEAR() or MONTH()), use e.G. BETWEEN instead.
  • If not sure what is happening, use an EXPLAIN before your statement.
  • Multi column indeces go from left to right and you can not skip columns, so the defined order in the index matters.
  • An index and a query always have to go together.
  • Inequality Operators: Which query is more important? Is the introduction of another index the right approach?
  • "Indexing is my concern", not of others
View 00-installs.md
  1. Install brew
  2. run xcode-select --install
  3. run brew install rbenv ruby-build
  4. add to ~/.config/fish/config.fish to add ruby via env selection.
    set -g fish_user_paths "$HOME/.rbenv/bin" $fish_user_paths
    
    ### Executables
    ## eval "(rbenv init -)"
    # (process substitution)
    
@Zeitwaechter
Zeitwaechter / Arch Linux 2020 (Encrypted root - BIOS-DOS mode).md
Last active Mar 26, 2020
Installing Arch Linux (Encrypted root - BIOS-DOS mode) on a device with a serial port-only in 2020 (with a few extras)
View Arch Linux 2020 (Encrypted root - BIOS-DOS mode).md

tested but without warranty

Beware of values in []

  • fdisk -l
  • dd if=/dev/zero of=/dev/[device] bs=4M status=progress oflag=sync
  • cfdisk /dev/[device]
    • 512M boot partition, Hex code 8300
    • 100% LUKS partition, Hex code 8300
  • mkfs.ext4 -F -O metadata_csum,64bit /dev/[device]1
View 01-deploy.yml
# ʘ‿ʘ #happy #freshchanges
cd /home/forge/app
# (ノ◕ヮ◕)ノ*:・゚✧ Clean it up!
git diff
#git -c core.quotepath=false -c log.showSignature=false rm --cached -f -- package.json
#git -c core.quotepath=false -c log.showSignature=false rm --cached -f -- package-lock.json
git -c core.quotepath=false -c log.showSignature=false checkout HEAD -- package.json
git -c core.quotepath=false -c log.showSignature=false checkout HEAD -- package-lock.json
@Zeitwaechter
Zeitwaechter / helpers.php
Created Jan 29, 2020
Universal Laravel Error Logger Helper
View helpers.php
<?php
if ( !function_exists('error_logger')) {
/**
* error_logger
*
* Returns an expanded Error Log as JSON and Logs it into the Laravel Error Logs
*
* @param \Exception $exception
* @param null|string $message
You can’t perform that action at this time.