diff --git a/shell/addtables.sh b/shell/addtables.sh index 1d3d78c2..efd2ee62 100755 --- a/shell/addtables.sh +++ b/shell/addtables.sh @@ -1,7 +1,6 @@ #!/bin/sh sudo iptables -t nat -L # look rules before sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8000 -sudo iptables -t nat -A PREROUTING -p tcp --dport 443 -j REDIRECT --to-ports 4430 sudo iptables -t nat -L # look reles after #sudo iptables -t nat -D PREROUTING 1 diff --git a/shell/c9kill.sh b/shell/c9kill.sh deleted file mode 100755 index 44ced9bf..00000000 --- a/shell/c9kill.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh -kill -9 `ps ax|grep node-openshift|grep -v grep|awk '{print $1}'` -# print finded process -ProcessList=`ps ax|grep node-openshift` -echo $ProcessList -# getting pid of process -PID=`echo "${ProcessList}"|grep -v grep|awk '{print $1}'` -echo $PID -#kill it -if test ! $PID -then echo 'process not found' -else kill -9 $PID && echo 'killed process' -fi \ No newline at end of file diff --git a/shell/cloudcmd.bat b/shell/cloudcmd.bat deleted file mode 100644 index 280f6023..00000000 --- a/shell/cloudcmd.bat +++ /dev/null @@ -1,9 +0,0 @@ -:: ------------------------------------- -:: Changing charset back to 866, because -:: all win32 default commands, that work -:: thru cmd.exe showing out in unicode -:: charset. So Cloud Commander changes -:: 866 charset to Unicode 65001 sometime -:: when it's neaded. -:: ------------------------------------- -node ../cloudcmd || chcp 866 \ No newline at end of file diff --git a/shell/deploy.sh b/shell/deploy.sh deleted file mode 100755 index d91f5825..00000000 --- a/shell/deploy.sh +++ /dev/null @@ -1,11 +0,0 @@ -echo 'jitsu' -cp package.json tmp/package.json -echo 'y'|jitsu deploy -echo '://cloudcmd.jit.su' -cp tmp/package.json package.json -echo 'appfog' -af update -echo '://cloudcmd.aws.af.cm' -echo 'cloud foundry' -vmc push -echo '://cloudcmd.cloudfoundry.com' \ No newline at end of file diff --git a/shell/kill.js b/shell/kill.js deleted file mode 100644 index 8d85033c..00000000 --- a/shell/kill.js +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env node -/* c9.io kill active node process */ - -(function(){ - 'use strict'; - - var exec = require('child_process').exec, - lCmd = 'kill -9' + ' ' + /* kill finded process */ - '`ps ax' + '|' + /* show all process */ - 'grep node-openshift' + '|' + /* find node-openshift */ - 'grep -v grep' + '|' + /* exlude grep command */ - 'awk "{print $1}"`'; /* show first collumn */ - - exec(lCmd, function(error, stdout, stderr){ - console.log(error || stdout || stderr); - }); - -})();