Skip to content

Instantly share code, notes, and snippets.

View KernelPanicAUS's full-sized avatar
🎯
Focusing

Thomas Khalil KernelPanicAUS

🎯
Focusing
View GitHub Profile
@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"
)

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 / 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:"
}

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 / OverEncrypt.md
Created December 1, 2016 10:52 — forked from mapmeld/OverEncrypt.md
OverEncrypt - paranoid HTTPS

OverEncrypt

This is a guide that I wrote to improve the default security of my website https://fortran.io , which has a certificate from LetsEncrypt. I'm choosing to improve HTTPS security and transparency without consideration for legacy browser support.

WARNING: if you mess up settings, lose your certificates, or decide to no longer maintain HTTPS certs, these steps can and will make your domain inaccessible.

I would recommend these steps only if you have a specific need for information security, privacy, and trust with your users, and/or maintain a separate secure.example.com domain which won't mess up your main site. If you've been thinking about hosting a site on Tor, then this might be a good option, too.

The best resources that I've found for explaining these steps are https://https.cio.gov , https://certificate-transparency.org , and https://twitter.com/konklone

@KernelPanicAUS
KernelPanicAUS / GPG and git on macOS.md
Created November 25, 2016 14:07 — forked from danieleggert/GPG and git on macOS.md
How to set up git to use the GPG Suite

GPG and git on macOS

Setup

No need for homebrew or anything like that. Works with https://www.git-tower.com and the command line.

  1. Install https://gpgtools.org -- I'd suggest to do a customized install and deselect GPGMail.
  2. Create or import a key -- see below for https://keybase.io
  3. Run gpg --list-secret-keys and look for sec, use the key ID for the next step
  4. Configure git to use GPG -- replace the key with the one from gpg --list-secret-keys
@KernelPanicAUS
KernelPanicAUS / Dockerfile
Created November 10, 2016 09:06 — forked from melix/Dockerfile
Dockerfile for Groovy
################################################
# Dockerfile to run Groovy containers
# Based on Java 8 image
################################################
FROM java:8u40-jdk
MAINTAINER Cédric Champeau
# Install GVM
@KernelPanicAUS
KernelPanicAUS / README.md
Created August 28, 2016 16:17 — forked from adewes/README.md
Ebay Ads - Bot. Because who wants to write messages by hand...

To use this bot:

  • Download ads_bot.py and requirements.txt.
  • Type pip install -r requirements.txt to install the requirements.
  • Fill out the required information in the Python file.
  • Ideally, create a (free) Slack account and set up a web hook to receive notifications from the bot.
  • Run the script :)
  • Relax and be ready to answer incoming calls :D
@KernelPanicAUS
KernelPanicAUS / osx-for-hackers.sh
Created August 12, 2016 10:50 — forked from brandonb927/osx-for-hackers.sh
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned. Also, please don't email me about this script, my poor inbox...
#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
android-platform-tools android-sdk ant apachetop aria2 arp-scan asciinema autoconf automake bdw-gc boost brew-auto-update cabextract cairo check chromedriver cmake coreutils cscope curl dirmngr eigen elinks ffmpeg figlet flac fontconfig fpp freetype fribidi gawk gcc gdb gdbm gettext git glib gmp gnupg2 gnutls gpg-agent gpgme gradle graphviz hugo iftop ilmbase imagemagick io isl jpeg jq json-c lame leptonica libassuan libestr libevent libffi libgcrypt libgpg-error libksba libmpc libogg libotr libpng libsndfile libsoxr libstrophe libtasn1 libtiff libtool libusb libusb-compat libvorbis libyaml libzip log4cplus macvim makedepend mas maven mpfr mtr mutt ncdu netcat nettle ngrep nmap numpy nvm oniguruma opencv openexr openssl ossp-uuid pbzip2 pcre perl phantomjs pinentry pinentry-mac pixman pkg-config profanity pth pulseaudio python python3 ranger rbenv rbenv-gem-rehash readline rlwrap ruby ruby-build s3cmd sbt shellcheck sqlite terminal-notifier tesseract thefuck tldr tmux tokyo-cabinet translate-shell tree utf8pr