start new:
tmux
start new with session name:
tmux new -s myname
| .dummy { | |
| color: #002b36; /* base03 */ | |
| color: #073642; /* base02 */ | |
| color: #586e75; /* base01 */ | |
| color: #657b83; /* base00 */ | |
| color: #839496; /* base0 */ | |
| color: #93a1a1; /* base1 */ | |
| color: #eee8d5; /* base2 */ | |
| color: #fdf6e3; /* base3 */ | |
| color: #b58900; |
| /var/lib/redis/logs/redis.log { | |
| daily | |
| rotate 14 | |
| copytruncate | |
| delaycompress | |
| compress | |
| notifempty | |
| missingok | |
| } |
| import javax.crypto.Cipher; | |
| class Test { | |
| public static void main(String[] args) { | |
| try { | |
| System.out.println("Hello World!"); | |
| int maxKeyLen = Cipher.getMaxAllowedKeyLength("AES"); | |
| System.out.println(maxKeyLen); | |
| } catch (Exception e){ | |
| System.out.println("Sad world :("); |
| # | |
| # Working with branches | |
| # | |
| # Get the current branch name (not so useful in itself, but used in | |
| # other aliases) | |
| branch-name = "!git rev-parse --abbrev-ref HEAD" | |
| # Push the current branch to the remote "origin", and set it to track | |
| # the upstream branch | |
| publish = "!git push -u origin $(git branch-name)" |
| import sys | |
| import re | |
| import codecs # UniCode support | |
| from pymongo import Connection # For DB Connection | |
| from pymongo.errors import ConnectionFailure # For catching exeptions | |
| def main(): | |
| # MongoDB connection | |
| try: |