Skip to content

Instantly share code, notes, and snippets.

View include's full-sized avatar
👽
Free Jaffa

Francisco Cabrita include

👽
Free Jaffa
View GitHub Profile
@include
include / k3s-cluster.md
Created February 1, 2022 00:23 — forked from kopwei/k3s-cluster.md
K3s and Rancher on Raspberry Pi 4 Cluster

Deploy K3s and Rancher on Raspberry Pi 4 cluster

Today I tried to setup a small Kubernetes cluster on top of 3 Raspberry Pi 4 (4GB Memory). Here is the steps to install the cluster.

IMG_3817

Preparation

I have 3 Raspberry Pi 4 stacked with PoE headers and connected to a PoE switch at home. The are connected to Internet through a home router. All Pis are equipped with a 64GB Samsung SDXC card flushed with Ubuntu 20.04 image.

AWSTemplateFormatVersion: 2010-09-09
Parameters:
stackID:
Type: String
AllowedPattern: '^[a-zA-Z0-9-]+$'
DomainName:
Type: String
AllowedPattern: '.*'
route53HostedZoneId:
Type: String
@include
include / index.ts
Created July 9, 2020 00:36 — forked from mipearson/index.ts
Demonstration of using AWS CDK
/*
I was curious as to whether it was possible to make resources
created using CDK constructs work with raw CloudFormation
resources and vice versa.
This aws-cdk app demonstrates a VPC and an ELB that belongs to it
in different, dependant stacks, leveraging CFN outputs / imports,
and leveraging CDK's method of passing information from one
stack to another.
*/
@include
include / 00_destructuring.md
Created May 28, 2020 00:48 — forked from john2x/00_destructuring.md
Clojure Destructuring Tutorial and Cheat Sheet

Clojure Destructuring Tutorial and Cheat Sheet

(Related blog post)

Simply put, destructuring in Clojure is a way extract values from a datastructure and bind them to symbols, without having to explicitly traverse the datstructure. It allows for elegant and concise Clojure code.

Vectors and Sequences

React Native + macOS + Clojurescript

image

Project Catalyst

Since the recent release of Catalina, macOS has shipped with the ability to allow iOS/iPAD apps to run on macOS without any modification via a featureset known as Project Catalyst.

This is exciting, as writing React Native + Clojurescript apps as a target for the desktop is much more compelling than a pure Electron app (imo).

./AaronO/go-git-http/.git
./ActiveState/tail/.git
./adriaandejonge/helloworld/.git
./ajhager/engi/.git
./ajstarks/svgo/.git
./andelf/go-curl/.git
./apcera/nats/.git
./armon/circbuf/.git
./armon/consul-api/.git
./armon/consul-kv/.git
@include
include / Jenkinsfile
Created September 2, 2019 23:06 — forked from merikan/Jenkinsfile
Some Jenkinsfile examples
Some Jenkinsfile examples
@include
include / install-docker.md
Created August 16, 2019 12:18 — forked from npearce/install-docker.md
Amazon Linux 2 - install docker & docker-compose using 'sudo amazon-linux-extras' command
@include
include / goresources.md
Created July 20, 2019 11:37 — forked from flowchartsman/start.md
Go Learning Resources For the Beginner

Reading

  1. Go through the tour at https://tour.golang.org/welcome/1
  2. Promptly abandon all of those plans you have to use channels everywhere
  3. Read the language spec once over: https://golang.org/ref/spec
  4. https://dave.cheney.net/2017/04/26/understand-go-pointers-in-less-than-800-words-or-your-money-back
  5. Read Effective Go: https://golang.org/doc/effective_go.html
  6. Read CodeReviewComments (essentially a semi-official style guide) https://github.com/golang/go/wiki/CodeReviewComments
  7. http://devs.cloudimmunity.com/gotchas-and-common-mistakes-in-go-golang/
  8. https://coder.today/tech/2018-11-10_profiling-your-golang-app-in-3-steps/ This is a very effective tool in your toolbelt, and you will use it A LOT.
  9. And a smattering of other good articles:
@include
include / .gitconfig
Created June 13, 2019 22:57 — forked from HarshadRanganathan/.gitconfig
.gitconfig aliases
[alias]
##
# One letter alias for our most frequent commands.
#
# Guidelines: these aliases do not use options, because we want
# these aliases to be easy to compose and use in many ways.
##
a = add