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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
from __future__ import print_function | |
import base64 | |
import os | |
import sys | |
from datetime import datetime, timedelta | |
from pprint import pprint | |
from time import sleep | |
import splunklib.client as client |
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
#!/usr/bin/env bash | |
# | |
# This unlocks keyring that is necessary for secure secret storage that is used by Brightside | |
# Tested on CentOS 7 | |
# | |
# Usage: . ./unlock_keyring_for_bright.sh | |
# | |
## Test for an existing bus daemon, just to be safe: |
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
${jobcard} | |
//DEFINE EXEC PGM=IDCAMS | |
//SYSPRINT DD SYSOUT=* | |
//SYSIN DD * | |
DEFINE CLUSTER (NAME(${prefix}.ZFS) - | |
LINEAR - | |
TRACKS(80000 80000) - | |
SHAREOPTIONS(3)) | |
//CREATE EXEC PGM=IOEFSUTL,REGION=0M,COND=(0,LT), | |
// PARM=('format -aggregate ${prefix}.ZFS') |
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
# Runtime options require by Rocket open-source: | |
export _CEE_RUNOPTS="FILETAG(AUTOCVT,AUTOTAG) POSIX(ON)" | |
export _BPXK_AUTOCVT=ON | |
export _TAG_REDIR_ERR=txt | |
export _TAG_REDIR_IN=txt | |
export _TAG_REDIR_OUT=txt | |
export _BPX_SHAREAS=YES | |
export _BPX_SPAWN_SCRIPT=YES | |
export ROCKET_HOME=${rocket_home} |
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
const os = require('os'); | |
const vsam = require('vsam.js'); | |
const vsamDsn = os.userInfo().username + '.TEST.VSAM.KSDS'; | |
const schema = { | |
key: { | |
type: "string", | |
maxLength: 5 | |
}, |
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 pysnooper | |
@pysnooper.snoop() | |
def binary_search(sorted_collection, item): | |
left = 0 | |
right = len(sorted_collection) - 1 | |
while left <= right: | |
midpoint = (left + right) // 2 | |
current_item = sorted_collection[midpoint] |
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
Windows Registry Editor Version 5.00 | |
[HKEY_CURRENT_USER\Software\Wine\Mac Driver] | |
"LeftCommandIsCtrl"="Y" | |
"RightCommandIsCtrl"="Y" | |
"LeftOptionIsAlt"="Y" | |
"RightOptionIsAlt"="Y" | |
[HKEY_CURRENT_USER\Control Panel\Desktop] | |
"FontSmoothing"="2" |
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
quicksort :: Ord a => [a] -> [a] | |
quicksort [] = [] | |
quicksort (p:xs) = (quicksort lesser) ++ [p] ++ (quicksort greater) | |
where | |
lesser = filter (< p) xs | |
greater = filter (>= p) xs |
OlderNewer