On the remote host:
ssh-keygen -t rsa -b 2048
The key location is /root/.ssh/id_rsa
.
function url_sep(url) { | |
return url.match(/\?/) ? "&" : "?"; | |
} |
import time | |
class SelfCleaningDict(dict): | |
def __init__(self, time_out=3600, prone_interval=None): | |
self.timeout = time_out | |
self.prone_interval = time_out // 10 or prone_interval | |
self.last_prone = None | |
if not self.timeout: |
data = "ABCDEFG1234" * 1000000000 | |
x = lambda: hash(data) | |
import timeit | |
for i in range(10): | |
print(f"#{i} took {timeit.timeit(x, number=1)} secs") |
/** | |
* A simple REPL for Polish Notation / Prefix Notation. | |
* Compile with: | |
* gcc -std=c99 -Wall calc.c -ledit -o calc | |
* | |
* Examples: | |
* ----------- | |
* calc> * / + 2 2 2 + 1 2 | |
* Result is: 6.000000 | |
* |
function lazyLoad(element, type, rel, link, crossOrigin = "anonymous", integrity = false) { | |
var x = document.createElement(element); | |
x.type = type; | |
x.rel = rel; | |
x.href = link; | |
// subresource integrity for external content from different domains | |
if (integrity) { | |
x.crossOrigin = crossOrigin; | |
x.integrity = integrity; |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<style type="text/css"> | |
text{ | |
font-family:Helvetica, Arial, sans-serif; | |
font-size:11px; | |
pointer-events:none; |
@echo off | |
:: Basic welcome message | |
echo Dieses Skript wird die grundlegenden Bestandteile installieren. | |
echo Nach der Installation sollte sich das Programm ohne Probleme nutzen lassen. | |
echo. | |
:: Are you sure prompt | |
setlocal | |
:PROMPT |
/* Copyright 2017 Google Inc. */ | |
/** | |
* Swaps the display settings of two elements. Before calling, exactly one | |
* of the two elements should have style="display:none" and it shows the one | |
* that is hidden and hides the one that is shown. | |
*/ | |
function _showHide(id1, id2) { | |
var x1 = document.getElementById(id1); |