sudo port -p upgrade outdated
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
wget -O /dev/null http://hgd-speedtest-1.tele2.net/10GB.zip | |
# courtesy of Tele2 http://speedtest.tele2.net |
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
# Install latest zsh version using macports | |
sudo port install zsh | |
# Add macports zsh as an available shell interpreter | |
echo /opt/local/bin/zsh >> /etc/shells | |
# Set macports zsh as the default shell interpreter | |
chsh -s /opt/local/bin/zsh | |
# Open a new terminal window |
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
+----------------+-----------+-----------+------+ | |
| |Interactive|Interactive|Script| | |
| |login |non-login | | | |
+----------------+-----------+-----------+------+ | |
|/etc/zshenv | A | A | A | | |
+----------------+-----------+-----------+------+ | |
|~/.zshenv | B | B | B | | |
+----------------+-----------+-----------+------+ | |
|/etc/zprofile | C | | | | |
+----------------+-----------+-----------+------+ |
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
If you have ever put something in a file like .bashrc and had it not work, or are | |
confused by why there are so many different files — .bashrc, .bash_profile, .bash_login, | |
.profile etc. — and what they do, this is for you. | |
The issue is that Bash sources from a different file based on what kind of shell it thinks | |
it is in. For an “interactive non-login shell”, it reads .bashrc, but for an “interactive | |
login shell” it reads from the first of .bash_profile, .bash_login and .profile (only). | |
There is no sane reason why this should be so; it’s just historical. Follows in more detail. | |
For Bash, they work as follows. Read down the appropriate column. Executes A, then B, then C, | |
etc. The B1, B2, B3 means it executes only the first of those files found. |
nmap -p143,993 --script imap-brute localhost
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 java.nio.ByteBuffer; | |
import java.util.Base64; | |
import java.util.UUID; | |
public class base64uuid { | |
private static final Base64.Encoder BASE64_URL_ENCODER = Base64.getUrlEncoder().withoutPadding(); | |
public static void main(String[] args) { | |
try { | |
if (args.length < 2) { |
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
apg -n 1 -MCLN -m 32 -s |
NewerOlder