Skip to content

Instantly share code, notes, and snippets.

View daniellivingston's full-sized avatar

Daniel Livingston daniellivingston

  • Westford, MA
View GitHub Profile
@daniellivingston
daniellivingston / DownloadKalturaVideos.py
Last active November 8, 2022 03:33
Script used to download course videos for CS-6260 in GATech's OMSCS program.
#!/usr/bin/env python3
import requests
import json
import re
from pathlib import Path
# Download directory (default: `./videos/`)
video_download_directory = Path(__file__).parent / "videos"
@daniellivingston
daniellivingston / FilteredUnzip.py
Created June 25, 2022 15:26
Selectively unarchive ZIP file members based on user-defined criteria
"""
FILTERED UNZIP
A simple script that *only* extracts files from a .zip archive
that match user-defined extraction criteria (filesize,
extension, date, etc.).
In addition, a live progress bar shows extraction progress,
and kept / filtered files are written to CSV files for
post-extraction analysis.
@daniellivingston
daniellivingston / generate-stdlib-map.sh
Last active May 3, 2022 21:37
Rust `std` source mappings in VSCode
#!/usr/bin/env bash
# ============================================================================== #
# MIT License #
# ------------------------------------------------------------------------------ #
# Displays the CodeLLDB standard library mapping for debugging Rust binaries. #
# Generates a JSON string used in VSCode debug task list. #
# Requires the `jq` utility to be installed. #
# ============================================================================== #
# OUTPUT: #
# "lldb.launch.sourceMap": {
@daniellivingston
daniellivingston / swift-run.py
Last active July 12, 2021 17:23
Simple bootstrap script for prototyping SwiftUI apps without an Xcode project.
#!/usr/bin/env python3
"""
Simple bootstrap script for quickly prototyping
Swift-based macOS applications.
usage: swift-run.py [-h] [-c SWIFT_COMPILER] [-a ARGS] [-m MAIN] [-s SAVE]
file [file ...]
positional arguments:
@daniellivingston
daniellivingston / Vax2TheMaxNM.py
Created June 2, 2021 04:52
Python script for computing the probabilities of winning the New Mexico vaccination draw by "region"
"""
Simple script to compute the probability of winning
one or any of the New Mexico vaccination draws.
Uses the Python requests library to submit API
endpoint requests to the Wolfram|Alpha API, and
the Rich library for rendering to a table.
===============
@daniellivingston
daniellivingston / setup-wrf-hydro.sh
Last active April 6, 2021 18:04
Set up WRF-Hydro via Spack
#!/usr/bin/env bash
# =============================== #
# WRF-HYDRO SPACK INSTALLER
# -------------------------------
# CONFIGURES AND INSTALLS WRF-HYDRO
# AND ALL REQUIRED DEPENDENCIES
# -------------------------------
# CONTACT:
# livingston@lanl.gov

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@daniellivingston
daniellivingston / JumpTest.swift
Created April 11, 2019 05:55
Basic example demonstrating complex jumping movements (Swift 4, SpriteKit)
//
// GameScene.swift
// JumpTest
//
// Created by Livingston on 4/6/19.
// Copyright © 2019 Livingston. All rights reserved.
//
import SpriteKit
import GameplayKit
@daniellivingston
daniellivingston / lagrit.vim
Created November 16, 2017 21:55
LaGriT Syntax file for ViM
" Vim syntax file
" Language: LaGriT
" Maintainer: Daniel Livingston
" Latest Revision: 16 November 2017
" To install: copy to ~/.vim/syntax/lagrit.vim
" ---------------------------------------------------- "
" if exists("b:current_syntax")
" finish
" endif
@daniellivingston
daniellivingston / reset_macos_attributes.sh
Created November 14, 2017 22:48
Wipes extended macOS attributes
# Wipe all extended attributes that macOS sets
# Based on the GitHub Gist: kennwhite/reset_osx_attributes.sh
# Add to ~/.bash_profile
# Usage:
# Takes one argument as directory
# If no argument provided, acts on current working dir.
wipe_extended_attributes() {
export dir=`echo $1`