Skip to content

Instantly share code, notes, and snippets.

View t04glovern's full-sized avatar
🎯
Watching Speed-runs while i code

Nathan Glover t04glovern

🎯
Watching Speed-runs while i code
View GitHub Profile
@t04glovern
t04glovern / snakes-and-ladders.py
Last active September 22, 2020 08:29
Python implementation of Snakes and Ladders
import random
# Snakes and Ladders dictionary
SaLdic = {6: 17,
14: 3,
20: 15,
24: 26,
30: 44,
39: 33,
49: 62,

Keybase proof

I hereby claim:

  • I am t04glovern on github.
  • I am nathanglover (https://keybase.io/nathanglover) on keybase.
  • I have a public key whose fingerprint is D64A 1F5A 05BD 8D11 DF51 AB91 0983 1DFD 1F77 86AE

To claim this, I am signing this object:

@t04glovern
t04glovern / GPSController.cs
Created April 30, 2017 12:55
Unity3D GPS Connector script
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GPSController : MonoBehaviour {
public LocationInfo currentGPSInfo;
public float updateRate = 3f;
public bool debugging = true;
@t04glovern
t04glovern / README.md
Created November 15, 2018 14:07
Elasticsearch / Kibana 6.5.0

Elasticsearch / Kibana 6.5.0

Up

docker-compose -f ./docker-compose.yml up -d

Down

docker-compose -f ./docker-compose.yml down -v

@t04glovern
t04glovern / alexa-random-quote.json
Created November 28, 2018 13:59
alexa-random-quote.json
{
"interactionModel": {
"languageModel": {
"invocationName": "random quote generator",
"intents": [
{
"name": "AMAZON.CancelIntent",
"samples": []
},
{
@t04glovern
t04glovern / animals.json
Created November 29, 2018 16:02
animals.json
[{
"adopted": true,
"id": "3063wmAH4UtML5RrF1sK",
"location": "St James, Western Australia",
"description": "I'm a Chatty Catty and I'd love to share my meows with someone special",
"name": "Paul",
"type": "cat",
"attributes": [
"desexed",
"vaccinated",
@t04glovern
t04glovern / getUserTimezone.js
Created December 10, 2018 14:21
getUserTimezone
function getUserTimezone(event, callback) {
if (event.context.System.apiAccessToken) {
// Invoke the entitlement API to load timezone
const options = {
host: 'api.amazonalexa.com',
path: '/v2/devices/' + event.context.System.device.deviceId + '/settings/System.timeZone',
method: 'GET',
timeout: 1000,
headers: {
'Content-Type': 'application/json',
@t04glovern
t04glovern / route53.yaml
Created June 9, 2019 12:38
IAM User - cloudformation - route53
AWSTemplateFormatVersion: '2010-09-09'
Parameters:
Password:
NoEcho: 'true'
Type: String
Description: New account password
MinLength: '1'
MaxLength: '41'
ConstraintDescription: the password must be between 1 and 41 characters
@t04glovern
t04glovern / accessToken.sh
Last active June 9, 2019 12:48
IAM User - cloudformation - route53 - GetAccess
#!/bin/sh
# Wait for stack to finish creating
aws cloudformation wait stack-create-complete --stack-name iam-route53-user
# Get AccessKey to variable
ACCESS_KEY=$(aws cloudformation describe-stacks --stack-name iam-route53-user \
--query 'Stacks[0].Outputs[?OutputKey==`AccessKey`].OutputValue' \
--output text)
@t04glovern
t04glovern / ssrf.js
Last active July 16, 2019 07:42
ssrf.js
//////////////////////////////////////////
// SSRF Demo App
// Node.js Application Vulnerable to SSRF
// Written by Seth Art <sethsec@gmail.com>
// MIT Licensed
//////////////////////////////////////////
var http = require('http');
var needle = require('needle');
var express = require('express');