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 | |
# Usage ./updown.sh x.x.x.x | |
function hostUp() { | |
msg="\"$1 is UP\"" | |
osascript -e "display notification ${msg} with title \"Host UP\"" | |
} | |
function hostDown() { |
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 | |
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 \ |
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
### 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: |
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
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$ |