Skip to content

Instantly share code, notes, and snippets.

View HunterLarco's full-sized avatar
🚀
making all the things

Hunter Larco HunterLarco

🚀
making all the things
View GitHub Profile
{
"extends": "@tsconfig/node10/tsconfig.json",
"compilerOptions": {
"allowJs": true,
"allowSyntheticDefaultImports": true,
"alwaysStrict": true,
"checkJs": true,
"forceConsistentCasingInFileNames": true,
"moduleResolution": "node",
{
"compilerOptions": {
"allowJs": true,
"allowSyntheticDefaultImports": true,
"alwaysStrict": true,
"baseUrl": ".",
"forceConsistentCasingInFileNames": true,
"lib": ["es2018"],
"module": "commonjs",
"moduleResolution": "node",
const b64toBlob = (b64Data, contentType='', sliceSize=512) => {
const byteCharacters = atob(b64Data);
const byteArrays = [];
for (let offset = 0; offset < byteCharacters.length; offset += sliceSize) {
const slice = byteCharacters.slice(offset, offset + sliceSize);
const byteNumbers = new Array(slice.length);
for (let i = 0; i < slice.length; i++) {
byteNumbers[i] = slice.charCodeAt(i);
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
# Remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# Change split pane commands to more reasonable symbols
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
# Use vim key-bindings for buffer navigation
{
"BTTPresetName" : "vas3k v2",
"BTTPresetColor" : "211.650000, 97.570650, 48.679500, 255.000000",
"BTTPresetUUID" : "081348B2-3E70-4FAE-B382-335FB99EB0C6",
"BTTPresetContent" : [
{
"BTTAppBundleIdentifier" : "BT.G",
"BTTAppName" : "Global",
"BTTAppAutoInvertIcon" : 1,
"BTTAppSpecificSettings" : {
{
"BTTPresetName" : "Default",
"BTTPresetUUID" : "B31EB83F-F29E-4613-A5B1-B1A3AB948780",
"BTTPresetContent" : [
{
"BTTAppBundleIdentifier" : "BT.G",
"BTTAppName" : "Global",
"BTTAppAutoInvertIcon" : 1,
"BTTAppSpecificSettings" : {
{
"BTTPresetName" : "Default",
"BTTGeneralSettings" : {
"BTTPathSampleSize" : 100,
"BTTCMOnTop" : true,
"BTTForceForceClickPressure2F" : 700,
"BSTLeftHalfBlock" : true,
"BTTMinDrawingMovement" : 2,
"BTTTouchBarMouseModeClickBlock" : true,
"BSTRightHalfBlock" : true,
foo = "{\"Statement\":[{\"Action\":\"sts:AssumeRoleWithWebIdentity\",\"Condition\":{\"StringEquals\":{\"https://oidc.eks.us-east-1.amazonaws.com/id/0383A7C7C3C76D5815152244768557CF:sub\":\"system:serviceaccount:default:default-aws-access\"}},\"Effect\":\"Allow\",\"Principal\":{\"Federated\":\"arn:aws:iam::279625905418:oidc-provider/oidc.eks.us-east-1.amazonaws.com/id/0383A7C7C3C76D5815152244768557CF\"}}],\"Version\":\"2012-10-17\"}"
resource "aws_iam_policy" "billing_read_only" {
name = "billing-read-only"
policy = <<EOF
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"aws-portal:ViewBilling",