Skip to content

Instantly share code, notes, and snippets.

View Amarlanda's full-sized avatar
💭
busy at the moment, please email AL@AmarLanda.com.

Amar Landa Amarlanda

💭
busy at the moment, please email AL@AmarLanda.com.
View GitHub Profile
@Amarlanda
Amarlanda / file1.txt
Created May 4, 2017 02:16
the description for this gists
String file contents
@Amarlanda
Amarlanda / file1.txt
Created May 4, 2017 02:29
the description for this gists
String file contents
@Amarlanda
Amarlanda / file1.txt
Created May 4, 2017 02:30
the description for this gists
String file contents

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@Amarlanda
Amarlanda / tmux.md
Created February 10, 2019 00:33 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

@Amarlanda
Amarlanda / gist:0255b3cb3b3371a09cc90cc09e7aa505
Created March 6, 2019 13:42 — forked from chrissimpkins/gist:5bf5686bae86b8129bee
Atom Editor Cheat Sheet (Sweetmeat)

Use these rapid keyboard shortcuts to control the GitHub Atom text editor on Mac OSX.

Key to the Keys

  • ⌘ : Command key
  • ⌃ : Control key
  • ⌫ : Delete key
  • ← : Left arrow key
  • → : Right arrow key
  • ↑ : Up arrow key
@Amarlanda
Amarlanda / pythondoneright.md
Created December 11, 2021 14:16 — forked from MuhsinFatih/fix-macos-python.md
How to recover from messed up python installation on mac, and never have to mess with apple's shitty python confusion factory

I am assuming you are here because like me, you installed a bazillion different python interpreters on mac and the whole thing is a spagetti. Today, I finally fixed my python installation. Whatever I install for python2 or python3 using pip JUST.WORKS.. My god! finally.

What the hell?

Here is what I had messed up, which you also probably did:

  • I had too many different python interpreters
  • Too many different symlinks which I lost track of
  • almost no package I installed with pip worked without a headache
  • any attempt to fix using online resources made it worse.

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@Amarlanda
Amarlanda / fl
Created April 4, 2022 11:31 — forked from elentok/fl
Open forklift from terminal
#!/bin/bash
# Open current directory in forklift
echo -n $PWD | pbcopy
(cat<<EOF
tell application "Forklift"
activate
tell application "System Events"
@Amarlanda
Amarlanda / kubectl.md
Created April 4, 2022 12:29 — forked from so0k/kubectl.md
Playing with kubectl output

Kubectl output options

Let's look at some basic kubectl output options.

Our intention is to list nodes (with their AWS InstanceId) and Pods (sorted by node).

We can start with:

kubectl get no