Install the OpenSSL on Debian based systems
sudo apt-get install openssl| # This script uses the GitHub Labels REST API | |
| # https://developer.github.com/v3/issues/labels/ | |
| # Provide a personal access token that can | |
| # access the source and target repositories. | |
| # This is how you authorize with the GitHub API. | |
| # https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line | |
| GH_TOKEN="YOUR_TOKEN" | |
| # If you use GitHub Enterprise, change this to "https://<your_domain>/api/v3" |
| /** | |
| * Inspired by @MoOx original script: https://gist.github.com/MoOx/93c2853fee760f42d97f | |
| * Adds file download per @micalevisk https://gist.github.com/MoOx/93c2853fee760f42d97f#gistcomment-2660220 | |
| * | |
| * Changes include: | |
| * - Get the description from the `title` attribute instead of `aria-label` (doesn't exist anymore) | |
| * - Use style.backgroundColor and parse the rgb(...) to hex (rather than regex parsing of 'style' string) | |
| * - Downloads labels to a JSON file named after the webpage to know which GitHub repo they came from. | |
| * | |
| * Last tested 2019-July-27: |
| /* | |
| * | |
| * Return SQLite3 query results as a Nodejs stream, sensitive to backpressure. | |
| * | |
| * Assumes a foo.db file with a lot of rows - I used 1000 with a number & a string | |
| */ | |
| const stream = require('stream'); | |
| const sqlite = require('sqlite3'); | |
| class DBStream extends stream.Readable { |
| # wadewegner.zsh-theme | |
| prompt_fn() { | |
| 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)" | |
| globaldefaultusername="$(echo ${globalConfig} | jq -r .defaultusername)" |
| // ScratchOrgInfo is an object in your dev hub | |
| delete [select id from ScratchOrgInfo where Status = 'Deleted']; |
| <apex:page> | |
| <head> | |
| <script src="{!$Resource.jquery224}"></script> <!-- https://jquery.com/ --> | |
| <script src="{!$Resource.jsforce170}"></script> <!-- https://jsforce.github.io/ --> | |
| <script>$j = jQuery.noConflict();</script> | |
| </head> | |
| <body> | |
| <form> |
| <aura:component > | |
| <aura:attribute name="recordIds" | |
| type="List" | |
| access="public" | |
| description="An array of Ids"/> | |
| <aura:attribute name="records" | |
| type="Map" | |
| description="The records!" | |
| default="{}"/> | |
| <aura:attribute name="errors" |
| <aura:component implements="force:appHostable,flexipage:availableForAllPageTypes" | |
| controller="AddressFinderController" access="global"> | |
| <aura:attribute name="accounts" type="Account[]"/> | |
| <aura:attribute name="contacts" type="Contact[]"/> | |
| <aura:registerEvent name="AddressInfo" type="c:AddressInfo"/> | |
| <div class="slds-form--stacked"> | |
| <div class="slds-form-element"> | |
| <label class="slds-form-element__label" for="inputSample2">Account Search</label> |
| public class QuickData { | |
| /* QuickData inserts your Mockaroo Schema, no questions asked. Remote Site needed. | |
| * USAGE: QuickData.createRecords('MOCKAROOAPIKEY','20689c00',20,List<Lead>.class); | |
| * Creates 20 leads using the schema at https://www.mockaroo.com/20689c00 */ | |
| public static List<SObject> createRecords(String a, String s, Integer c, Type t) { | |
| String fmtStr = 'https://www.mockaroo.com/{1}/download?count={2}&key={0}'; | |
| List<String> reqDetails = new List<String>{a,s,String.valueOf(c)}; | |
| string requestString = String.format(fmtStr,reqDetails); | |
| HttpRequest req = new HttpRequest(); | |
| req.setEndpoint(requestString); |