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
/System/Library/Frameworks/ScreenSaver.framework/Resources/ScreenSaverEngine.app/Contents/MacOS/ScreenSaverEngine -background |
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
from pyxdameraulevenshtein import damerau_levenshtein_distance | |
words = [line.strip().split(" ")[1] for line in open('wordlist.txt')] | |
out = [] | |
for word in words: | |
if len(out) >= 2148: break | |
if len(word) < 4 or len(word) > 8: continue | |
if len(out) > 0 and min(damerau_levenshtein_distance(x, word) for x in out) < 2: continue | |
if any(x.startswith(word[:4]) for x in out): continue | |
print word | |
out.append(word) |
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
From -> https://forum.synology.com/enu/viewtopic.php?t=98124 | |
1. Go to your console ( https://console.developers.google.com/ ) and create a project. | |
2. Create a bucket in Storage -> Cloud Storage -> Storage Browser | |
3. Go to Storage -> Cloud Storage -> Storage Access and enable Interoperability | |
4. Generate access key | |
5. Now go to DSM 5.2 and install Hyper Backup if you havent already. | |
6. Pick S3 storage | |
7. The input next to the label "S3 Server" is both text input and drop-down. This is where you write "storage.googleapis.com" | |
8. Enter key and secret. |
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
# ------------------------------------------------ | |
# Config files are located in /etc/wireguard/wg0 | |
# ------------------------------------------------ | |
# ---------- Server Config ---------- | |
[Interface] | |
Address = 10.10.0.1/24 # IPV4 CIDR | |
Address = fd86:ea04:1111::1/64 # IPV6 CIDR | |
PostUp = iptables -A FORWARD -i wg0 -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE; ip6tables -A FORWARD -i wg0 -j ACCEPT; ip6tables -t nat -A POSTROUTING -o eth0 -j MASQUERADE # Add forwarding when VPN is started | |
PostDown = iptables -D FORWARD -i wg0 -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE; ip6tables -D FORWARD -i wg0 -j ACCEPT; ip6tables -t nat -D POSTROUTING -o eth0 -j MASQUERADE # Remove forwarding when VPN is shutdown |
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
package main | |
import ( | |
"context" | |
"crypto/rand" | |
"encoding/hex" | |
"fmt" | |
"html/template" | |
"net/http" | |
"os" |
OlderNewer