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 lang="da-DK"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
</head> | |
<body> | |
<div> | |
<textarea id="emails"></textarea> | |
<button id="doMail"></button> |
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
using System; | |
using System.Diagnostics; | |
using System.Runtime.InteropServices; | |
using System.Runtime.CompilerServices; | |
using System.Threading; | |
using SHDocVw; | |
namespace Capto | |
{ | |
/// <summary> |
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
(function () { | |
"use strict"; | |
///// | |
// Deserialize and serialize a query string | |
function QueryString(qs) { | |
var re = /([^&=]+)=([^&]*)/g, | |
m; | |
while (m = re.exec((qs || location.search).substring(1))) { // skip the question mark | |
this[decodeURIComponent(m[1])] = decodeURIComponent(m[2]); |
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
function Grouping(title, value, count) { | |
Object.defineProperties(this, { | |
title: { value: title }, | |
value: { value: value }, | |
count: { value: count }, | |
groups: { writable: true } | |
}); | |
} | |
function getGroupedViewData(listTitle, viewTitle, success, fail) { |
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
Function CallbackWrapper { | |
param ( | |
[string]$callbackScript, | |
[object]$param, | |
[int]$order | |
) | |
$callback = [ScriptBlock]::Create($callbackScript) | |
return [PSCustomObject]@{ | |
Result = $callback.InvokeReturnAsIs($param) | |
Order = $order |
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
let securityHeaders = { | |
"Content-Security-Policy": "default-src 'self' 'unsafe-inline'", | |
"X-Xss-Protection": "1; mode=block", | |
"X-Frame-Options": "DENY", | |
"Referrer-Policy": "strict-origin-when-cross-origin", | |
"Permissions-Policy": "accelerometer=(), camera=(), geolocation=(), gyroscope=(), magnetometer=(), microphone=(), payment=(), usb=()" | |
}; | |
addEventListener('fetch', event => { | |
event.respondWith(addHeaders(event.request)); |
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
static async Task<Encoding> GetEncodingFromStream(Stream s, int bufferSize, CancellationToken ct) | |
{ | |
if (!s.CanSeek || !s.CanRead) | |
{ | |
// can't touch this | |
return Encoding.Default; | |
} | |
byte[] buffer = new byte[bufferSize]; | |
int bytesRead = await s.ReadAsync(buffer, 0, buffer.Length, ct); |
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 ~ && chmod 600 ~/.ssh/* && chmod 700 ~/.ssh && chmod 644 ~/.ssh/*.pub |
OlderNewer