Skip to content

Instantly share code, notes, and snippets.

View Pelicer's full-sized avatar

William Ferreira da Silva Filho Pelicer

View GitHub Profile
@ovzer
ovzer / index.html
Last active March 28, 2024 15:08
Website that closes itself
<!doctype html><html><head><script>
window.onload = function load() {
window.close('','_parent','');
};
</script></head><body></body></html>
@hazbo
hazbo / check-container.sh
Created January 30, 2015 14:34
A small script to remove (force) a container if it exists
#!/bin/bash
CONTAINER=$1
RUNNING=$(docker inspect --format="{{ .State.Running }}" $CONTAINER 2> /dev/null)
if [ $? -eq 1 ]; then
echo "'$CONTAINER' does not exist."
else
/usr/bin/docker rm --force $CONTAINER