I hereby claim:
- I am cjbrigato on github.
- I am cjbrigato (https://keybase.io/cjbrigato) on keybase.
- I have a public key ASAyRm-syalvxdw4VjDlE7FF2k4-sb23A1d_YZEV__suQgo
To claim this, I am signing this object:
{ | |
"version": "1.0.18.0", | |
"url": "https://github.com/M2Team/NanaRun/releases/download/1.0.18.0/NanaRun_1.0_Preview2_1.0.18.0.zip", | |
"extract_dir": "x64", | |
"bin": [ [ "MinSudo.exe", "minsudo" ] ] | |
} |
#!/bin/bash | |
set -e | |
. <(base64 -d <<< X19fX19fXygpeyA6OyB9O18oKXsgOjsgfQ==) | |
_______ PREFLIGH UTILS _______________________________________________________________ | |
NOW="$(date +%s)" | |
: ${STATES_DIR:=/tmp/spawn_states_$NOW} | |
mkdir -p "$STATES_DIR" | |
trap "rm -rf $STATES_DIR" EXIT |
I hereby claim:
To claim this, I am signing this object:
################################## | |
### SCROLL DOWN FOR AN EXAMPLE ### | |
################################## | |
module Enumerable | |
# your each_with_position method | |
def each_pos &block | |
EachWithPosition.each(self, &block) | |
end | |
end |
//To fetch a branch, you simply need to: | |
git fetch origin | |
//This will fetch all of the remote branches for you. With the remote branches | |
//in hand, you now need to check out the branch you are interested in, giving | |
//you a local working copy: | |
git checkout -b test origin/test |
A little lookup for commands I use frequently
git commit -a -m "My commit"
git add .
Let's look at an example of how to launch a Kubernetes cluster from scratch on DigitalOcean, including kubeadm, an Nginx Ingress controller, and Letsencrypt certificates.
We'll be creating a four-node cluster (k8s-master, k8s-000...k8s-002), load balancer, and ssl certificates.
defines.h: | |
// Force a functon to be copied&exec from RAM. Use sparingly | |
#define RAMFUNC __attribute((long_call, section(".ramfunc"))) | |
ldscript: | |
The magic : | |
[...] memory from ldscript.. [...] | |
MEMORY |
// nestable void in -> void out | |
void* *(*any_to_byte)(void * a){ | |
byte_t a_asbyte = *((uint8_t*)a); | |
return a_asbyte; | |
} | |
//total transtype | |
typedef *(*any_to_byte)(void *) transtype; | |
typedef void (*morpheusBullsh_t)(); | |
morpheusBullsh_t follow(void* ra) { | |
uint8_t do = 0; | |
byte_t raBits = *((uint8_t*)ra); | |
for (uint8_t i = sizeof(*((uint8_t*)ra)) * 8; i > 0; i--) { | |
do = (raBits & 1); | |
raBits >>= 1; | |
} | |
if((*(char *)& 0x4321) != 0x21 ) { |