list vcls
varnishadm -n /var/run/varnish-home vcl.list
Show a full vcl
varnishadm -n /var/run/varnish-home vcl.show <vcl-id>
Compile a vcl on varnish - make sure to provide absolute path
#!/usr/bin/env bash | |
set -o errexit | |
set -o nounset | |
set -o pipefail | |
# Set magic variables for current file & dir | |
__dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | |
echo "info : __dir is ${__dir}" | |
__file="${__dir}/$(basename "${BASH_SOURCE[0]}")" | |
echo "info : __file is ${__file}" |
list vcls
varnishadm -n /var/run/varnish-home vcl.list
Show a full vcl
varnishadm -n /var/run/varnish-home vcl.show <vcl-id>
Compile a vcl on varnish - make sure to provide absolute path
terraform output -json | jq --raw-output '."aws-iam_creds-iam_admin".value.encrypted_secret'| base64 -D | keybase pgp decrypt |
ssh-keygen -yf private-key.pem > public-key.pub |
I hereby claim:
To claim this, I am signing this object:
#copy the below script to your local machine | |
#create an alias for this script and put it in your profile load file like ~/.zshrc or ~/.bashrc | |
function clone() { | |
echo ${1} > clone-url | |
hostname=$(perl -F'/' -lane 'print $F[2]' clone-url) | |
hn_github="github.com" | |
if [[ "$hostname" == ${hn_github} ]]; | |
then | |
#browser url: https://github.com/swarupdonepudi/hypriot-k8s-userdata | |
#ssh url: [email protected]:swarupdonepudi/hypriot-k8s-userdata.git |
import dns.resolver | |
my_resolver = dns.resolver.Resolver() | |
for data in my_resolver.query("test.db.cforcoins.com", 'cname'): | |
print(data.target) | |
Output : | |
test-db-cluster.cluster-criapcajhism.ap-south-1.rds.amazonaws.com. |
sudo killall -HUP mDNSResponder |
curl -H "Origin: https://<origin-host-utl>" \ | |
-H "Access-Control-Request-Method: GET" \ | |
-H "Access-Control-Request-Headers: X-Requested-With" \ | |
-X OPTIONS --verbose \ | |
https://<target-url> |
public static String convertStackTraceToString(Exception e) { | |
StringWriter sw = new StringWriter(); | |
e.printStackTrace(new PrintWriter(sw)); | |
return sw.toString(); | |
} |