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> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<p class="ciu_embed" data-feature="once-event-listener" data-periods="future_1,current,past_1,past_2" data-accessible-colours="false"> | |
<a href="http://caniuse.com/#feat=once-event-listener">Can I Use once-event-listener?</a> Data on support for the once-event-listener feature across the major browsers from caniuse.com. |
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
#!/usr/bin/env bash | |
# Combine function | |
combine() { | |
# move to the correct let's encrypt directory | |
cd /etc/letsencrypt/live/$SITE | |
# cat files to make combined .pem for haproxy | |
cat fullchain.pem privkey.pem > /etc/haproxy/certs/$SITE.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
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
:8080 { | |
gzip | |
browse | |
root /media/topfield | |
} |
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
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" | |
integrity="sha512-07I2e+7D8p6he1SIM+1twR5TIrhUQn9+I6yjqD53JQjFiMf8EtC93ty0/5vJTZGF8aAocvHYNEDJajGdNx1IsQ==" | |
crossorigin=""/> | |
<script src="https://unpkg.com/[email protected]/dist/leaflet.js" | |
integrity="sha512-A7vV8IFfih/D732iSSKi20u/ooOfj/AGehOKq0f4vLT1Zr2Y+RX7C+w8A1gaSasGtRUZpF/NZgzSAu4/Gc41Lg==" | |
crossorigin=""></script> | |
<div id="map"></div> |
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
<?php | |
// Get coords | |
function GetCoords() { | |
$coords = array(); | |
// Non IATA: | |
// Espoo -> ESP | |
$coords["HEL2_to_TLL1"] = array(x => 405, y => 286); | |
$coords["HEL2_to_FRA1"] = array(x => 329, y => 240); | |
$coords["HEL2_to_ARN4"] = array(x => 345, y => 162); |
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
#!/bin/bash | |
apt-get -y install expect | |
SECURE_MYSQL=$(expect -c " | |
set timeout 10 | |
spawn mysql_secure_installation | |
expect \"Enter current password for root:\" |
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
# Ensin, luo SSH-avaimet, jos et ole näin tehnyt | |
# Tallenna SSH-avaimet sijaintiin ~/.ssh/id_rsa (mikäli käytät Linuxia) tai Macille sopivaan kansioon (jos käytät Macia) | |
ssh-keygen | |
# Luo .git-kansio ja muut alkumäärittelyt | |
git init | |
# Lisää kaikki tiedostot muutokseen (commit) paitsi ne, jotka ovat määritelty .gitignore-tiedostossa | |
git add . | |
# Luo muutos (commit) | |
git commit -m "muutoksen kuvaus" |