Skip to content

Instantly share code, notes, and snippets.

View fastzombies's full-sized avatar
💣
lurking....

fizzgig fastzombies

💣
lurking....
View GitHub Profile
@fastzombies
fastzombies / git-change-root-directory.sh
Created May 26, 2017 21:24
How to change the root directory of a git repository
#!/bin/bash
# This is a reminder script when I need to reset the root of my git repo
# from https://stackoverflow.com/questions/11764003/change-the-root-directory-of-a-git-repository
# /path/to/repo/but/i/want/the/target-dir/* -> /path/to/repo/*
cd /path/to/repo
git filter-branch \
--subdirectory-filter but/i/want/the/target-dir \
--tag-name-filter cat \
@fastzombies
fastzombies / git-demo.sh
Last active November 6, 2021 10:52
Simple demo of Integration-Manager workflow that can be used when services like Gitlab are not available.
#!/bin/bash
# This is a simple script to walk through the Integration-manager style of
# git workflow. Without a server such as gitlab, having only standard file
# system access, this is what is necessary.
demodir=~/repos/demo
gold=$demodir/repo-gold
silver=$demodir/repo-silver
bronze=$demodir/repo-bronze
sandbox=$demodir/repo-sandbox
@fastzombies
fastzombies / python3-virtualenv-start.sh
Last active February 9, 2021 11:44
Step 0 in getting python3 virtualenv going. Just for my reference.
#!/bin/bash
# http://www.pythonforbeginners.com/basics/how-to-use-python-virtualenv/
# this gives us python 2.7
#virtualenv env ./env
# start venv like this
mkdir env && cd env
virtualenv -p python3 --no-site-packages env .
@fastzombies
fastzombies / convert_wellsfargo_csv.pl
Created October 20, 2016 20:41
Convert Wells Fargo csv to my own csv for import into Excel
#!/usr/bin/perl -w
use strict;
my $self=$0;
# (1) quit unless we have the correct number of command-line args
my $num_args = $#ARGV + 1;
if ($num_args != 2) {
print "\nUsage: $self <raw WF csv> <output>\n";
exit;
@fastzombies
fastzombies / convert_ufcu_csv.pl
Last active October 20, 2016 20:38
Convert UFCU csv to my own csv for import to Excel
#!/usr/bin/perl -w
use strict;
my $self=$0;
# (1) quit unless we have the correct number of command-line args
my $num_args = $#ARGV + 1;
if ($num_args != 2) {
print "\nUsage: $self <raw UFCU csv> <output>\n";
exit;
@fastzombies
fastzombies / hello_gist.py
Created October 20, 2016 20:30
Hello gist
#!/usr/local/bin/python3.5
print('Hello gist')