Skip to content

Instantly share code, notes, and snippets.

View senagbe's full-sized avatar

Sena Gbeckor-Kove senagbe

View GitHub Profile
@senagbe
senagbe / splitter.sh
Created February 16, 2022 21:25 — forked from steezeburger/splitter.sh
Bash script for splitting large CSV files into 100 lines while keeping the header.
#!/bin/bash
FILENAME=file-to-split.csv
HDR=$(head -1 ${FILENAME})
split -l 100 ${FILENAME} xyz
n=1
for f in xyz*
do
if [[ ${n} -ne 1 ]]; then
echo ${HDR} > part-${n}-${FILENAME}.csv
fi
@senagbe
senagbe / DEISGCE.md
Last active August 29, 2015 14:04 — forked from andyshinn/DEISGCE.md

Deis in Google Compute Engine

Let's build a Deis cluster in Google's Compute Engine!

Google

Get a few Google things squared away so we can provison VM instances.

Google Cloud SDK