curl \
https://gist.githubusercontent.com/selfup/c4acad07c59d2636e7b55b153694a845/raw/45081fd0fa8cca546f908c429514d59139fe42e9/install_go_linux.sh \
| bashssh -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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'json' | |
| require 'pry' | |
| class PersonModel | |
| attr_reader :fn, :ln, :age, :uid | |
| def initialize(uid, fn, ln, age) | |
| @uid = uid | |
| @fn = fn | |
| @ln = ln |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/env/bash | |
| set -e | |
| echo 'hello from shell script!' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Read the README! | |
| :) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'json' | |
| non_rejected = [] | |
| rejected = [] | |
| macs = [] | |
| results = { | |
| :rejected_login_count => 0, | |
| :rejected_mac_addrs => [], | |
| :common_dates => [], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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