Skip to content

Instantly share code, notes, and snippets.

View SpiralOutDotEu's full-sized avatar
🤯
If ZK hasn't profoundly shocked you, you haven't understood it yet

Nikos Koumbakis SpiralOutDotEu

🤯
If ZK hasn't profoundly shocked you, you haven't understood it yet
View GitHub Profile
@SpiralOutDotEu
SpiralOutDotEu / installDockerToLinuxMint.sh
Last active March 12, 2018 15:02
Docker installation in Linux Mint (and Ubuntu)
# Install missing packages
# Linux Mint user need that. Ubuntu users have it pre-installed
sudo apt-get update
sudo apt-get install -y curl cgroup-lite lxc
# Install Docker
curl -sSL https://get.docker.com/ | sudo sh
# Close this terminal and start a new one to make changes take effect
@SpiralOutDotEu
SpiralOutDotEu / RunDockerAlpine.sh
Created December 28, 2015 17:19
Run Docker Alpine shell script
sudo docker-run -i -t alpine sh
@SpiralOutDotEu
SpiralOutDotEu / RunDockerUbuntu.sh
Last active December 28, 2015 18:23
Run Docker Ubuntu shell script
sudo docker-run -i -t ubuntu bash
@SpiralOutDotEu
SpiralOutDotEu / MakeHeaderFloatingInBlogger.css
Last active December 28, 2015 17:44
Make header floating in blogger
#header {position:fixed; top:0px; margin:auto; z-index:100000; width:100%;}
.main-outer {padding:20px 0; }
@SpiralOutDotEu
SpiralOutDotEu / DockerProtectUsingNamespace.sh
Created December 30, 2015 18:50
change docker.service to protect using namespace
# replace in /lib/systemd/system/docker.service :
# this
# ExecStart=/usr/bin/docker -d -H fd://
# with this
# ExecStart=/usr/bin/docker --userns-remap=default -s overlay -d -H fd://
sed -i 's/ExecStart=\/usr\/bin\/docker -d -H fd:\/\//ExecStart=\/usr\/bin\/docker --userns-remap=default -s overlay -d -H fd:\/\//' /lib/systemd/system/docker.service
# reload uints
systemctl daemon-reload
# Restart daemon
systemctl restart docker
#full
sudo apt-get autoremove
#To delete downloaded packages (.deb) already installed (and no longer needed)
sudo apt-get clean
service docker stop
sudo docker daemon -H tcp://0.0.0.0:2375

install nodejs & npm

sudo apt-get install nodejs
sudo apt-get install npm

fix naming issue of node to ubuntu

ln -s /usr/bin/nodejs /usr/bin/node
@SpiralOutDotEu
SpiralOutDotEu / 00.create.md
Last active June 15, 2016 15:47
JHipTasks
mkdir jhip-tasks && cd jhip-tasks
yo jhipster
@SpiralOutDotEu
SpiralOutDotEu / removeNodeJS.md
Last active June 20, 2016 15:35
remove nodejs in ubuntu

sudo apt-get purge nodejs npm