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
package main
import (
"fmt"
"math/rand"
"os"
"strconv"
"sync"
)
@selfup
selfup / win42.rs
Last active August 13, 2019 03:21
use std::fs;
use walkdir::WalkDir;
fn main() {
let mut big_files = vec![];
let mut file_errs = vec![];
for entry in WalkDir::new("C:/Users") {
match &entry {
Ok(entry) => {
package main
import (
"flag"
"strings"
"github.com/selfup/gosh"
)
func main() {
package main
import (
"fmt"
"log"
"os"
"os/exec"
"path/filepath"
"time"
)
package main
import (
"os"
"path/filepath"
"strconv"
)
func main() {
var dir string
@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!'