This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express'); | |
var app = express(); | |
var bodyParser = require('body-parser'); | |
app.use(bodyParser.urlencoded({ | |
extended: true | |
})); | |
app.use(bodyParser.json()); | |
app.set('view engine', 'ejs'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const jwt = require('jsonwebtoken'); | |
const request = require('request'); | |
const url = 'https://api.metamind.io/'; | |
const account_id = '<SNIP>'; | |
const private_key = `-----BEGIN RSA PRIVATE KEY----- | |
<SNIP> | |
-----END RSA PRIVATE KEY----- | |
`; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# JWT login | |
sfdx force:auth:jwt:grant --clientid ${CLIENT_ID} \ | |
--jwtkeyfile ${JWT_KEY_FILE} --username ${HUB_USERNAME} \ | |
--setdefaultdevhubusername > /dev/null | |
# Create an org | |
created="$(sfdx force:org:create -s -j '{ | |
"Company": "StreamSets", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# Get default dev hub | |
configs="$(sfdx force:config:list --json)" | |
filteredConfig="$(echo ${configs} | jq -r '.results' | jq -r '.[] | select( .key | contains("defaultdevhubusername"))' | jq -r .value)" | |
# Get orgs | |
orgs="$(sfdx force:org:list --json)" | |
orgResults="$(echo ${orgs} | jq -r '.results')" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bldwht='\e[1;37m' # White | |
bldgrn='\e[1;32m' # Green | |
txtylw='\e[0;33m' # Yellow | |
get_usernames() { | |
config="$(cat .sfdx/sfdx-config.json 2> /dev/null)"; | |
globalConfig="$(cat ~/.sfdx/sfdx-config.json)"; | |
defaultusername="$(echo ${config} | jq -r .defaultusername)" | |
defaultdevhubusername="$(echo ${config} | jq -r .defaultdevhubusername)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let jsforce = require('jsforce'); | |
let conn = new jsforce.Connection({ | |
// you can change loginUrl to connect to sandbox or prerelease env. | |
// loginUrl : 'https://test.salesforce.com' | |
}); | |
let username = 'YOUR_USERNAME'; | |
let password = 'YOUR_PASSWORD'; | |
let fullName = 'FULL_NAME'; // no spaces |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var recursive = require('recursive-readdir'); | |
var fs = require('fs'); | |
var path = require('path'); | |
var getUrls = require('get-urls'); | |
var request = require('request'); | |
var fileTypes = ['.png', '.jpg', '.jpeg', '.gif', '.tif', '.pdf', '.tiff', '.ico', '.zip', '.pptx']; | |
var filePath = '/Users/wade.wegner/Projects/Github/WadeWegner/wadewegner.github.com/'; | |
function ignoreFunc(file, stats) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
listOfCommands="addons | |
apps | |
auth | |
config | |
domains | |
logs | |
ps | |
releases |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Diagnostics; | |
using System.Web; | |
using ikvm.extensions; | |
using javax.tools; | |
using NHtmlUnit; | |
using NHtmlUnit.Html; | |
using WebClient = NHtmlUnit.WebClient; | |
using NUnit.Framework; | |
using Uber; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Diagnostics; | |
namespace GetParentProcess | |
{ | |
class Program |