mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
feature(shell) rm unused
This commit is contained in:
parent
066ac7543b
commit
b40164c0f8
5 changed files with 0 additions and 52 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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'
|
||||
|
|
@ -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);
|
||||
});
|
||||
|
||||
})();
|
||||
Loading…
Add table
Add a link
Reference in a new issue