Skip to content

Instantly share code, notes, and snippets.

View 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 Nov 15, 2017 — forked from Iristyle/Start-Vagrant.bat
Windows startup script to fire up a Vagrant VM safely on boot (using Run registry key for instance)
View Start-Vagrant.bat
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 (
View download-lbc.csh
#!/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
View namelist.input
&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,
View namelist.wps
&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 Jan 31, 2017 — 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
View new_tenant.sh
#!/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 / sayhello.txt
Created Nov 16, 2016
Say hello input file
View sayhello.txt
!!!Say hello!!!
---------------
Demonstrative application for APIServer
using I/O Sandboxing and arguments
@mtorrisi
mtorrisi / sayhello.sh
Created Nov 16, 2016
Demo sayhello script
View sayhello.sh
#!/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
View 4-retrieve-output-curl
## 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"
View 2-upload-files-curl
## COMMAND
curl -i -F "file[]=@sayhello.txt" -F "file[]=@sayhello.sh" "http://151.97.41.66:8888/v1.0/tasks/16/input?user=user"
## EXPECTED OUTPUT
{
"files": [
"sayhello.txt",
"sayhello.sh"
],
"message": "uploaded",