Skip to content

Instantly share code, notes, and snippets.

Avatar

Kasra Bigdeli githubsaturn

View GitHub Profile
View rsync-looper.sh
#!/bin/bash
mkdir ~/.ssh
# Originally: cat private.key | openssl base64 | tr -d '\n'
echo $PRIVATE_KEY_BASE_64 | openssl base64 -A -d >~/.ssh/private.key
chmod 700 ~/.ssh/private.key
ssh-keyscan -p $REMOTE_SSH_PORT -H $REMOTE_SSH_ADDRESS >>~/.ssh/known_hosts
View postman_collection
{
"info": {
"_postman_id": "6e144ca0-1d90-461e-ab75-88f7dbb93bdc",
"name": "PayPal REST API Simulation - Payouts",
"description": "The PayPal sandbox environment enables you to pass specific information in a request to trigger simulated positive and negative test scenarios. The simulated responses mimic actual API responses without calling downstream services. You can handle these responses in your code to manage your buyer’s experience.\n\nThis collection provides 4 examples of different simulations. For a complete list of negative and positive simulations you can send, visit our [Test Payouts developer docs](https://developer.paypal.com/docs/payouts/integrate/test-payouts/#show-payout).",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "PayPal Payment",
View gist:5cb2bacd059025d763d0717e5cb3ef9b
~ docker inspect captain-overlay-network         
[
    {
        "Name": "captain-overlay-network",
        "Id": "z7x41ato6nhodqz03pvsdadmh",
        "Created": "2021-10-27T01:53:08.549111816Z",
        "Scope": "swarm",
        "Driver": "overlay",
        "EnableIPv6": false,
View accept.json
{
"ModelInfo":
{
"modelName": "ACCEPT Model",
"modelId": "accept",
"authKey": "aaHYJJb4hcrmBYY3"
}
,
"CRF": [
{
View epic.json
{
"ModelInfo":
{
"modelId": "epic",
"authKey": "aaHYJJb4hcrmBYY3"
}
,
"CRF": [
{
"CRF_NAME": "EPIC",
View debug-captain-temp
#!/bin/sh
set +e
set -x
if [[ $# -eq 0 ]] ; then
echo 'PROVIDE YOUR IP'
exit 0
fi