Skip to content

Instantly share code, notes, and snippets.

View snipem's full-sized avatar

Matthias Küch snipem

  • Kassel, Germany
View GitHub Profile
@odadoda
odadoda / if.sh
Last active January 9, 2018 12:43
Bash if
if [ test-commands ]; then
#do something
elif [ more-commands ]; then
#do more something]
else
#do something else
fi
@lornajane
lornajane / mac.md
Last active April 21, 2024 15:04
Keyboard Only OS X

Keyboard-only Mac Cheatsheet

Hi, I'm Lorna and I don't use a mouse. I have had RSI issues since a bad workstation setup at work in 2006. I've tried a number of extra hardware modifications but what works best for me is to use the keyboard and only the keyboard, so I'm in a good position and never reaching for anything else (except my coffee cup!). I rather unwisely took a job which required me to use a mac (I've been a linux user until now and also had the ability to choose my tools carefully) so here is my cheatsheet of the apps, tricks and keyboard shortcuts I'm using, mostly for my own reference. Since keyboard-only use is also great for productivity, you may also find some of these ideas useful, in which case at least something good has come of this :)

Apps List

There's more detail on a few of these apps but here is a quick overview of the tools I've installed and found helpful

Tool Link Comments
@tombigel
tombigel / README.md
Last active April 24, 2024 12:32 — forked from a2ikm/limit.maxfiles.plist
How to Change Open Files Limit on OS X and macOS Sierra (10.8 - 10.12)

How to Change Open Files Limit on OS X and macOS

This text is the section about OS X Yosemite (which also works for macOS Sierra) from https://docs.basho.com/riak/kv/2.1.4/using/performance/open-files-limit/#mac-os-x

The last time i visited this link it was dead (403), so I cloned it here from the latest snapshot in Archive.org's Wayback Machine https://web.archive.org/web/20170523131633/https://docs.basho.com/riak/kv/2.1.4/using/performance/open-files-limit/

Mac OS X

To check the current limits on your Mac OS X system, run:

@arogulin
arogulin / VortexRace3ForMac.md
Last active February 7, 2024 15:42
How to setup Vortex Race 3 keyboard for Mac and move Fn key to Home

How to setup Vortex Race 3 for Mac with latest (on 2020-01-05) firmare V1.02.05.

For better understanding we will use the following naming convention:

  [ L1 ][ L2 ][ L3 ][ Space ][ R1 ][ R2 ][ R3 ]
  1. Reset everything by pressing L3+R1 for 5 seconds. Left LED will blink white color while you're holding the keys. Release them after it stopeed blinking.
  2. Get into one of the programmable layers (R2+RShift) – I like red, the super bright laser LED is the least super annoying in red.
  3. Put the keyboard in Windows Mode (Pn+W), it's the least problematic one.

How to setup Vortex Race 3 (firmware v1.02.05) for Mac OS

The Vortex Race 3 is a great mechanical keyboard, but using it with MacOS requires some adjustments. We need to reposition and reprogram the modifier keys. Unfortunately the Race 3 does not support the online MPC, so we will have to do this using the on-board programming mode.

This guide is heavily based on a gist by arogulin. It only adds a bit of formatting and a few minor notes.

For better understanding we will use the following naming convention for the key positions: L1L2L3SpaceR1R2R3

  1. Reset everything. Press L3+R1 for 5 seconds. Release the keys when the white led stops blinking.
  2. Choose a progammable layer (and led color) by pressing R2+RShift several times. I chose red (layer 1).
@coolbho3k
coolbho3k / force_samsung_soundbar_mode.sh
Last active February 12, 2024 18:08
Script to continuously force Samsung soundbar sound mode
#!/bin/bash
# This works around a STUPID issue on Samsung TVs/soundbars which will always
# set the sound mode to Game and never switch it back when game mode is
# enabled once.
#
# This script just sets the sound mode to whatever you want every 2 seconds.
#
# 1. First connect your soundbar to your SmartThings account
# 2. Find your soundbar's device ID here: https://my.smartthings.com/advanced/devices