Skip to content

Instantly share code, notes, and snippets.

View timilsinabishal's full-sized avatar

Bishal Timilsina timilsinabishal

View GitHub Profile
@timilsinabishal
timilsinabishal / docker-cleanup.sh
Created January 22, 2017 14:43
Script to reclaim the disk by removing unused docker data
#!bin/bash
#clean containers
docker rm $(docker ps -a -f status=exited -q)
#clean dangling images
docker rmi $(docker images -f dangling=true -q)
@timilsinabishal
timilsinabishal / startup.sh
Last active January 22, 2017 14:46
Script to automate some task when the computer boots
#!/bin/bash
set result =""
function checkAp {
nmcli -f BSSID,ACTIVE,SSID dev wifi list | awk '$3 ~ /YIPL-*/ && $2 ~ /yes/ {print $2}'
return
}
function runScripts(){
for i in $(find $1 -type f)
do
#!/bin/sh
#start contactsid_auth
#move to base folder
cd $(dirname $0)
cd ..
(cd contactsid_auth && docker-compose up -d)
(cd hpc_service && docker-compose up -d)
(cd hpc_app && docker-compose up -d)
(cd un-fts-public && docker-compose up -d)