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
<iframe src="https://view.officeapps.live.com/op/embed.aspx?src=https://calibre-ebook.com/downloads/demos/demo.docx" width="600" height="780" style="border: none;"></iframe> |
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
<!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
# First, make SSH keys. | |
ssh-keygen | |
# Save the SSH keys to ~/.ssh/id_rsa (on Linux) or some other directory | |
# make .git directory | |
git init | |
# add all files, except the files, what are mentioned in .gitignore | |
git add . | |
# Make commit | |
git commit -m "lorem ipsum" |
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
# https://wiki.archlinux.org/index.php/Tmux#Start_tmux_on_every_shell_login | |
# https://stackoverflow.com/a/49134974 | |
# https://gist.github.com/theel0ja/3d3c1de607702b87292687d27f99141b | |
# If not running interactively, do not do anything | |
[[ $- != *i* ]] && return | |
# You can replace 0 with the session name you prefer such as "onLogin" (without parenthesis) | |
[[ -z "$TMUX" ]] && exec tmux new -A -s 0 |
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 |
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
const index = require("./index"); | |
(async () => { | |
const results = {}; | |
results.hstsPreloadOrg = await index.lookup("hstspreload.org", "chromium.hstspreload.lelux.fi", { | |
servers: ["127.0.0.1"], | |
includeTxt: false, | |
}); |
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
server { | |
listen 80; | |
listen [::]:80; | |
server_name pi.hole; | |
allow 192.0.2.15; | |
deny all; | |
root /var/www/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
# 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 |
NewerOlder