I hereby claim:
- I am furio on github.
- I am ilfurio (https://keybase.io/ilfurio) on keybase.
- I have a public key whose fingerprint is E068 A14A FD23 825E 3D31 F363 A639 8257 BDC2 A709
To claim this, I am signing this object:
#!/bin/bash | |
LUAVER=5.4.0 | |
LIBSLZVER=ff537154e7f5f2fffdbef1cd8c52b564c1b00067 | |
PCRE2VER=10.35 | |
OPENSSLVER=1.1.1g | |
HAPROXYVER=2.2.2 | |
PREFIX=/tmp/opt | |
CURDIR=${PWD} |
function __updateBastionHost { | |
AWSCOMMONARGS="--profile trans-prod --region eu-central-1" | |
AWSGROUPID=sg-0b304a3377f768295 | |
MYIP=$(curl -s v4.ifconfig.co) | |
MYIP=$(echo ${MYIP} | awk '{ print $0 "/32"}') | |
AWSSIP=$(aws ec2 describe-security-groups --group-ids $AWSGROUPID $AWSCOMMONARGS | jq -r '.[] | .[0] | .IpPermissions[] | select(.FromPort==22) | .IpRanges[] | select(.Description=="FurioThai") | .CidrIp') | |
aws ec2 revoke-security-group-ingress --group-id $AWSGROUPID $AWSCOMMONARGS --ip-permissions "[{"IpProtocol": "tcp", "FromPort": 22, "ToPort": 22, "IpRanges": [{"CidrIp": "'$AWSSIP'", "Description": "FurioThai"}]}]' | |
aws ec2 authorize-security-group-ingress --group-id $AWSGROUPID $AWSCOMMONARGS --ip-permissions IpProtocol=tcp,FromPort=22,ToPort=22,IpRanges="[{Description=\"FurioThai\",CidrIp=$MYIP}]" | |
} |
I hereby claim:
To claim this, I am signing this object:
This example can be run here: http://graphgist.neo4j.com/#!/gists/b6a3833a7ec042f77e31 If you use the code or images, please cite: Valentina Franzoni, https://gist.github.com/valefranz/b6a3833a7ec042f77e31
First step: create some authors
//CREATE authors, with name as a property
;; https://clojure.org/guides/learn/functions#_test_your_knowledge | |
; defn | |
(defn greet [] (println "Hello")) | |
; def fn | |
(def greet (fn [] (println "Hello"))) | |
; def with # | |
(def greet #(println "Hello")) |
#!groovy | |
import groovy.json.JsonOutput | |
import groovy.json.JsonSlurper | |
/* | |
Please make sure to add the following environment variables: | |
HEROKU_PREVIEW=<your heroku preview app> | |
HEROKU_PREPRODUCTION=<your heroku pre-production app> | |
HEROKU_PRODUCTION=<your heroku production app> |
/* | |
Polyfill for the Object.watch/Object.unwatch functions available in Mozilla browsers | |
https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object/watch | |
you have a test here: | |
http://www.telecable.es/personales/covam1/deployToNenyures/SourceCode/Object.watch.test.js | |
and can read more here: | |
http://deploytonenyures.blogspot.com.es/2013/02/objectwatch-polyfill.html | |
*/ |
/* | |
* object.watch polyfill | |
* | |
* 2012-04-03 | |
* | |
* By Eli Grey, http://eligrey.com | |
* Public Domain. | |
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. | |
*/ |