Skip to content

Instantly share code, notes, and snippets.

Avatar

jamieson99

View GitHub Profile
@jamieson99
jamieson99 / index.js
Created Jan 7, 2019
Express Hello World (quick start)
View index.js
/* index.js
* Express Hello World
* first:
* npm i express
* node index.js
*/
const express = require('express');
const app = express();
@jamieson99
jamieson99 / darkhn.css
Created Oct 8, 2018
HN dark stylesheet (use with stylus on chrome or ff)
View darkhn.css
/* jamiesonbecker's HN styles
* this is a dark theme.
* license: public domain (do what you will)
*/
.comment {
/* I like narrow comment lines */
max-width: 20rem;
}
table#hnmain{
View colors.sh
export ESC_CHAR="$(echo -e "\033")"
export BLACK_TEXT="${ESC_CHAR}[30m"
export RED_TEXT="${ESC_CHAR}[31m"
export GREEN_TEXT="${ESC_CHAR}[32m"
export YELLOW_TEXT="${ESC_CHAR}[33m"
export BLUE_TEXT="${ESC_CHAR}[34m"
export PURPLE_TEXT="${ESC_CHAR}[35m"
export CYAN_TEXT="${ESC_CHAR}[36m"
export WHITE_TEXT="${ESC_CHAR}[37m"
export BLACK_BACKGROUND="${ESC_CHAR}[40m"
View aws_example.nim
# AWS Version 4 signing example
# EC2 API (DescribeRegions)
# See: http://docs.aws.amazon.com/general/latest/gr/sigv4_signing.html
# This version makes a GET request and passes the signature
# in the Authorization header.
import base64, httpclient, hmac, nimSHA2, os, times, strutils, httpcore
# ************* REQUEST VALUES *************
@jamieson99
jamieson99 / s3_endpoints.json
Created Jul 31, 2017
quick S3 region to endpoint mapping
View s3_endpoints.json
{
"us-east-2": "s3.us-east-2.amazonaws.com",
"us-east-1": "s3.amazonaws.com",
"us-west-2": "s3-us-west-2.amazonaws.com",
"ca-central-1": "s3.ca-central-1.amazonaws.com",
"ap-south-1": "s3.ap-south-1.amazonaws.com",
"ap-northeast-2": "s3.ap-northeast-2.amazonaws.com",
"ap-southeast-1": "s3-ap-southeast-1.amazonaws.com",
"ap-southeast-2": "s3-ap-southeast-2.amazonaws.com",
"ap-northeast-1": "s3-ap-northeast-1.amazonaws.com",
View keybase.md

Keybase proof

I hereby claim:

  • I am jamiesonbecker on github.
  • I am jamiesonbecker (https://keybase.io/jamiesonbecker) on keybase.
  • I have a public key whose fingerprint is 1AC9 729D F6F9 49E0 6C61 46CF 7828 2CEE 0BDE 9C19

To claim this, I am signing this object:

@jamieson99
jamieson99 / reclaimWindows10.ps1
Created Jan 8, 2017 — forked from alirobe/reclaimWindows10.ps1
"Reclaim Windows 10" turns off a bunch of unnecessary Windows 10 telemetery, removes bloatware, and privacy invasions. Review and tweak before running. Scripts for reversing are included and commented. Fork via https://github.com/Disassembler0 (different defaults)
View reclaimWindows10.ps1
##########
# Win10 Initial Setup Script
# Author: Disassembler <disassembler@dasm.cz>
# Version: 1.7, 2016-08-15
# dasm's script: https://github.com/Disassembler0/Win10-Initial-Setup-Script/
# THIS IS A PERSONALIZED VERSION
# This script leaves more MS defaults on, including MS security features.
# Tweaked based on personal preferences for @alirobe 2016-11-16 - v1.7.1
@jamieson99
jamieson99 / totp_generator_example.py
Created Oct 23, 2016
TOTP Generator Example (howto)
View totp_generator_example.py
#! /usr/bin/python
# sudo pip install otpauth first
import time
from otpauth import OtpAuth
__doc__ = """
This can be useful as an example of how to
build your own CLI google auth app.
Use your QR code reader to extract the secret
@jamieson99
jamieson99 / tweet.py
Last active Sep 5, 2016
Single tweet CLI in 8 LoC
View tweet.py
#! /usr/bin/env python
# call with (newlines respected inside quotes)
# tweet.py "my
# tweet"
# or
# echo "my tweet" | tweet.py
import tweepy
import sys
@jamieson99
jamieson99 / README.md
Created Jul 31, 2016 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications
View README.md


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.


Index: