Skip to content

Instantly share code, notes, and snippets.

View chrislewisdev's full-sized avatar

Chris Lewis-Hou chrislewisdev

View GitHub Profile
@chrislewisdev
chrislewisdev / .vimrc
Created June 5, 2021 07:21
My personal .vimrc
:color torte
:set number
:set relativenumber
:set tabstop=4
:set shiftwidth=4
:set expandtab
:noremap j k
@chrislewisdev
chrislewisdev / Program.cs
Created December 17, 2018 00:28
SNS Load Testing Code
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Amazon.SimpleNotificationService;
using Newtonsoft.Json;
namespace sns_load_test
{
class Program
@chrislewisdev
chrislewisdev / dz60.json
Last active May 14, 2020 21:26
DZ60 Split-Space Layout
{"version":1,"keyboard":{"keys":[{"id":0,"legend":"~\n`","state":{"x":0,"y":0,"r":0,"rx":0,"ry":0,"w":1,"h":1,"x2":0,"y2":0,"w2":0,"h2":0},"row":0,"col":0,"keycodes":[{"id":"KC_GESC","fields":[]},{"id":"KC_GRV","fields":[]},{"id":"KC_GRV","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]}]},{"id":1,"legend":"!\n1","state":{"x":1,"y":0,"r":0,"rx":0,"ry":0,"w":1,"h":1,"x2":0,"y2":0,"w2":0,"h2":0},"row":0,"col":1,"keycodes":[{"id":"KC_1","fields":[]},{"id":"KC_F1","fields":[]},{"id":"KC_F1","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id"
@chrislewisdev
chrislewisdev / dz60v5.json
Last active December 18, 2017 09:25
DZ60 Split-Space Layout
{
"version": 1,
"keyboard": {
"keys": [
{
"id": 0,
"legend": "~\n`",
"state": {
"x": 0,
"y": 0,
notifications:
email: false
#Install a Terraform executable locally
before_install:
- wget https://releases.hashicorp.com/terraform/0.10.6/terraform_0.10.6_linux_amd64.zip
- unzip terraform_0.10.6_linux_amd64.zip
#These two steps will effectively validate our terraform and output a list of any changes to be made to our infrastructure
script:
resource "aws_s3_bucket" "website_bucket" {
bucket = "my_bucket_name"
acl = "public-read"
policy = "${file("my-policy-file.json")}"
}
provider "aws" {
region = "ap-southeast-2"
}
variable "website_name" {
type = "string"
description = "Name of the S3 bucket and website to create, e.g. 'hello-world.com'"
default = "hello-world.com"
}
React.createElement('div', null,
React.createElement(Greetings, { name : 'Chris' }),
React.createElement(Greetings, { name : 'Ming' }),
React.createElement(Greetings, { name : 'Joe' })
)
var Greetings = React.createClass(
{
render: function ()
{
return React.createElement('h1', null, 'Greetings, ' + this.props.name + '!');
}
});