start new:
tmux
start new with session name:
tmux new -s myname
| cd workspace | |
| git clone https://github.com/vim/vim | |
| cd vim | |
| git pull && git fetch | |
| #In case Vim was already installed | |
| cd src | |
| make distclean | |
| cd .. |
| #!/bin/bash | |
| cd /var | |
| touch swap.img | |
| chmod 600 swap.img | |
| dd if=/dev/zero of=/var/swap.img bs=1024k count=4000 | |
| mkswap /var/swap.img | |
| swapon /var/swap.img |
| #!/usr/python | |
| import urllib.request, base64 | |
| import json | |
| import argparse | |
| import sys | |
| def url_request(user, pwd, url, method, data={}): | |
| # Generate authentication |
| // you can use includes, for example: | |
| #include <algorithm> | |
| #include <string> | |
| #include <iostream> | |
| using namespace std; | |
| #define vii vector<pair<int, int>> | |
| #define pii pair<int, int> | |
| #define g0( a ) get<0>( a ) | |
| #define g1( a ) get<1>( a ) |
| // you can use includes, for example: | |
| #include <algorithm> | |
| using namespace std; | |
| #define vii vector<pair<int, int>> | |
| #define pii pair<int, int> | |
| #define g0( a ) get<0>( a ) | |
| #define g1( a ) get<1>( a ) | |
| int solution1(vector<int> &A, vector<int> &B, vector<int> &C) { | |
| // write your code in C++11 (g++ 4.8.2) |
| #!/bin/bash | |
| # @link https://gist.github.com/mattscilipoti/8424018 | |
| # | |
| # Called by "git push" after it has checked the remote status, | |
| # but before anything has been pushed. | |
| # | |
| # If this script exits with a non-zero status nothing will be pushed. | |
| # | |
| # Steps to install, from the root directory of your repo... |
| p4 dirs //depot/MMA/interfaces/"*" | sed 's/$/\/.../' | xargs p4 grep -e SimIOCMarketRoutes |
| free | |
| dd if=/dev/zero of=/var/swap.img bs=1024k count=1000 | |
| mkswap /var/swap.img | |
| swapon /var/swap.img | |
| free |