Skip to content

Instantly share code, notes, and snippets.

View kurtlippert's full-sized avatar

Kurt Lippert kurtlippert

View GitHub Profile
@kurtlippert
kurtlippert / setup-npm.md
Last active January 30, 2018 18:19
Set up Node and NPM on Windows

To Install Node & NPM on Windows

  1. Install NVM-Windows
  2. nvm install latest
  3. nvm use <whatever_the_latest_was>
  4. Then install the windows updater for NPM (npm install -g npm-windows-upgrade)
  5. Run powershell as Administrator
  6. npm-windows-upgrade (Select your version)

To Update Node

@kurtlippert
kurtlippert / gnome-exchange-online-account.md
Created July 21, 2018 23:09
Gnome Online Exchange Account (Company Domain)

email: your email
pass: your password

expand 'custom'

user: your email
server: "outlook.office365.com"

@kurtlippert
kurtlippert / browser_hijack_check.md
Created August 8, 2018 13:40
level(3) or other browser hijacking tool
@kurtlippert
kurtlippert / pipenv.md
Last active September 5, 2018 20:30
My Pipenv Setup

In .bashrc

export PIPENV_VENV_IN_PROJECT=1
export PIPENV_IGNORE_VIRTUALENVS=1

In vscode project
pipenv --python 3.6 (or whatever version)
pipenv shell (vscode and pipenv should know where the .venv folder is)
pipenv install ...

@kurtlippert
kurtlippert / pipenv_ubuntu.md
Last active October 8, 2018 17:36
install pipenv properly on ubuntu

When installing pipenv via pip... (as of 10/08/2018)

pip install --user --upgrade pip # to install latest 18.1
pip install --user git+https://github.com/pypa/pipenv.git
@kurtlippert
kurtlippert / git_prereq_before_mr.md
Last active November 30, 2018 18:31
Continue work when prereqs are in MR (or PR)

After you've pushed and submitted the MR

git checkout master

Play changes on master
git rebase <branch>
git checkout -b <new_feature>

When ready to MR, changes from past MR will show up until merged into master

profit!

@kurtlippert
kurtlippert / attachDebounce.md
Last active January 17, 2019 16:28
Attach debounce event to target using rxjs
const attachDebounce =
  (target: EventTarget & HTMLInputElement,
   eventAsString: string,
   handleEmittedValue: (input: string) => any) => {
    if (!target.hasAttribute('data-debounce-input-attached')) {
      target.setAttribute('data-debounce-input-attached', '')
      fromEvent(target, eventAsString)
        .pipe(
 map(e =&gt; (e.target as any).innerText),
@kurtlippert
kurtlippert / local-postgres.md
Last active January 31, 2019 18:54
Local Postgres

Install per your systems instructions

in pg_hba.conf file, set localhost authentication to peer

w/o this, I can't friggin log into postgres user ¯\_(ツ)_/¯

@kurtlippert
kurtlippert / index.ts
Last active December 15, 2021 14:33
Start to functional standard lib for typescript
import { Nothing, Just } from "https://jspm.dev/purify-ts/Maybe"
import { List } from "https://jspm.dev/purify-ts/List"
import { Tuple } from "https://jspm.dev/purify-ts/Tuple"
import { pipe } from "https://jspm.dev/fp-ts/pipeable"
// === String Helpers ===
// to replace those found w/ `lodash` that don't really support `Maybe`
// inspired by https://github.com/NoRedInk/haskell-libraries/blob/trunk/nri-prelude/src/Text.hs
export const String = {