This file contains hidden or 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 | |
# Launches socat+npiperelay to relay the gpg-agent socket file for use in WSL | |
# See https://justyn.io/blog/using-a-yubikey-for-gpg-in-windows-10-wsl-windows-subsystem-for-linux/ for details | |
GPGDIR="${HOME}/.gnupg" | |
USERNAME=Vincent | |
# I use the same username for wsl and windows, but feel free to modify the paths below if that isn't the case | |
WIN_GPGDIR="C:/Users/${USERNAME}/AppData/Roaming/gnupg" | |
NPIPERELAY="${HOME}/npiperelay.exe" |
This file contains hidden or 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
# On the host to run the container | |
docker run --privileged -i -t -v ~/host-folder-to-mount:/root/folder-ro:ro ubuntu | |
# Inside the container | |
# Need to create the upper and work dirs inside a tmpfs. | |
# Otherwise OverlayFS complains about AUFS folders. | |
mkdir -p /tmp/overlay && \ | |
mount -t tmpfs tmpfs /tmp/overlay && \ | |
mkdir -p /tmp/overlay/{upper,work} && \ | |
mkdir -p /root/folder && \ |
This file contains hidden or 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 | |
//*/public class PhpJava { public static void main(String[] args) { System.out.printf("/*%s", | |
//\u000A\u002F\u002A | |
class PhpJava { | |
static function main() { | |
echo(//\u000A\u002A\u002F | |
"Hello World!"); | |
}} | |
//\u000A\u002F\u002A | |
PhpJava::main(); |
This file contains hidden or 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/local/bin/bash | |
############################### | |
# Created by John Ramsden | |
# Github Ramsdenj | |
############################### | |
# Used script by jedediahfrey@github and post by Tango@FreeNAS forums as reference | |
# https://forums.freenas.org/index.php?threads/guide-setting-up-transmission-with-openvpn-and-pia.24566/ |
This file contains hidden or 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
<html> | |
<head> | |
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script> | |
</head> | |
<body> | |
<img id="viewer" src="" width="800px"/> | |
<div id="info"> </div> | |
<script> | |
$(function() { |
This file contains hidden or 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
"" feko | |
autocmd BufNewFile,BufRead *.pre set filetype=feko | |
autocmd filetype feko call Feko() | |
function! Feko() | |
"" Syntax Highlight | |
set syntax=feko |
This file contains hidden or 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
{- | |
x^(n-1) % n == 1 | |
k == n-1 == d*(2^m) | |
und | |
a^d % n == (1 || n-1) | |
oder irgendeine | |
a^(d * (2^i)) % n == n-1 | |
davon, i = 1, 2, 3 ... m | |
-} |
This file contains hidden or 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
int MillerRabin(uint32_t a, int n) | |
{ | |
/* x^(n-1) % n == 1 */ | |
/* k == n-1 == d*(2^m) */ | |
/* davon : | |
* a^d % n == 1 | |
* oder | |
* a^(d * (2^i)) % n == n-1 | |
* davon, i = 1, 2, 3 ... |