Skip to content

Instantly share code, notes, and snippets.

@perpetual-hydrofoil
perpetual-hydrofoil / index.js
Created January 7, 2019 17:38
Express Hello World (quick start)
/* index.js
* Express Hello World
* first:
* npm i express
* node index.js
*/
const express = require('express');
const app = express();
@perpetual-hydrofoil
perpetual-hydrofoil / darkhn.css
Created October 8, 2018 14:56
HN dark stylesheet (use with stylus on chrome or ff)
/* 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{
@perpetual-hydrofoil
perpetual-hydrofoil / colors.sh
Last active April 2, 2018 17:20
ANSI Colors
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"
@perpetual-hydrofoil
perpetual-hydrofoil / aws_example.nim
Created October 27, 2017 01:06 — forked from Varriount/aws_example.nim
Nim AWS Snippets
# 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 *************
@perpetual-hydrofoil
perpetual-hydrofoil / s3_endpoints.json
Created July 31, 2017 00:30
quick S3 region to endpoint mapping
{
"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",

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:

@perpetual-hydrofoil
perpetual-hydrofoil / reclaimWindows10.ps1
Created January 8, 2017 02:37 — 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)
##########
# 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
@perpetual-hydrofoil
perpetual-hydrofoil / totp_generator_example.py
Created October 23, 2016 15:47
TOTP Generator Example (howto)
#! /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
@perpetual-hydrofoil
perpetual-hydrofoil / tweet.py
Last active September 5, 2016 16:42
Single tweet CLI in 8 LoC
#! /usr/bin/env python
# call with (newlines respected inside quotes)
# tweet.py "my
# tweet"
# or
# echo "my tweet" | tweet.py
import tweepy
import sys
@perpetual-hydrofoil
perpetual-hydrofoil / README.md
Created July 31, 2016 20:45 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


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: