Skip to content

Instantly share code, notes, and snippets.

@nickfogle
nickfogle / Team SQL Scripts
Last active August 29, 2015 13:57
Team - SQL Scripts
**Find Donation Transaction IDs**
> `Select DonationtransactionsID from Donationtransactions where dateadded > '2014-11-29'`
**Find Event Transaction IDs**
> `Select EventTransactionsID from EventTransactions where dateadded Between '2014-03-07 01:00:00' and '2014-03-10 11:00:00'`
# **AWS EC2 Instance Manager**
## Modify Key Security
>
```
chmod 600 key.pem
```
@nickfogle
nickfogle / Bash Shortcuts
Last active August 29, 2015 14:00
Linux Dev Installs
# Intermediate bash - Keyboard shortcuts
• Ctrl + A: Go to the beginning of the line you are currently typing on
• Ctrl + E: Go to the end of the line you are currently typing on
• Ctrl + F: Forward one character.
• Ctrl + B: Backward one character.
• Meta + F: Move cursor forward one word on the current line
• Meta + B: Move cursor backward one word on the current line
• Ctrl + P: Previous command entered in history
• Ctrl + N : Next command entered in history
@nickfogle
nickfogle / Miscellaneous Functions
Last active August 29, 2015 14:01
JS Collection for BBNC
<!-- Automatically Update Copyright Date -->
<div id="wrapFooter">
<div class="gutter">&copy; <span id="currentYear">2013</span> Blackbaud, Inc.</div>
</div>
<script type="text/javascript" language="javascript">
$("#currentYear").text((new Date).getFullYear());
</script>
@nickfogle
nickfogle / CRM designation parser
Last active November 9, 2015 14:28 — forked from hyperking/CRM designation parser
BBCRM Response Formatter
var allFunds = CRMresponse.Rows;
function beautifyCRM(allFunds) {
colleges = {}
$(allFunds).each(function(key, val) {
var list = val['Values'];
console.log(list);
var cname = list[2].split("\\").pop();
var fund = list[0];
var guid = list[3];

Keybase proof

I hereby claim:

  • I am nickfogle on github.
  • I am nickfogle (https://keybase.io/nickfogle) on keybase.
  • I have a public key ASBfQAZrHPUL20EenPKa5fku0Rb7Ttsx-w_TjfASGkrTxQo

To claim this, I am signing this object:

@nickfogle
nickfogle / Stats
Created September 11, 2018 17:58
Get Device Statistics
#!/bin/bash
# Collects system performance statistics such as CPU, memory, and disk
# usage as well as top processes ran by users.
#
# All size values are in KiB (memory, disk, etc).
# Takes these command line arguments:
# $1 - cpuThreshold in % of total across all CPUs. Default is provided in no-args option.
@nickfogle
nickfogle / BBNC Global JavaScript File
Created May 15, 2014 17:55
NetCommunity JavaScript Snippets
/**********************************************
Blackbaud Design Custom JavaScript
***********************************************
Site:
Author:
Created:
BBNC Version:
*********** CHANGE LOG ************************
@nickfogle
nickfogle / snippet.html
Created February 12, 2019 02:44
Lightning Link Example
<div class="order-pr--value">
<span>lntb17u1pwxyvjzpp553g62xe3vywy6ep7lunyjjpk8l020gyh4j0xkm409yyty9sfu7zsdpzxysy2umswfjhxum0yppk76twypgxzmnwvycqp2dufsu4kt6th9vdnq7j788dulp42250nz5aanc3eyucchaatlur2j5tvy6clktdeutwqujud0zlkwkzv0gxedp3cg2fepzax9qtve8hcqumfhg2</span></div>
<!-- NOTICE FORMAT OF HREF -->
<!-- 'lightning:lnxxxxx' -->
<a href="lightning:lntb17u1pwxyvjzpp553g62xe3vywy6ep7lunyjjpk8l020gyh4j0xkm409yyty9sfu7zsdpzxysy2umswfjhxum0yppk76twypgxzmnwvycqp2dufsu4kt6th9vdnq7j788dulp42250nz5aanc3eyucchaatlur2j5tvy6clktdeutwqujud0zlkwkzv0gxedp3cg2fepzax9qtve8hcqumfhg2" target="_blank" class="button ocher">Open with your wallet</a>
<button type="button" title="Copy to clipboard" class="button copy ocher">
<svg width="10" height="10" aria-label="Copy" class="svg-icon lg undefined">
<title>Copy</title>
<use xlink:href="#icon_copy"></use>
</svg>
const crypto = require("crypto");
const user_hash = crypto.createHmac(
"sha256",
"CK_SECRET" // API KEY
).update(req.user.stripeId).digest("hex"); // Send to front-end