Skip to content

Instantly share code, notes, and snippets.

View justindonnaruma's full-sized avatar

Justin Donnaruma justindonnaruma

View GitHub Profile
@justindonnaruma
justindonnaruma / Jenkinsfile
Last active March 5, 2020 19:35
Jenkinsfile for NodeJS project pushing to Artifactory as a tarball.
pipeline {
agent any
environment {
def uploadSpec = """{
"files": [
{
"pattern": "dist/*",
"target": "repo/folder/"
}
]
@justindonnaruma
justindonnaruma / dmlDebug.cls
Last active February 26, 2020 14:01
Salesforce Snippets
try {
insert object;
} catch (System.DmlException e) {
System.debug('DML-DEBUG');
System.debug('DML-DEBUG - Cause: '+e.getCause());
System.debug('DML-DEBUG - LineNum: '+e.getLineNumber());
System.debug('DML-DEBUG - Message: '+e.getMessage());
System.debug('DML-DEBUG');
for (Integer i = 0; i < e.getNumDml(); i++) {
@justindonnaruma
justindonnaruma / stringMatch.cls
Last active February 26, 2020 14:07
Salesforce String match check
List <sObject> records = new List<sObject>();
records = [SELECT ID, Name FROM sObject WHERE ID IN ('List', 'Of', 'Ids')];
String Id0 = records[0].Id;
String Id1 = records[1].Id;
String Name0 = records[0].Name;
String Name1 = records[1].Name;
System.debug('Name Check: '+ Name0 == Name1);
System.debug('Name: '+Name0);

Keybase proof

I hereby claim:

  • I am jdr0dn3y on github.
  • I am jdr0dn3y (https://keybase.io/jdr0dn3y) on keybase.
  • I have a public key whose fingerprint is 467A 2C25 41D2 1088 DA9A 26AE C6CD A0F6 F121 327E

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am justindonnaruma on github.
  • I am jdr0dn3y (https://keybase.io/jdr0dn3y) on keybase.
  • I have a public key whose fingerprint is 467A 2C25 41D2 1088 DA9A 26AE C6CD A0F6 F121 327E

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am jdr0dn3y on github.
  • I am jdr0dn3y (https://keybase.io/jdr0dn3y) on keybase.
  • I have a public key whose fingerprint is 937B 614D 5C14 B312 E73A 1906 4C9E A50B ADC6 9CAF

To claim this, I am signing this object:

@justindonnaruma
justindonnaruma / make.sh
Created March 24, 2016 23:33 — forked from artzub/make.sh
Install JetBrains Hub + YouTrack + UpSource + Nginx
#!/bin/bash
apt-get install mc htop git unzip wget curl -y
echo
echo "====================================================="
echo " WELCOME"
echo "====================================================="
echo
echo "Hub"
@justindonnaruma
justindonnaruma / massEmail.py
Last active February 10, 2016 20:49
Send Mass Email from Python
#!/usr/bin/env python3
import smtplib
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
# me == my email address
# you == recipient's email address
fr = "my@email.com"
var keystone = require('keystone'),
Types = keystone.Field.Types;
/**
* Enquiry Model
* =============
*/
var Enquiry = new keystone.List('Enquiry', {
nocreate: true,
Public with sharing virtual class RestClient {
Public class RestClientException extends Exception {}
/*
* class variable creation - DO NOT EDIT
*/
Public Map<String,String> headers;
Public String url;
Public String method;