https://rawgit.com/theel0ja/915f2047d7139eedd78118cb973aaec7/raw/index.html
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
cd /etc/letsencrypt/live/xmpp.your-domain.com | |
cat privkey.pem cert.pem chain.pem > /etc/ejabberd/ejabberd.pem |
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
#!/usr/bin/env bash | |
# Combine function | |
combine() { | |
# move to the correct let's encrypt directory | |
cd /etc/letsencrypt/live/$SITE | |
# cat files to make combined .pem for haproxy | |
cat fullchain.pem privkey.pem > /etc/haproxy/certs/$SITE.pem | |
} |
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> | |
<p class="ciu_embed" data-feature="once-event-listener" data-periods="future_1,current,past_1,past_2" data-accessible-colours="false"> | |
<a href="http://caniuse.com/#feat=once-event-listener">Can I Use once-event-listener?</a> Data on support for the once-event-listener feature across the major browsers from caniuse.com. |
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 lang="en"> | |
<head> | |
<!-- Required meta tags --> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<!-- Bootstrap CSS --> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.0/css/bootstrap.min.css" integrity="sha256-NJWeQ+bs82iAeoT5Ktmqbi3NXwxcHlfaVejzJI2dklU=" crossorigin="anonymous" /> |
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
# Jos käytät mod_rewriteä, älä rewriteä acme-challenge kansiota | |
RewriteRule ^\.well-known\/acme-challenge\/ - [L] |
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
# MANUAL: comment out `AcceptEnv LANG LC_*` from /etc/ssh/sshd_config | |
sudo service sshd restart | |
# MANUAL: relogin | |
sudo nano /etc/apt/sources.list | |
# MANUAL: enable universe repositories on ubuntu 18.04 | |
sudo apt update | |
sudo apt upgrade -y |
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
DEB_FILE="debootstrap_1.0.67+deb8u1_all.deb" | |
FOLDER_NAME="temp" | |
mkdir $FOLDER_NAME | |
cd $FOLDER_NAME | |
ar vx ../$DEB_FILE | |
# useless shit | |
rm debian-binary |
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
sudo apt install certbot -t stretch-backports | |
sudo pip install 'git+https://gitlab.com/cspublic/certbot-plugin-gandi.git' | |
sudo mkdir /etc/letsencrypt | |
sudo touch /etc/letsencrypt/dnsgandi.ini | |
sudo chmod 600 /etc/letsencrypt/dnsgandi.ini | |
sudo nano /etc/letsencrypt/dnsgandi.ini | |
sudo certbot --server https://acme-v02.api.letsencrypt.org/directory \ |
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
rm -rf dist/ *.tar.gz GeoLite2-*/ | |
wget https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz | |
wget https://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.tar.gz | |
wget https://geolite.maxmind.com/download/geoip/database/GeoLite2-ASN.tar.gz | |
tar -xzvf GeoLite2-City.tar.gz | |
tar -xzvf GeoLite2-Country.tar.gz | |
tar -xzvf GeoLite2-ASN.tar.gz |