Skip to content

Instantly share code, notes, and snippets.

View mdeangelo272's full-sized avatar

Michael DeAngelo mdeangelo272

View GitHub Profile
@mdeangelo272
mdeangelo272 / openssl_pkcs12.py
Created August 17, 2018 04:51 — forked from gdelpierre/openssl_pkcs12.py
Ansible module that handle openssl PKCS#12 file
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
ANSIBLE_METADATA = {'metadata_version': '1.0',
'status': ['preview'],
'supported_by': 'community'}
DOCUMENTATION = '''
//Code sanitized to protect the foolish.
using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
using System.Web.UI;
namespace Mobile.Web.Control
{
/// <summary>
@mdeangelo272
mdeangelo272 / fix_user.sh
Last active May 31, 2017 20:00
Git Git User Configurations
#!/usr/bin/env sh
# Note: You should also update the [user] group in .git/config
# Note: This does not play nicely with remotes. You will need to blow them away and start over :(
# ref: https://stackoverflow.com/questions/750172/change-the-author-and-committer-name-and-e-mail-of-multiple-commits-in-git
git filter-branch --env-filter '
OLD_EMAIL="iam@mdeangelo272.me"
CORRECT_NAME="Michael DeAngelo"
CORRECT_EMAIL="mdeangelo@trace3.com"
@mdeangelo272
mdeangelo272 / tmux-cheatsheet.md
Last active May 29, 2017 17:01
tmux cheatsheet

tmux cheatsheet

Legend

  • <C-x> - hold the control key and press x
  • <M-x> - hold the meta key and press x (usually meta is the alt key)
  • <prefix> - initiate the tmux prefix (default it <C-b> some people like <C-a>)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefers C-a, you need to add this to ~/.tmux.conf:

@mdeangelo272
mdeangelo272 / README.md
Created January 31, 2017 18:45 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.

For more about AWS and AWS Certifications you can follow me @leonardofed


#!/usr/bin/env bash
# This script removes node.js and npm, that were installed using a 'pkg' package, from Mac OS X.
# It should be run using sudo
# REFERENCE: http://stackoverflow.com/questions/9044788/how-do-i-uninstall-nodejs-installed-from-pkg-mac-os-x
lsbom -f -l -s -pf /var/db/receipts/org.nodejs.pkg.bom \
| while read i; do
rm /usr/local/${i}
done
@mdeangelo272
mdeangelo272 / JsonDates.js
Created January 24, 2013 00:12
This simple gist will parse JSON data and convert datetime string to proper date objects. It can be extended to include other date string formats.
// ******** Date Parsing ********
var jsonDates = {
dtrx2: /\d{4}-\d{2}-\d{2}/,
parse: function(obj){
var parsedObj = JSON.parse(obj);
return this.parseDates(parsedObj);
},
parseDates: function(obj){
// iterate properties
for(pName in obj){