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 / CSVparser.rb
Last active December 30, 2015 07:49
CSV parser in Ruby, spits out CSV record count within a time frame (3 month increments)
#!/usr/bin/env ruby
# encoding: UTF-8
require 'date'
require 'FileUtils'
require 'Benchmark'
require 'CSV'
require 'progress_bar'
class CSV
@KernelPanicAUS
KernelPanicAUS / gist:8347319
Last active January 2, 2016 18:59
Automated installer
#!/usr/bin/env bash
echo $USER &&
cd /Users/$USER/Downloads &&
echo 'Downloading Google Chrome' &&
wget https://dl.google.com/chrome/mac/stable/GGRO/googlechrome.dmg
@KernelPanicAUS
KernelPanicAUS / Rename files
Created August 11, 2015 05:54
Renames groovy files
#!/bin/bash
for FILE in $(ls | grep 'groovy'); do
CHANNEL_NAME=$(echo $FILE | cut -d '-' -f1)
mv $FILE $CHANNEL_NAME.groovy
done
#!/bin/sh
cat <<EOF > /etc/apt/sources.list.d/rabbitmq.list
deb http://www.rabbitmq.com/debian/ testing main
EOF
curl https://www.rabbitmq.com/rabbitmq-signing-key-public.asc -o /tmp/rabbitmq-signing-key-public.asc
apt-key add /tmp/rabbitmq-signing-key-public.asc
rm /tmp/rabbitmq-signing-key-public.asc
apt-get -qy update
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
@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'
@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 / 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 / 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 / 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