Skip to content

Instantly share code, notes, and snippets.

View jarredkenny's full-sized avatar
👋

Jarred Kenny jarredkenny

👋
View GitHub Profile
[INFO ] [2020-08-18T11:18:10Z] [00007f89df25eb40] [dns] - id=0x1afe66c9a908: Initializing default host resolver with 64 max host entries.
[INFO ] [2020-08-18T11:18:10Z] [00007f89df25eb40] [channel-bootstrap] - id=0x1afe66eff000: Initializing client bootstrap with event-loop group 0x7f89c8c22920
[DEBUG] [2020-08-18T11:18:10Z] [00007f89df25eb40] [mqtt-client] - client=0x1afe67170040: Initalizing MQTT client
[DEBUG] [2020-08-18T11:18:10Z] [00007f89df25eb40] [tls-handler] - ctx: Certificate and key have been set, setting them up now.
[DEBUG] [2020-08-18T11:18:10Z] [00007f89df25eb40] [tls-handler] - ctx: Setting ALPN list x-amzn-mqtt-ca
[DEBUG] [2020-08-18T11:18:10Z] [00007f89df25eb40] [mqtt-client] - id=0x1afe66e43000: Creating new connection
[DEBUG] [2020-08-18T11:18:10Z] [00007f89df25eb40] [mqtt-topic-tree] - tree=0x1afe66e43240: Creating new topic tree
[TRACE] [2020-08-18T11:18:10Z] [00007f89df25eb40] [mqtt-client] - id=0x1afe66e43000: Setting connection interrupted and resumed handlers
[TRACE] [2020-08-18T11:
[colors]
bg = #ff272128
fg = #ffcccccc
cur = #ff474747
sel = #ff606060
grey = #ff808080
blue = #ff6699cc
red = #fff2777a
yellow = #ffffcc66
ltgreen = #ff99cc99
@jarredkenny
jarredkenny / cloudfront-pretty-urls.js
Created July 31, 2020 14:07
Lambda@Edge function for Cloudfront Pretty URLs
/* Public domain project by Cloud Under (https://cloudunder.io).
* Repository: https://github.com/CloudUnder/lambda-edge-nice-urls
*/
const config = {
suffix: ".html",
appendToDirs: "index.html",
removeTrailingSlash: false,
}
### Keybase proof
I hereby claim:
* I am jarredkenny on github.
* I am jarredkenny (https://keybase.io/jarredkenny) on keybase.
* I have a public key ASDx92GFYUrOR1XRhz4hgImfLGxjJmFoEHTRt1W1FWfZago
To claim this, I am signing this object:
@jarredkenny
jarredkenny / component.js
Created July 30, 2015 13:36
ui-select component. Replacement for the Ember.Select view with Semantic UI integration.
import Ember from 'ember';
export default Ember.Component.extend({
/**
* Component Configuration
*/
tagName: 'div',
classNames: ['ui', 'dropdown', 'selection'],
classNameBindings: ['search', 'fluid'],
@jarredkenny
jarredkenny / CenterVertical.css
Created January 23, 2014 00:36
Vertically center any element using CSS
.element {
position: relative;
top: 50%;
transform: translateY(-50%);
}
@jarredkenny
jarredkenny / irc.go
Created January 21, 2014 14:10
A simple IRC bot written in Go.
package main
import (
"fmt"
"net/textproto"
"regexp"
)
var (
conn *textproto.Conn
@jarredkenny
jarredkenny / tabstherightway.py
Created January 1, 2012 20:01
Creating Tabed Guis - The Right Way
import wx
class Gui(wx.Frame): #create a wx frame object
def __init__ (self, parent=None, *args, **kwarg): #set initial parameters
super(Gui, self).__init__(None, -1, "Example", size = (300, 250)) #pass these paramenters to my wx.Frame object
Notebook = wx.Notebook(self) #creates a notebook which is a child of out wx.Frame
#here is where we get organised, we create a dictionary to reference each tab by name
Tab_By_Name = {
@jarredkenny
jarredkenny / tabsthewrongway.py
Created January 1, 2012 15:25
Creating Tabed Guis - The Wrong Way
import wx
class Gui(wx.Frame): #create a wx frame object
def __init__ (self, parent=None, *args, **kwarg): #set initial parameters
super(Gui, self).__init__(None, -1, "Example", size = (300, 250)) #pass these paramenters to my wx.Frame object,
Notebook = wx.Notebook(self) #creates a notebook which is a child of out wx.Frame
#here we create numorous panels as childs to the notebook
ChatPanel = wx.Panel(Notebook)