Following the steps found on the Arch wiki: https://wiki.archlinux.org/index.php/Beginners%27_Guide
- set font
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); |
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");})(); |
// var parser = document.createElement('a'); | |
// parser.href = "http://user:secretpassword@example.com:3000/pathname/?search=test#hash"; | |
// OR | |
var parser = new URL("http://user:secretpassword@example.com:3000/pathname/?search=test#hash"); | |
parser.protocol; // => "http:" | |
parser.hostname; // => "example.com" | |
parser.port; // => "3000" | |
parser.pathname; // => "/pathname/" | |
parser.search; // => "?search=test" |
function Get-FileHash | |
{ | |
param ( | |
[String] $Path, | |
[ValidateSet('MD5', 'SHA1', 'SHA256', 'SHA384', 'SHA512')] | |
$HashName = "MD5" | |
) | |
$fullPath = Resolve-Path $Path | |
$HashType = new-object -TypeName System.Security.Cryptography."$HashName"CryptoServiceProvider | |
$file = [System.IO.File]::Open($fullPath,[System.IO.Filemode]::Open, [System.IO.FileAccess]::Read) |
function AfterRunning { | |
param ( | |
[String] $Process | |
) | |
while ((Get-Process $Process -ErrorAction SilentlyContinue | Select-Object -ExpandProperty ProcessName) -ne $null) { | |
Start-Sleep -Seconds 2 | |
Write-Host "Process still running..." | |
} | |
} |
if (Object.defineProperty && Object.getOwnPropertyDescriptor && Object.getOwnPropertyDescriptor(Element.prototype, "textContent") && !Object.getOwnPropertyDescriptor(Element.prototype, "textContent").get) { | |
(function() { | |
var innerText = Object.getOwnPropertyDescriptor(Element.prototype, "innerText"); | |
Object.defineProperty(Element.prototype, "textContent", | |
{ | |
get: function() { | |
return innerText.get.call(this); | |
}, | |
set: function(s) { | |
return innerText.set.call(this, s); |