Skip to content

Instantly share code, notes, and snippets.

@theel0ja
theel0ja / How to use Git.sh
Last active July 21, 2020 22:01
How to use Git
# 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"
@theel0ja
theel0ja / google_helpful_404_page.html
Last active September 8, 2018 07:14
google helpful 404 page
<script>
var GOOG_FIXURL_LANG = (navigator.language || '').slice(0,2),GOOG_FIXURL_SITE = location.host;
</script>
<script src="https://linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js"></script>
<!-- https://github.com/theel0ja/google-linkhelp-improver -->
<link rel="stylesheet" href="https://cdn.theel0ja.info/libs/google-linkhelp-improver/dist/style.css">
<script src="https://cdn.theel0ja.info/libs/google-linkhelp-improver/dist/script.js" defer async></script>
@theel0ja
theel0ja / LetsEncryptNginx.MD
Last active April 14, 2017 18:53
Let's encrypt installation to nginx

Let's Encrypt for nginx

Tutorial for installing Let's Encrypt for nginx. Works also with reverse proxy like CloudFlare.

Tested with:

  • Ubuntu 16.04 Server 64-bit
  • Nginx 1.10.0
  • letsencrypt-auto

#Install letsencrypt-auto Use following command to install Let's Encrypt Client: