Skip to content

Instantly share code, notes, and snippets.

View adds68's full-sized avatar

Adam Jones adds68

View GitHub Profile
@adds68
adds68 / gist:ae09f526f56bd0b7ff11ff169dcdc590
Created December 19, 2022 11:46
AWS timeStream query parse result in Typescript
import {
Datum, ColumnInfo, Row,
} from '@aws-sdk/client-timestream-query';
type DatumList = Datum[];
interface TimestreamRow {
[key: string]: string;
}
### Keybase proof
I hereby claim:
* I am adds68 on github.
* I am adds68 (https://keybase.io/adds68) on keybase.
* I have a public key ASDIQn0Yde9oE_0coUYCpdQ_wVvavXp9kIpU87iyvVGIBAo
To claim this, I am signing this object:
#####################
### This Config relies on TPM being installed (Tmux plugin manager)
#Follow the guide provided by tmux-ressurect: https://github.com/tmux-plugins/tmux-resurrect
#####################
######################
###Config#############
######################
#remap prefix from 'C-b' to 'C-Space'
unbind C-b
" this config was modified from
" https://afshinm.name/neovim/
" source: https://github.com/afshinm/neovim-config/blob/master/init.vim
" it relies on vim-plugin-manager and YouComplete me, commands to install these are in the guide linked above
" it also relies on the neovim python module pip3 install neovim --user
" this file should be in ~/.config/nvim/init.vim
set spell spelllang=en_us
set undofile
set encoding=utf-8
#####################
### This Config relies on TPM being installed (Tmux plugin manager)
Follow the guide provided by tmux-ressurect: https://github.com/tmux-plugins/tmux-resurrect
#####################
######################
###Config#############
######################
#remap prefix from 'C-b' to 'C-a'
unbind C-b
######################
###Config#############
######################
#remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# split panes using | and -
bind | split-window -h
@adds68
adds68 / .bashrc
Last active March 28, 2018 15:08
bashrc
export VISUAL=vim
export EDITOR="$VISUAL"
#Powerline
function _update_ps1() {
PS1="$(powerline-shell $?)"
}
#CTGit
alias ctgit='ssh git@git.codethink.co.uk'
######################
###Config#############
######################
#remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# split panes using | and -
bind | split-window -h
from flask import Flask, render_template, url_for, request, session, redirect
from flask_pymongo import PyMongo
import bcrypt
app = Flask(__name__)
app.config['MONGO_DBNAME'] = 'flaskapp'
app.config['MONGO_URI'] = 'yourdburlhere'
mongo = PyMongo(app)
@adds68
adds68 / .vimrc
Last active November 7, 2017 23:30
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