Tags » Bash Script

Simple script to connect multipleFortiClient SSL VPN client

Introduction:-

The FortiGate unit supports both SSL and IPSec VPN technologies. Each combines encryption and VPN gateway functions to create private communication channels over the Internet, which helps to defray physical network costs. 588 more words

Bash Script

Starting Sensors on the Raspberry Pi

One concern about using a Raspberry Pi for high altitude balloon projects, is the ability to reboot the computer and restart data collection.  I’ve had power interrupted during flight missions, sometimes due to loose wires but often due to batteries dropping in voltage due to the cold.   1,190 more words

Balloon

How to stop Jenkins CI build by extract a value from a JSON endpoint in bash using Curl

Curl the URL to get the JSON response and pipe it to the python tool. The python code will extract the value mapped to the given key (number in this case). 56 more words

Linux/Ubuntu

Useful AWS CLI Commands -AMI

Take Our PollTo get AMI ID with tags

aws ec2 describe-images –filter Name=tag:amitype,Values=autoscale –output text | grep -i ami | awk ‘{ print  $5, $7 }’ | awk ‘NR==1{print $1}’ 109 more words

System Administration

Bash script to remove AMI's and associated snapshots older than 7 days

#!/bin/bash
amiid=`aws ec2 describe-images –filter Name=tag:amitype,Values=autoscale –output text | grep -i ami | awk ‘{ print $5, $7 }’ | awk ‘NR==1{print $1}’`
time=`aws ec2 describe-images –image-ids $amiid –query ‘Images[*].’ –output text | awk ‘{ print $2 }’` 119 more words

System Administration

System V init script(start-stop-daemon)

I’ve been looking for efficient ways to start at boot my NodeJS dependent applications, with inspiration from https://gist.github.com/alobato/1968852, I modified it to my own needs. 244 more words

Ubuntu