Skip to content

Instantly share code, notes, and snippets.

View giskou's full-sized avatar
👹

Giannis Skoulis giskou

👹
View GitHub Profile
@giskou
giskou / cleanup.sh
Last active February 19, 2020 08:27 — forked from superseb/cleanup.sh
Cleanup host added as custom to Rancher 2.0
#!/usr/bin/env sh
sudo systemctl stop docker.service
cleanupdirs="/var/lib/etcd /etc/kubernetes /etc/cni /opt/cni /var/lib/cni /var/run/calico /opt/rke /var/lib/docker"
for dir in $cleanupdirs; do
echo "Removing $dir"
rm -rf $dir
done
sudo systemctl start docker.service
@giskou
giskou / shell-info-docker-vm-windows.sh
Last active January 23, 2020 09:29 — forked from jongio/ssh-info-docker-vm-windows.sh
Get shell with root access to the VM that runs Docker on your Windows host.
#!/usr/bin/env bash
exec docker run --privileged --rm -it -v /var/run/docker.sock:/var/run/docker.sock -v /usr/local/bin/docker:/usr/local/bin/docker alpine docker run --net=host --ipc=host --uts=host --pid=host -it --security-opt=seccomp=unconfined --privileged --rm -v /:/host alpine chroot /host
@giskou
giskou / SSLPoke.java
Created June 28, 2016 08:51 — forked from 4ndrej/SSLPoke.java
Test of java SSL / keystore / cert setup. Check the commet #1 for howto.
import javax.net.ssl.SSLSocket;
import javax.net.ssl.SSLSocketFactory;
import java.io.*;
/** Establish a SSL connection to a host and port, writes a byte and
* prints the response. See
* http://confluence.atlassian.com/display/JIRA/Connecting+to+SSL+services
*/
public class SSLPoke {
public static void main(String[] args) {