Skip to content

Instantly share code, notes, and snippets.

View KernelPanicAUS's full-sized avatar
🎯
Focusing

Thomas Khalil KernelPanicAUS

🎯
Focusing
View GitHub Profile

What I Wish I'd Known About Equity Before Joining A Unicorn

Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.

This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would

@KernelPanicAUS
KernelPanicAUS / config.json
Created March 1, 2017 11:59 — forked from harperreed/config.json
Slack messages from CRON
{
"token":"xxxxxxxxxx",
"subdomain":"subdomain",
"username":"Eventbot",
"text":"<!everyone> here is an important link: <https://modest.com/|modest.com>",
"channel":"#general",
"icon": ":ghost:"
}

Sends Cloudwatch Event notifications to Slack

What is this?

AWS have released a new featue called CloudWatch Events, which lets you configure events fired by cloudwatch and direct them to SNS, Lambda functions, etc. Here's the blog post

Motivational image:

Here's the motivational image:

Slack image

@KernelPanicAUS
KernelPanicAUS / opsworks.go
Created April 27, 2018 16:25
List opsworks stacks in go
package main
import (
"fmt"
"os"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/opsworks"
)
@KernelPanicAUS
KernelPanicAUS / unmarshal.go
Created April 28, 2018 07:27
Unmarshal json into struct
package main
import (
"encoding/json"
"fmt"
"time"
)
type SnsMessage struct {
Type string `json:type`
@KernelPanicAUS
KernelPanicAUS / config.md
Created September 7, 2018 16:45 — forked from 0xDE57/config.md
Firefox about:config privacy settings

ABOUT

about:config settings to harden the Firefox browser. Privacy and performance enhancements.
To change these settings type 'about:config' in the url bar. Then search the setting you would like to change and modify the value. Some settings may break certain websites from functioning and rendering normally. Some settings may also make firefox unstable.

I am not liable for any damages/loss of data.

Not all these changes are necessary and will be dependent upon your usage and hardware. Do some research on settings if you don't understand what they do. These settings are best combined with your standard privacy extensions (HTTPS Everywhere, NoScript/Request Policy, uBlock origin, agent spoofing, Privacy Badger etc), and all plugins set to "Ask To Activate".

Keybase proof

I hereby claim:

  • I am kernelpanicaus on github.
  • I am bitshifta (https://keybase.io/bitshifta) on keybase.
  • I have a public key ASCawjzDh4ugbnLVdz4UIKvS8vyqs87Ra8gjLBc47KVRvwo

To claim this, I am signing this object:

@KernelPanicAUS
KernelPanicAUS / docker-bash-completion.md
Created November 29, 2018 07:35 — forked from rkuzsma/docker-bash-completion.md
How to configure Bash Completion on Mac for Docker and Docker-Compose

How to configure Bash Completion on Mac for Docker and Docker-Compose

Run:

brew install bash-completion

Add the following lines to your ~/.bash_profile:

 if [ -f $(brew --prefix)/etc/bash_completion ]; then
@KernelPanicAUS
KernelPanicAUS / main.go
Created December 23, 2018 15:52
Merging JSON structures in go without explicit struct mappings
package main
import (
"encoding/json"
"fmt"
)
func main() {
inputJSON := `{"environment": "production", "runbook":"http://url","message":"there is a problem"}`
out := map[string]interface{}{}
@KernelPanicAUS
KernelPanicAUS / vpc.yaml
Created July 30, 2019 09:55 — forked from gmr/vpc.yaml
Demonstration CloudFormation YAML template for creating a VPC
AWSTemplateFormatVersion: '2010-09-09'
Description: VPC Network Stack
Metadata: {}
Mappings: {}
Conditions: {}
Outputs: {}
Parameters:
CidrBlock:
AllowedPattern: '((\d{1,3})\.){3}\d{1,3}/\d{1,2}'
Default: 10.0.0.0/16