#####Dependency: openssl#####
- Create directory:
sudo mkdir /etc/nginx/ssl
cd /etc/nginx/ssl
- Create private server key:
function sleep(milliseconds) { | |
var start = new Date().getTime(); | |
while(true) { | |
if ((new Date().getTime() - start) > milliseconds) { | |
break; | |
} | |
} | |
} |
#!/bin/bash | |
# Copyright © 2021 Chirag Bhatia | |
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOF |
#####Dependency: openssl#####
sudo mkdir /etc/nginx/ssl
cd /etc/nginx/ssl
Following the steps found on the Arch wiki: https://wiki.archlinux.org/index.php/Beginners%27_Guide
Scenario: Connect from Laptop to Desktop using SSH without password prompt.
Login to Laptop terminal.
Make sure there is a .ssh directory in home folder of user and that it is only accessible to the user:
mkdir ~/.ssh
chmod 700 ~/.ssh
/etc/systemd/system/
cd /etc/systemd/system
sudo touch myservice.service
//Lazy load example | |
//Load CSS and JS files only if the pre tag elements are present within the article tag | |
$('article pre').length && (function() { | |
var mediaPath = '/assets/'; | |
$('<link>').attr({ | |
type: 'text/css', | |
rel: 'stylesheet', | |
href: mediaPath + 'css/syntax.css' | |
}).appendTo(document.head); |
GRUB_DEFAULT=saved
grub2-mkconfig -o /boot/grub2/grub.cfg
javascript:(function(){var extensionID=location.href.match(/\w{32}/g)[0];location.href="http://clients2.google.com/service/update2/crx?response=redirect&x="+escape("id%3D")+extensionID+escape("%26uc%26lang%3Den-US&prod=chrome");})(); |