Skip to content

Instantly share code, notes, and snippets.

Avatar

John Doe Zeitwaechter

  • Germany
View GitHub Profile
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.

@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)
    
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
View 00-arch-linux-kubernetes-scripts.md

All of this is untested/work in progress

View 00-executables.md

All of this is untested

  1. wget https://gist.githubusercontent.com/Zeitwaechter/43f86c95d1f63c2aecf168913f11b4e9/raw/a22e71096206c57173149cfb26f3c1fed566c2c6/01-docker-compose-gitlab.yml
  2. docker-compose -f 01-docker-compose-gitlab.yml up
@Zeitwaechter
Zeitwaechter / index.html
Created Jul 18, 2019 — forked from nolanlawson/index.html
Create an image/png blob, then fetch it with XHR
View index.html
<html>
<body>
<h1>Create an image/png blob, then fetch it with XHR</h1>
<pre id="display"></pre>
<script src="index.js"></script>
</body>
</html>
You can’t perform that action at this time.