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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> |
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
[ | |
{ | |
"quote": "Attention, ce flim n'est pas un flim sur le cyclimse. Merci de votre compréhension.", | |
"character": "Le narrateur" | |
}, | |
{ | |
"quote": "Monde de merde.", | |
"character": "George Abitbol" | |
}, | |
{ |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>Batch users</title> | |
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" type="text/css" /> | |
</head> | |
<body> | |
<div class="container"> |
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
read -p "Username of the VPS: " username | |
useradd -ms /bin/bash $username | |
passwd $username | |
groupadd ssh-users | |
adduser $username ssh-users | |
adduser $username sudo | |
read -p "Define a ssh port: " port | |
echo "Change ssh port to $port use ssh user@host -p $port" | |
sed -i "s/\(Port *\).*/Port $port/" /etc/ssh/sshd_config |
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
FROM node:argon | |
RUN apt-get update | |
RUN apt-get install -y zsh > /dev/null | |
RUN npm install -g -s strongloop | |
RUN npm install -g -s forever | |
RUN useradd -ms /bin/bash strongbox | |
WORKDIR /home/strongbox/Workspace | |
RUN chown -R strongbox:strongbox /home/strongbox/Workspace |
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
echo "hello test" | |
read -p "tell your name : " name | |
echo "hello $name" |
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
echo "Add docker gpg key" | |
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
echo "Add docker registery" | |
echo "deb http://apt.dockerproject.org/repo debian-jessie main" > /etc/apt/sources.list.d/docker.list | |
echo "Update registeries" | |
apt-get update > /dev/null | |
echo "Install docker-engine, git, fail2ban and curl" | |
apt-get install -y docker-engine fail2ban git curl > /dev/null | |
read -p "Username of the VPS: " username |