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
flush ruleset | |
table inet filter { | |
set open_tcp { | |
type inet_service; | |
elements = { | |
80, 443 # http | |
} | |
} |
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
# Restrict SSH usage | |
AllowGroups ssh | |
AuthorizedKeysFile .ssh/authorized_keys | |
# Ciphers | |
RekeyLimit 512M 1H | |
KexAlgorithms [email protected] | |
Ciphers [email protected],[email protected] | |
MACs [email protected] | |
HostKeyAlgorithms ssh-ed25519 |
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 void Run(char[] c) | |
{ | |
var s = new List<byte>{0}; | |
int p = 0, bc = 0; | |
for (int i = 0; i < c.Length; i++) | |
{ | |
if (c[i] == '>' && s.Count == ++p) s.Add(0); | |
else if (c[i] == '<') p--; | |
else if (c[i] == '+') s[p]++; |
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
/* KeyLogger | |
* This program is free software. It comes without any warranty, to | |
* the extent permitted by applicable law. You can redistribute it | |
* and/or modify it under the terms of the Do What The Fuck You Want | |
* To Public License, Version 2. | |
*/ | |
using System; | |
using System.IO; | |
using System.Runtime.InteropServices; |
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
/* WakeOnLan | |
* This program is free software. It comes without any warranty, to | |
* the extent permitted by applicable law. You can redistribute it | |
* and/or modify it under the terms of the Do What The Fuck You Want | |
* To Public License, Version 2. | |
*/ | |
using System.Net; | |
using System.Net.Sockets; | |
using System.Globalization; |
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
public static int Hash(this string str) | |
{ | |
int hash = 5381; | |
foreach (var t in str) hash = ((hash << 5) + hash) ^ (byte) t; | |
return hash; | |
} |