Skip to content

Instantly share code, notes, and snippets.

View ayinlaaji's full-sized avatar
🧐
Observing

Àyìnlá Ọmọ́tọ́ṣọ̀ Abdulsalam ayinlaaji

🧐
Observing
View GitHub Profile

Screen Cheatsheet / Quick Reference (Pocket Friendly)

Escape Key

All screen commands are prefixed by an escape key, by default Ctrl-a (that's Control-a, sometimes written ^a). To send a literal Ctrl-a to the programs in screen, use Ctrl-a a. This is useful when when working with screen within screen. For example Ctrl-a a n will move screen to a new window on the screen within screen.

Description Command
Basic
Start a new session with session name screen -S
@ayinlaaji
ayinlaaji / screen.md
Last active September 13, 2019 07:27
GNU screen

resize

C-a :resize 50%

rename tab

C-a A

list screens

@ayinlaaji
ayinlaaji / README.md
Created July 8, 2019 11:10 — forked from miguelmota/README.md
GNU screen reference cheat sheet

GNU screen quick reference

http://aperiodic.net/screen/quick_reference

How to Navigate, copy & paste content?

within screen sessions: Cntl a + [ : To start navigation using up/down arrow Press Space bar: To select content starting position

@ayinlaaji
ayinlaaji / .screenrc-with_solarized
Created July 8, 2019 10:43 — forked from qva5on3/.screenrc-with_solarized
Enables GNU Screen for Solarized colors.
# terminfo and termcap for nice 256 color terminal
# allow bold colors - necessary for some reason
attrcolor b ".I"
# tell screen how to set colors. AB = background, AF=foreground
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
# erase background with current bg color
defbce "on"
@ayinlaaji
ayinlaaji / k8s.md
Last active June 8, 2019 18:45
Kubernetes snippets

ISTIO

Installation

for i in install/kubernetes/helm/istio-init/files/crd*yaml; do kubectl apply -f $i; done

Deletion

for i in install/kubernetes/helm/istio-init/files/crd*yaml; do kubectl delete -f $i; done

@ayinlaaji
ayinlaaji / Docker shell commands.sh
Created May 20, 2019 00:03 — forked from bahmutov/Docker shell commands.sh
A personal cheat sheet for running local Node project in a Docker container
# See list of docker virtual machines on the local box
$ docker-machine ls
NAME ACTIVE URL STATE URL SWARM DOCKER ERRORS
default * virtualbox Running tcp://192.168.99.100:2376 v1.9.1
# Note the host URL 192.168.99.100 - it will be used later!
# Build an image from current folder under given image name
$ docker build -t gleb/demo-app .
@ayinlaaji
ayinlaaji / adv2notes.md
Created April 3, 2019 15:20 — forked from nicholasknight/adv2notes.md
Kinesis Advantage 2 notes

(NOTE: Current and future versions of this and any other Advantage 2-related things I post will be at https://github.com/nicholasknight/adv2keyboard)

I received my Advantage 2 today. There's no full manual yet, even though keyboards are apparently arriving (hint, hint, Kinesis). The quick start guide leaves out the "power user mode", and there are some other quirks.

Update: A manual has been posted at http://www.kinesis-ergo.com/advantage2-resources/

It includes a dictionary for the key maps, but I know it leaves at least one possible key undocumented: it does not list f14, but I have successfully mapped my scrollock to f14 regardless.

It also mentions a firmware version (1.0.18) that doesn't seem to be available yet, with a new feature (status report playback speed).

@ayinlaaji
ayinlaaji / snips.md
Last active May 3, 2020 17:54
snippets

Snips

  • Find and rename files with regexp

    find . -type f -name '*.stories.tsx' -execdir  rename  -v 's/(.*)\.stories\.tsx$/component\.stories\.tsx/' {} \;;
    
  • Redirect port:

    sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8000
    
@ayinlaaji
ayinlaaji / data-feeds.md
Last active June 24, 2018 17:39
data-feeds