Skip to content

Instantly share code, notes, and snippets.

View RackReaver's full-sized avatar

Matt Ferreira RackReaver

View GitHub Profile
@RackReaver
RackReaver / README-Template.md
Created April 18, 2018 01:48 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@RackReaver
RackReaver / vscode: settings.json
Last active August 20, 2018 14:52
Visual Studio Code - User Settings
{
"liveServer.settings.donotShowInfoMsg": true,
"editor.parameterHints": false,
"workbench.colorTheme": "Atom One Dark",
"workbench.iconTheme": "vscode-icons",
"editor.fontSize": 15,
"terminal.integrated.fontSize": 15,
"terminal.external.windowsExec": "C:\\Program Files\\Git\\bin\\bash.exe",
"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
"python.pythonPath": "${workspaceFolder}\\venv\\Scripts\\python.exe",
@RackReaver
RackReaver / index.html
Created August 20, 2018 14:57
html: Bootstrap 4 Starter Template
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp"
crossorigin="anonymous">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB"

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

@RackReaver
RackReaver / USAGE.md
Created August 30, 2020 02:57 — forked from mterwill/USAGE.md
Beancount importers, scripts, etc.

Note: everything here is pretty specific to my usage/accounts and not written for public use... You'll probably have to tweak a bunch of stuff.

$ bean-extract config.py ~/Downloads # the csvs should be in here
@RackReaver
RackReaver / cs_fdr_unzipper.py
Last active May 10, 2021 17:50
crowdstrike:script: falcon data replicator unzipper
# PYTHON 2.7
def unzip_data(src, dest):
"""Unzips *.gz file and places it in new location following the same directory structure.
args:
src (str): *.gz file to be unzipped
dest (str): drop location for unzipped file
return: None
@RackReaver
RackReaver / count_git_lines.sh
Last active May 10, 2021 17:51
bash:script: count code lines (git)
# While inside of git repository this command will output lines of code written by each author.
git ls-files | while read f; do git blame -w --line-porcelain -- "$f" | grep -I '^author '; done | sort -f | uniq -ic | sort -n
@RackReaver
RackReaver / jinja-snippets.html
Last active May 10, 2021 17:53
python: currency formatting
"${:,.2f}".format(input)
@RackReaver
RackReaver / function_doc_str.py
Created May 10, 2021 17:55
python:doc_str: function documentation string
"""Description here
args:
arg1 (type): description
arg2 (type): description
kwargs:
kwargs (type): description
kwargs (type): description
@RackReaver
RackReaver / append_csv.py
Last active May 10, 2021 17:55
python snippets
def append_csv(filename, value):
"""This will append a vaule to a csv file.
args:
filename (str): full path or relative path of the csv file.
value (str): string to append to the csv file.
Return: None
"""
with open(filename, 'a') as openFile:
openFile.write('\n{}'.format(value))