Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
Ctrl+C | copy current line (if no selection) |
Ctrl+X | cut current line (if no selection) |
Ctrl+⇧+K | delete line |
Ctrl+↩ | insert line after |
#!/bin/bash | |
LOG_FILE_NAME='MyLogFile' | |
LOG_FILE_PATH='../log/' | |
LOG_LEVEL='3' # DEBUG=4 INFO=3 WARN=2 ERR=1 NONE=0 | |
LOG_OUTPUT='2' # STDOUT=1 FILE=2 BOTH=3 | |
_log_level_string=( DEBUG INFO WARN ERR NONE ) | |
_log_output_string=( STDOUT FILE BOTH ) |
Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
Ctrl+C | copy current line (if no selection) |
Ctrl+X | cut current line (if no selection) |
Ctrl+⇧+K | delete line |
Ctrl+↩ | insert line after |
CREATE OR REPLACE PACKAGE body log_pkg | |
IS | |
PROCEDURE insert_log( | |
log_type VARCHAR2, | |
log_code VARCHAR2, | |
log_message VARCHAR2) | |
IS | |
pragma autonomous_transaction; | |
LOG_ID INTEGER; | |
BEGIN |
#!/bin/bash | |
# csv to html | |
usage() | |
{ | |
cat <<EOF | |
Usage: $(basename $0) [OPTIONS] input > output | |
Script to produce HTML tables from delimited input. Delimiter can be specified | |
as an optional argument. If omitted, script defaults to comma. |
lockfile=/var/tmp/mylock | |
if ( set -o noclobber; echo "$$" > "$lockfile") 2> /dev/null; then | |
trap 'rm -f "$lockfile"; exit $?' INT TERM EXIT | |
# do stuff here | |
# clean up after yourself, and release your trap | |
rm -f "$lockfile" |
Contact con = (Contact)TestDataFactory.createSObject('Contact'); |
#!/bin/sh | |
# | |
# Generate a full package xml using the Salesforce CLI | |
# Requirements : | |
# * Salesforce CLI | |
# * jq | |
const puppeteer = require("puppeteer"); | |
/* | |
* Puppeteer script to activate a user interface option | |
*/ | |
// org credentials | |
const credentials = { | |
username: "test-szxxauz1kct8@example.com", | |
password: "XXXXXXX" |
{ | |
"orgName": "Scratch org demo", | |
"description": "Scratch org definition demo", | |
"language": "en_US", | |
"edition": "Developer", | |
"features": [ | |
"Sites", | |
"Communities", | |
"PersonAccounts", | |
"MultiCurrency", |
#!/bin/sh | |
# | |
# author : benahm | |
# description : deploy a destructive change | |
# inputs | |
TARGET_ENV=$1 | |
SOURCE_PATH=$2 | |
# constants |