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
[Unit] | |
Description=autossh reverse tunnel | |
After=network.target | |
[Service] | |
User=<local_user> | |
Environment="AUTOSSH_GATETIME=0" | |
ExecStart=/usr/bin/autossh -M 0 -o "ServerAliveInterval 30" -o "ServerAliveCountMax 10" -NR <remote_port>:localhost:<local_port> <remote_user>@<address> | |
[Install] |
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
import time | |
import numpy as np | |
from numpy.fft import fft2, ifft2 | |
from matplotlib import pyplot, animation | |
def fft_convolve2d(board, kernal): | |
board_ft = fft2(board) | |
kernal_ft = fft2(kernal) | |
height, width = board_ft.shape |
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
''' | |
http://www.fogcreek.com/jobs/dev | |
Find a 9 letter string of characters that contains only letters from: acdegilmnoprstuw | |
such that the hash(the_string) is: 945924806726376 | |
if hash is defined by the following pseudo-code: | |
Int64 hash (String s) { |