Skip to content

Instantly share code, notes, and snippets.

@andscoop
andscoop / init.lua
Last active March 17, 2024 14:12
a simple, single file init.lua for nvim
-- forked from https://github.com/nvim-lua/kickstart.nvim
-- TODO
-- system clipboard copy config (unnamedplus?)
-- Install packer
local install_path = vim.fn.stdpath 'data' .. '/site/pack/packer/start/packer.nvim'
local is_bootstrap = false
if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
is_bootstrap = true
##
# App Name - also used for conf file naming
##
app_name=$1
if [ -z "$1" ];then
echo "Must provide app_name!"
exit 1
fi
@andscoop
andscoop / todo.sh
Last active September 30, 2018 22:42
One line shell script using ripgrep to scrape all dev directories for all TODO.md files
###############################
### TODO shortcuts
export TD_PATH=""
alias td="rg -n -g 'TODO.md' '\- \[\]' $TD_PATH
###############################
@andscoop
andscoop / bashtrack.sh
Created September 30, 2018 22:25
Bash Track
###############################
### *B*ASH *T*RACK
## A series of commands leveraging git and file system to do time tracking, task management, note taking
# Path BASHTRACK repo
export BT_ROOT="/Users/andscoop/dev/kb-andscoop/notes"
# Convenience env for grouping daily files by month
export BT_TIMETRACK_PATH="$BT_ROOT/daily/$(date '+%m')"
"""
Example of sequential dynamic task creation
"""
from datetime import datetime, timedelta
from airflow import DAG, configuration
from airflow.operators.dummy_operator import DummyOperator
dag = DAG(
dag_id="dynamic_tasks_example",
start_date=datetime(2018, 2, 9),
#!/bin/sh
set -e
# Code generated by godownloader. DO NOT EDIT.
#
usage() {
this=$1
cat <<EOF
$this: download go binaries for astronomerio/astro-cli
package main
import (
"context"
"log"
"os"
"strings"
dockercompose "github.com/docker/libcompose/docker"
"github.com/docker/libcompose/docker/ctx"
https://kubernetes-charts.storage.googleapis.com/
@andscoop
andscoop / .keys
Created February 17, 2018 14:10
fix nice-editor (ne) backspace issue
KEY 0x7f BS
KEY 0x115 DC

Keybase proof

I hereby claim:

  • I am andscoop on github.
  • I am andscoop (https://keybase.io/andscoop) on keybase.
  • I have a public key whose fingerprint is 6EE9 E58F E2A7 9BCE CAA1 FC16 6729 96DE 18FC 1225

To claim this, I am signing this object: