Skip to content

Instantly share code, notes, and snippets.

@mkfares
mkfares / zsh-keyboard-shortucts.md
Last active May 13, 2024 19:25
Common zsh Keyboard Shortcuts on macOS Catalina

Common zsh Keyboard Shortcuts on macOS

Navigation

CTRL + A : Move the cursor to the beginning of the line
CTRL + E : Move the cursor to the end of the line
OPTION + Left Arrow : Move the cursor one word backward
OPTION + Right arrow : Move the cursor one word forward
Left Arrow : Move the cursor one character backward
Right Arrow : Move the cursor one character forward

@Intyre
Intyre / Wahoo_Elemnt.md
Last active May 14, 2024 17:27
Wahoo Elemnt - Tips, tricks and custom images
@dvf
dvf / change-codec.md
Last active May 21, 2024 16:48
Enable High Quality mode on your headphones (Updated for macOS Catalina)

If you're using a high-end bluetooth headset on your Macbook Pro it's likely your mac is using an audio codec which favors battery efficiency over high quality. This results in a drastic degradation of sound, the SBC codec is the likely culprit, read more about it here.

Find out what codec you're using

  1. Play a song on your headphones
  2. Option (⌥) click the Bluetooth button at the top of your screen Inspect the Bluetooth Coded
  3. If you're using AAC or aptX, you can stop here—those are the highest quality codecs.

Change your codec to AAC or aptX

@cookiengineer
cookiengineer / console-polyfill.js
Last active August 25, 2021 15:06
A better console API for node.js, with support for all data types and pretty-printing using shell color codes
(function() {
let _std_out = '';
let _std_err = '';
/*
* HELPERS
@CodeBrauer
CodeBrauer / composer-stats.sh
Last active February 17, 2022 13:51
prints how ofter you required which package (tested on mac with zsh)
history | grep "composer require" | cut -d " " -f 7- | grep -v "grep" | sort | uniq -c | sort -r
@Kobold
Kobold / xkcd-worth-the-time.ipynb
Last active September 12, 2023 12:40
A Jupyter notebook to explore variations of xkcd's "Is it worth the time?" comic.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Rhagnur
Rhagnur / rustServerScript.sh
Created January 8, 2016 00:00
Angepasstes Skript um Rust Server auf Linux zum laufen zu bekommen
#!/bin/bash
#command to manually start if you want to close this script (do it in screen)
#xvfb-run --auto-servernum --server-args='-screen 0 640x480x24:32' wine RustDedicated.exe -batchmode +rcon.ip 0.0.0.0 +rcon.port "48000" +rcon.password killer +server.hostname "-LINUX RUST-US-Pro Admins-NO WIPE-NEWBS WELCOM-" +server.port "28015" +server.identity "nfo_rust_server1" +server.maxplayers "2000"
#####################################################################################
# Linux script for Rust server installing. #
# Can also be used to update Rust server and steamcmd. #
# Starts a rust server at the end. #
# #
# If you use a sudoers file please execute this command first to get root access: #
# sudo -s #
@joseluisq
joseluisq / 1my-material-theme.md
Last active September 29, 2017 07:16
My Custom Material Theme for Mac iTerm 2
@mjleino
mjleino / Default (OSX).sublime-keymap
Last active January 31, 2019 20:50
Banish non-breaking spaces from Sublime Text
// Preferencs -> Key Bindings – User
[
{
"keys": ["alt+space"],
"command": "insert",
"args": { "characters": " "}
}
]
@xinan
xinan / material-theme.itermcolors
Created August 1, 2015 16:18
Material Theme iTerm2 Port
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Blue Component</key>
<real>0.25882352941176467</real>
<key>Green Component</key>
<real>0.21176470588235294</real>