sysctl -a | grep swap
$ sudo pkill -HUP -u _windowserver
make sure the following lines are set in /etc/sshd_config (or /etc/ssh/sshd_config on ubuntu) | |
(they all exist already, but are commented, some may have a value of yes) | |
PasswordAuthentication no | |
ChallengeResponseAuthentication no | |
UsePAM no | |
then restart the ssh server (uncheck / recheck 'Remote Login' in the 'System Preferences' -> 'Sharing' panel) |
#!/bin/sh | |
wget https://mirrors.cnnic.cn/apache/maven/maven-3/3.5.2/binaries/apache-maven-3.5.2-bin.tar.gz | |
tar xzf apache-maven-3.5.2-bin.tar.gz | |
mkdir /opt/maven | |
mv apache-maven-3.5.2/ /opt/maven/ | |
alternatives --install /usr/bin/mvn mvn /opt/maven/apache-maven-3.5.2/bin/mvn 1 | |
alternatives --config mvn |
import SimpleHTTPServer | |
class CORSHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): | |
def send_head(self): | |
"""Common code for GET and HEAD commands. | |
This sends the response code and MIME headers. | |
Return value is either a file object (which has to be copied | |
to the outputfile by the caller unless the command was HEAD, | |
and must be closed by the caller under all circumstances), or |