Skip to content

Instantly share code, notes, and snippets.

View selfup's full-sized avatar
💻
doing the most

Regis Boudinot selfup

💻
doing the most
View GitHub Profile
@selfup
selfup / 00_install_go.md
Last active February 12, 2020 21:55
Install Go Linux

⚠️

Please read aa_install_go_linux.sh prior to running this

curl \
https://gist.githubusercontent.com/selfup/c4acad07c59d2636e7b55b153694a845/raw/45081fd0fa8cca546f908c429514d59139fe42e9/install_go_linux.sh \
| bash

ssh -J user@machineB user@machineA

From man ssh:

-J [user@]host[:port] Connect to the target host by first making a ssh connection to the jump host and then establishing a TCP forwarding to the ultimate destination from there. Multiple jump hops may be specified separated by comma characters. This is a shortcut to specify a ProxyJump configuration directive.

Kazam Screencaster Keyboard Shortcuts

  1. SUPER + CTRL + Q – Quit
  2. SUPER + CTRL + W – Show/Hide main window
  3. SUPER + CTRL + R – Start Recording
  4. SUPER + CTRL + F – Finish Recording
require 'json'
require 'pry'
class PersonModel
attr_reader :fn, :ln, :age, :uid
def initialize(uid, fn, ln, age)
@uid = uid
@fn = fn
@ln = ln
#!/bin/env/bash
set -e
echo 'hello from shell script!'
@selfup
selfup / .a_strstr
Last active April 14, 2019 04:02
Parse In Many Langs
Read the README!
:)
git branch \
| grep -v '* master' \
| grep UPT \
| elixir -e 'IO.read(:all) |> String.trim("\n") |> fn args -> "git branch -d #{args}" end.() |> to_charlist |> :os.cmd |> IO.puts'
require 'json'
non_rejected = []
rejected = []
macs = []
results = {
:rejected_login_count => 0,
:rejected_mac_addrs => [],
:common_dates => [],
set -e
echo 'main.go' | entr -sr \
'docker stop $(docker ps -aq) && docker-compose up --build'

i3 config

exec --no-startup-id compton -b

.config/compton.conf