Skip to content

Instantly share code, notes, and snippets.

View stormasm's full-sized avatar
πŸ’­
nushell core team member

Michael Angerman stormasm

πŸ’­
nushell core team member
  • arcadian group
  • corvallis, oregon
View GitHub Profile
@stormasm
stormasm / linux.sh
Created January 10, 2017 00:26 — forked from marcan/linux.sh
Linux kernel initialization, translated to bash
#!/boot/bzImage
# Linux kernel userspace initialization code, translated to bash
# (Minus floppy disk handling, because seriously, it's 2017.)
# Not 100% accurate, but gives you a good idea of how kernel init works
# GPLv2, Copyright 2017 Hector Martin <marcan@marcan.st>
# Based on Linux 4.10-rc2.
# Note: pretend chroot is a builtin and affects the current process
# Note: kernel actually uses major/minor device numbers instead of device name
@stormasm
stormasm / react.md
Created October 8, 2017 16:50 — forked from monicao/react.md
React Lifecycle Cheatsheet

React Component Lifecycle

  • getInitialState
  • getDefaultProps
  • componentWillMount
  • componentDidMount
  • shouldComponentUpdate (Update only)
  • componentWillUpdate (Update only)
  • componentWillReceiveProps (Update only)
  • render

Effective Engineer - Notes

What's an Effective Engineer?

  • They are the people who get things done. Effective Engineers produce results.

Adopt the Right Mindsets

@stormasm
stormasm / kubernetes_add_service_account_kubeconfig.sh
Created December 5, 2018 01:56 — forked from innovia/kubernetes_add_service_account_kubeconfig.sh
Create a service account and generate a kubeconfig file for it - this will also set the default namespace for the user
#!/bin/bash
set -e
set -o pipefail
# Add user to k8s using service account, no RBAC (must create RBAC after this script)
if [[ -z "$1" ]] || [[ -z "$2" ]]; then
echo "usage: $0 <service_account_name> <namespace>"
exit 1
fi

MicroService Proxy Gateway Solutions

Kong, Traefik, Caddy, Linkerd, Fabio, Vulcand, and Netflix Zuul seem to be the most common in microservice proxy/gateway solutions. Kubernetes Ingress is often a simple Ngnix, which is difficult to separate the popularity from other things.

Github Star Trend:

Github Star History for Kong vs traefik vs fabio vs caddy vs Zuul

This is just a picture of this link from March 2, 2019

Originally, I had included some other solution

@stormasm
stormasm / alexa.js
Created September 28, 2019 17:20 — forked from chilts/alexa.js
Getting the Alexa top 1 million sites directly from the server, unzipping it, parsing the csv and getting each line as an array.
var request = require('request');
var unzip = require('unzip');
var csv2 = require('csv2');
request.get('http://s3.amazonaws.com/alexa-static/top-1m.csv.zip')
.pipe(unzip.Parse())
.on('entry', function (entry) {
entry.pipe(csv2()).on('data', console.log);
})
;
@stormasm
stormasm / terminating_write.rs
Created January 8, 2020 16:12 — forked from trinity-1686a/terminating_write.rs
idea for a boxable terminating writer
#[doc(hidden)]
pub struct AntiCallToken(());
/// Trait used to indicate when no more write need to be done on a writer
pub trait TerminatingWrite: Write {
/// Indicate that the writer will no longer be used. Internally call terminate_ref.
fn terminate(mut self) -> io::Result<()> where Self: Sized {
self.terminate_ref(AntiCallToken(()))
}
@stormasm
stormasm / nu-vs-eq.md
Created January 14, 2022 17:47
engine-q-scripts
message e-q resolution
command [alias] exists but parameter [equals] is missing in eq equals is not a parameter in engine-q
command [alias] exists but parameter [rest] is missing in eq reset renamed to initial_value
command [all?] exists but parameter [condition] is missing in eq condition renamed to predicate
command [ansi gradient] exists but parameter [rest] is missing in eq rest renamed to column path (* space in param name)
command [ansi strip] exists but parameter [rest] is missing in eq rest renamed to column path (* space in p
@stormasm
stormasm / desktop.nu
Created February 20, 2022 16:56 — forked from fdncred/defs.nu
engine-q config
# let config = {
# filesize_metric: $false
# table_mode: rounded
# use_ls_colors: $true
# }
let-env HOME = "C:\Users\us991808"
let-env LANG = "en_US.UTF-8"
let-env LESS = "-FRX"
let-env PAGER = "less"
@stormasm
stormasm / gist:9115d76b0b5dbff86514c7c07815d7d1
Created April 20, 2022 15:45 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue: