Skip to content

Instantly share code, notes, and snippets.

@chrislewisdev
chrislewisdev / .vimrc
Created Jun 5, 2021
My personal .vimrc
View .vimrc
:color torte
:set number
:set relativenumber
:set tabstop=4
:set shiftwidth=4
:set expandtab
:noremap j k
@chrislewisdev
chrislewisdev / Program.cs
Created Dec 17, 2018
SNS Load Testing Code
View Program.cs
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
DZ60 Split-Space Layout
View dz60.json
{"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 Dec 18, 2017
DZ60 Split-Space Layout
View dz60v5.json
{
"version": 1,
"keyboard": {
"keys": [
{
"id": 0,
"legend": "~\n`",
"state": {
"x": 0,
"y": 0,
View .travis.yml
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:
View terraform-example.tf
resource "aws_s3_bucket" "website_bucket" {
bucket = "my_bucket_name"
acl = "public-read"
policy = "${file("my-policy-file.json")}"
}
View terraform.tf
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"
}
View greetings-multiple.js
React.createElement('div', null,
React.createElement(Greetings, { name : 'Chris' }),
React.createElement(Greetings, { name : 'Ming' }),
React.createElement(Greetings, { name : 'Joe' })
)
View greetings-no-class.js
var Greetings = React.createClass(
{
render: function ()
{
return React.createElement('h1', null, 'Greetings, ' + this.props.name + '!');
}
});