Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# Usage ./updown.sh x.x.x.x
function hostUp() {
msg="\"$1 is UP\""
osascript -e "display notification ${msg} with title \"Host UP\""
}
function hostDown() {
@minjatJ
minjatJ / ra-cleanup.sh
Last active May 21, 2019 15:13
Rancher Agent CleanUP
#!/bin/bash
docker rm -f $(docker ps -qa)
docker rmi -f $(docker images -q)
docker volume rm $(docker volume ls -q)
docker system prune -f
for mount in $(mount | grep tmpfs | grep '/var/lib/kubelet' | awk '{ print $3 }') /var/lib/kubelet /var/lib/rancher; do umount $mount; done
rm -rf /etc/ceph \
/etc/cni \
### Keybase proof
I hereby claim:
* I am minjatj on github.
* I am minjatj (https://keybase.io/minjatj) on keybase.
* I have a public key ASBt1ueyy-OAXur00WTnfrTamjAVRT9Hkev2AfeoFMCdygo
To claim this, I am signing this object:
@minjatJ
minjatJ / basic.basic
Last active August 29, 2015 14:27
Basic
INPUT "Quel est votre nom"; UserName$
PRINT "Bonjour "; UserName$
DO
INPUT "Combien d'étoiles voulez-vous"; NumStars
Stars$ = ""
Stars$ = REPEAT$("*", NumStars) '<-ANSI BASIC
'Stars$ = STRING$(NumStars, "*") '<-MS BASIC
PRINT Stars$
DO
INPUT "Voulez-vous plus d'étoiles"; Answer$