Skip to content

Instantly share code, notes, and snippets.

Avatar
😎
Investigating ways to increase technical debt with shiny

Virgil virgilwashere

😎
Investigating ways to increase technical debt with shiny
View GitHub Profile
@virgilwashere
virgilwashere / git-install-intro.md
Last active Jun 18, 2019 — forked from derhuerst/intro.md
Installing Git on Linux, Mac OS X and Windows
View git-install-intro.md
@skyzyx
skyzyx / homebrew-gnubin.md
Last active Aug 1, 2020
Using GNU command line tools in macOS instead of FreeBSD tools
View homebrew-gnubin.md

macOS is a Unix, and not built on Linux.

I think most of us realize that macOS isn't a Linux OS, but what that also means is that instead of shipping with the GNU flavor of command line tools, it ships with the FreeBSD flavor. As such, writing shell scripts which can work across both platforms can sometimes be challenging.

Homebrew

Homebrew can be used to install the GNU versions of tools onto your Mac, but they are all prefixed with "g" by default.

All commands have been installed with the prefix "g". If you need to use these commands with their normal names, you can add a "gnubin" directory to your PATH from your bashrc.

@pascalandy
pascalandy / keep_a_changelog_template.md
Last active Oct 1, 2019
How do I make a good changelog
View keep_a_changelog_template.md
View _Mautic_nginx_config_files.md
@heathdutton
heathdutton / mautic-campaign-delays-lite.sql
Last active Feb 25, 2019
List all Mautic campaign delays
View mautic-campaign-delays-lite.sql
-- All mautic campaign delays merged. Two queries (the first is important). Takes under 10s.
-- Depends on the PR of soft-deleted campaign events.
SET @@group_concat_max_len = 10000000000000;
SELECT *
FROM (
SELECT NULL as campaign_id,
NULL as campaign_name,
NULL as event_id,
NULL as event_name,
NULL as lead_count,
@pnancarrow
pnancarrow / aws_security_group_details.sh
Last active Nov 8, 2018 — forked from richadams/aws_security_group_details.sh
A quick and dirty script to list out all security group settings on an AWS account. Barely tested, use at own risk, etc. Requires awscli to be installed.
View aws_security_group_details.sh
#!/bin/bash
# Requires: awscli (http://aws.amazon.com/cli/)
# Prints out a list of all security groups and their settings, just for quickly auditing it.
# Your AWS credentials
#if [ -z ${AWS_ACCESS_KEY_ID} ]; then
# export AWS_ACCESS_KEY_ID='***'
# export AWS_SECRET_ACCESS_KEY='***'
#fi
@snarbin
snarbin / osx_bootstrap.sh
Last active Apr 5, 2019 — forked from codeinthehole/osx_bootstrap.sh
Script to install stuff I want on a new OSX machine
View osx_bootstrap.sh
#!/usr/bin/env bash
#
# Bootstrap script for setting up a new OSX machine
#
# This should be idempotent so it can be run multiple times.
#
# Some apps don't have a cask and so still need to be installed by hand. These
# include:
#
# - Xcode (for command line tools)
@skwashd
skwashd / README.md
Last active Jul 1, 2020
Copy AWS SSM Parameter Store Path
View README.md

This Python (3.6+) script is for migrating Amazon AWS System Manager (SSM) Parameter Store keys from one path to another.

Quick Start

To install the script do the following:

  • Configure your AWS credentials
  • Grab the code from this gist
  • Make it executable (chmod +x /path/to/copy-ssm-ps-path.py)
  • pip install boto3 (if you don't have it installed already)
@victor-perez
victor-perez / git.bat
Last active May 19, 2020
Use WSL git inside VS Code from Windows 10 17046
View git.bat
@echo off
setlocal ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
::this also support calls that contains a absolute windows path
::check of one of the params contain a absolute windows path
echo.%* | findstr /r /c:"[a-z]:[\\/]" > nul
if %errorlevel% == 1 (
::if not just git with the given parameters
call :git %*
@proffalken
proffalken / README.md
Last active Feb 29, 2020
Mautic Nginx Configuration
View README.md

Mautic Nginx Configuration

These files allow you to configure Mautic using Nginx.

You can’t perform that action at this time.