Skip to content

Instantly share code, notes, and snippets.

Avatar
💣
lurking....

fizzgig fastzombies

💣
lurking....
View GitHub Profile
@fastzombies
fastzombies / python3-virtualenv-start.sh
Last active Jun 4, 2017
Step 0 in getting python3 virtualenv going. Just for my reference.
View python3-virtualenv-start.sh
#!/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 / git-change-root-directory.sh
Created May 26, 2017
How to change the root directory of a git repository
View git-change-root-directory.sh
#!/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 May 26, 2017
Simple demo of Integration-Manager workflow that can be used when services like Gitlab are not available.
View git-demo.sh
#!/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 / convert_wellsfargo_csv.pl
Created Oct 20, 2016
Convert Wells Fargo csv to my own csv for import into Excel
View convert_wellsfargo_csv.pl
#!/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 Oct 20, 2016
Convert UFCU csv to my own csv for import to Excel
View convert_ufcu_csv.pl
#!/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;
View hello_gist.py
#!/usr/local/bin/python3.5
print('Hello gist')
You can’t perform that action at this time.