This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Cylon = require('cylon'); | |
Cylon.Logger.setup({ level: 'debug' }); | |
Cylon.api({ | |
host: '0.0.0.0', | |
port: '3000', | |
ssl: false | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FileOrig=$1 | |
FileDest=$2 | |
if [ -z $FileOrig -o -z $FileDest ]; then | |
echo "$0 FileOriginal FileDestion" | |
exit | |
fi | |
FileOrigNew=$FileOrig\.new | |
cp $FileOrig $FileOrigNew |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
option=$1 | |
geonodeBackup='/home/geonode_backups' | |
mkdir $geonodeBackup | |
date=$(date +%Y-%m-%d-%H) | |
function stopServices | |
{ | |
echo "Stopping services" | |
sudo service apache2 stop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
echo "Hello World $1 $2 <-" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo killing dockers | |
for i in $(docker ps|tr -s " "|cut -d' ' -f1|grep -v CON); do echo killing $i && docker kill $i ; done | |
echo deleting dockers | |
for i in $(docker ps|tr -s " "|cut -d' ' -f1|grep -v CON); do echo deleting $i && docker rm -f $i ; done | |
echo deleting images | |
for i in $(docker images|tr -s " "|cut -d' ' -f3|grep -v IMAGE); do echo Deleting $i && docker rmi -f $i ; done | |
echo Cleaning unused docker volumes | |
rm -fr /var/lib/docker/volumes/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
scriptsPath='/home/ubuntu/aws-hostcontainer' | |
compose=/usr/local/bin/docker-compose | |
source $scriptsPath/instances/instanceVars.sh | |
echo "Getting into $dockerPath" | |
cd $dockerPath | |
echo "stopping docker-$dockerEnv-compose.yml" | |
$compose -f docker-$dockerEnv-compose.yml pull | |
$compose -f docker-$dockerEnv-compose.yml down |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo sed -i 's:http_proxy= http:http_proxy="" /usr/bin/curl http:g' /etc/cron.d/agentupdate | |
cat /etc/cron.d/agentupdate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
#Maintainer: jailbirt. | |
#About node_modules. | |
#By default I override your local node_modules directory. | |
#This is intended for working without installing dependencies by using development images. | |
#WEB | |
theeye-web: | |
image: interactar/theeye-web:comafi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo off | |
set arg1=%1 | |
set arg2=%2 | |
shift | |
shift | |
..\mingw64\bin\curl -o /dev/null -s -w %%{time_total} %arg1% > ..\tmp\responseTime.txt | |
set /p VAR=<..\tmp\responseTime.txt | |
IF %VAR% GEQ %arg2% ( | |
echo Response time alto! %VAR%, expected %arg2% | |
echo failure |
OlderNewer