Skip to content

Instantly share code, notes, and snippets.

const response = pm.response.json();
pm.test('status should be equal to success', function() {
pm.expect(response.status).to.equal('success');
});
if (response.status === 'pending') {
postman.setNextRequest('mock delay');
} else if (response.status === 'success') {
postman.setNextRequest(null);
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
from twilio import rest
account_sid = "INSERT_HERE"
auth_token = "INSERT_HERE"
client = rest.TwilioRestClient(account_sid, auth_token)
message = client.sms.messages.create(
body="Whaatt up",
to="+1303",
from_="+1720"
#!/bin/bash
MSG_FILE=$1
TYPE_STR=$2
MSG_STR=$(cat ${MSG_FILE})
BRANCH_NAME=$(git branch | grep '*' | sed 's/* //')
TICKET_NUMBER=$(git symbolic-ref --short HEAD)
TICKET_NUMBER="${TICKET_NUMBER##*/}"
@ironprice91
ironprice91 / zsh_backup.sh
Created January 31, 2016 04:05
idea for backups and storing them as a repo
#!/bin/bash
# path to .zshrc
ZSHRC_FILE="~/.zshrc"
BACK_UP_EXT="{,.bak}"
eval \cp ${ZSHRC_FILE}${BACK_UP_EXT}
@ironprice91
ironprice91 / screenshot_cleanup.sh
Last active March 24, 2022 20:34
shell script for moving screenshots to archived screenshot dir
#!/bin/bash
DEFAULT_DIR="cd ~/Desktop/"
SCREENSHOT_ARCHIVE_DIR="screenshot_archive"
eval ${DEFAULT_DIR}
if [ ! -d "$SCREENSHOT_ARCHIVE_DIR" ];
then
mkdir "$SCREENSHOT_ARCHIVE_DIR"
@ironprice91
ironprice91 / opd.sh
Last active January 27, 2016 16:15
opendiff FN static files
#!/bin/bash
function static_opendiff {
undgrn='\e[4;32m'
txtred='\e[0;31m'
Color_Off='\e[0m'
static_repo=`pwd`
string_replace="backups/static-repo-copy"