This file contains 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
-------------------------------------------------------------------- | |
-- Queries related to distribution of metadata. | |
-- Find the number of users per profile. | |
SELECT count(id), Profile.name | |
FROM User | |
WHERE User.IsActive = true | |
GROUP BY Profile.name | |
-- Find the distribution of Apex classes per namespace. | |
select count(id), NameSpacePrefix |
This file contains 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
ADDUSERS Add or list users to/from a CSV file | |
ARP Address Resolution Protocol | |
ASSOC Change file extension associations• | |
ASSOCIAT One step file association | |
ATTRIB Change file attributes | |
BOOTCFG Edit Windows boot settings | |
BROWSTAT Get domain, browser and PDC info | |
CACLS Change file permissions | |
CALL Call one batch program from another• | |
CD Change Directory - move to a specific Folder• |
This file contains 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
alias Create an alias | |
alloc List used and free memory | |
awk Find and Replace text within file(s) | |
basename Convert a full pathname to just a folder path | |
bash Bourne-Again SHell (Linux) | |
bless Set volume bootability and startup disk options. | |
break Exit from a loop | |
cal Display a calendar |
This file contains 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
#first checkout master | |
git checkout master | |
#merge the dev branch | |
git merge dev | |
#get the log of commits and add them to the readme | |
git log --pretty=format:'%C(yellow)%h %Cred%ad %Cblue%an%Cgreen%d %Creset%s' --date=short | |
#tag the commit |
This file contains 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
//Find an entity's prefix | |
String prefix = MyObjectType.SObjectType.getDescribe().getKeyPrefix(); | |
System.debug(prefix); | |
class PrefixFinder{ | |
public String findObjectName(String recordIdOrPrefix){ | |
String objectName = ''; | |
try{ | |
String providedPrefix = String.valueOf(recordIdOrPrefix).substring(0,3); | |
Map<String, Schema.SObjectType> allObjectsTypes = Schema.getGlobalDescribe(); |
This file contains 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
############################################################################### | |
# This script converts a Quicktime MOV file into an animated GIF. | |
# Based on: https://abitawake.com/news/articles/how-we-make-gifs-for-twitter | |
# | |
# Dependencies | |
# - ffmpeg | |
# - gifsicle | |
# | |
# Usage | |
# ./mov_to_gif.sh a_movie.mov new_gif.gif |
This file contains 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
Steps: | |
Set up EBS | |
21Created 1 TB EBS | |
Created 64 Bit Amazon Linux AMI 2012.09 M1 Medium 3.7 gb ram, 2 ECUs | |
Connect to ec2 instance via ssh | |
chmod 400 IFS-KeyPair.pem | |
ssh -v -i IFS-KeyPair.pem ec2-user@ec2-54-234-14-65.compute-1.amazonaws.com | |
Note: Do not replace ec2-user with your user id. This is a AWS Amazon AMI requirement. |
This file contains 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
import java.util.Scanner; | |
public class ArrayExamples { | |
public static void main(String[] args) { | |
Scanner input = new Scanner(System.in); | |
final int N = 2; | |
final int M = 2; | |
final int P = 3; | |
additionExample(N, M, input); |
This file contains 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
<script type="text/javascript"> | |
RED.nodes.registerType('NODE_NAME',{ | |
category: 'The Category', | |
color: '#C0DEED', | |
defaults: { | |
}, | |
inputs: 1, | |
outputs: 1, | |
icon: "file.png", | |
label: function() { |
This file contains 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
ln -sf /usr/lib/python2.7/dist-packages/OpenSSL lib/python2.7 |
NewerOlder