Skip to content

Instantly share code, notes, and snippets.

@mtorrisi
mtorrisi / nginx_signing.key
Created April 12, 2018 13:59
nginx_signing.key
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2.0.22 (GNU/Linux)
mQENBE5OMmIBCAD+FPYKGriGGf7NqwKfWC83cBV01gabgVWQmZbMcFzeW+hMsgxH
W6iimD0RsfZ9oEbfJCPG0CRSZ7ppq5pKamYs2+EJ8Q2ysOFHHwpGrA2C8zyNAs4I
QxnZZIbETgcSwFtDun0XiqPwPZgyuXVm9PAbLZRbfBzm8wR/3SWygqZBBLdQk5TE
fDR+Eny/M1RVR4xClECONF9UBB2ejFdI1LD45APbP2hsN/piFByU1t7yK2gpFyRt
97WzGHn9MV5/TL7AmRPM4pcr3JacmtCnxXeCZ8nLqedoSuHFuhwyDnlAbu8I16O5
XRrfzhrHRJFM1JnIiGmzZi6zBvH0ItfyX6ttABEBAAG0KW5naW54IHNpZ25pbmcg
a2V5IDxzaWduaW5nLWtleUBuZ2lueC5jb20+iQE+BBMBAgAoAhsDBgsJCAcDAgYV
@mtorrisi
mtorrisi / Start-Vagrant.bat
Created November 15, 2017 09:03 — forked from Iristyle/Start-Vagrant.bat
Windows startup script to fire up a Vagrant VM safely on boot (using Run registry key for instance)
ECHO OFF
cd /d %~dp0
for /f "tokens=2* delims= " %%F IN ('vagrant status ^| find /I "default"') DO (SET "STATE=%%F%%G")
ECHO Close this window if it remains open, and http://localhost:8081 is responsive
IF "%STATE%" NEQ "saved" (
ECHO Starting Vagrant VM from powered down state...
vagrant up
) ELSE (
#!/bin/csh
#################################################################
# Csh Script to retrieve 45 online Data files of 'ds083.2',
# total 867.77M. This script uses 'wget' to download data.
#
# Highlight this script by Select All, Copy and Paste it into a file;
# make the file executable and run it on command line.
#
# You need pass in your password as a parameter to execute
# this script; or you can set an environment variable RDAPSWD
&time_control
run_days = 0,
run_hours = 12,
run_minutes = 0,
run_seconds = 0,
start_year = 2017, 2017, 2017,
start_month = 05, 05, 05,
start_day = 11, 11, 11,
start_hour = 00, 00, 00,
start_minute = 00, 00, 00,
&share
wrf_core = 'ARW',
max_dom = 2,
start_date = '2017-05-11_00:00:00','2017-05-11_00:00:00',
end_date = '2017-05-22_00:00:00','2017-05-22_00:00:00',
interval_seconds = 21600
io_form_geogrid = 2,
/
&geogrid
@mtorrisi
mtorrisi / new_tenant.sh
Last active January 31, 2017 14:33 — forked from jriguera/new_tenant.sh
Openstack CLI commands to create a new Project/Tenant, networks and security group using specific Openstack service CLI commands
#!/bin/sh
############## Define those variables for the tenant
TENANT=$1
PASSWORD=$2
TENANT_DESC="$3"
TENANT_EMAIL="$4"
TENANT_NET_CIDR="10.0.1.0/24"
TENANT_NET_GW="10.0.1.1"
DEFAULT_DNS="8.8.8.8"
@mtorrisi
mtorrisi / 1-create-task-curl
Created November 16, 2016 14:11
Create Futuregateway task
## COMMAND
curl -i -H "Content-Type: application/json" -X POST -d '{"application":"2","description":"sayhello@csgfsdk test run", "arguments": ["\"I am saying hello!\""], "output_files": [{"name":"sayhello.data"}], "input_files": [{"name":"sayhello.sh"},{"name":"sayhello.txt"}]}' http://151.97.41.44:8888/v1.0/tasks?user=user
## EXPECTED OUTPUT
{
"status": "WAITING",
"application": "2",
"date": "2016-11-16T09:28:47Z",
"description": "sayhello@csgfsdk test run",
"output_files": [
@mtorrisi
mtorrisi / sayhello.txt
Created November 16, 2016 14:19
Say hello input file
!!!Say hello!!!
---------------
Demonstrative application for APIServer
using I/O Sandboxing and arguments
@mtorrisi
mtorrisi / sayhello.sh
Created November 16, 2016 14:17
Demo sayhello script
#!/bin/bash
INPFILE=sayhello.txt
DATAFILE=sayhello.data
DELAY=2
printf "starting at: " ; date
printf "running on: "; $(hostname -f)
printf "whoami: "; whoami
printf "home: "; echo $HOME
printf "listing home:\n"
ls -l $HOME
## COMMAND
curl -o sayhello.out -X GET "http://151.97.41.66:8888/v1.0/file?path=%2Ftmp%2F137e989e-abdf-11e6-b19b-fa163e72d9ab%2F16tmp137e989eabdf11e6b19bfa163e72d9ab_48&name=sayhello.out"