(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
#!/usr/bin/python | |
import re | |
pattern = '--' | |
boxPattern = '/' | |
container = [] | |
def Main(): | |
with open('out.txt', 'wt') as fout: |
package main | |
import ( | |
"fmt" | |
"time" | |
"strconv" | |
"database/sql" | |
_ "github.com/go-sql-driver/mysql" | |
) |
#!/bin/bash | |
################################################################### | |
### | |
### Version Date Author Description | |
### 0.0.1 7 Jul 2014 Naruedol Y. Initial Script | |
### Sanit B. move file at RuleBase | |
### to backup path with 'rsync' | |
################################################################### | |
SOURCE=/home/autodiag/MountShareRuleBase/ |
#!/bin/bash | |
SCRIPT=/home/vagrant/repository/bash/iNotify.sh | |
HB=`ps aux|grep -i inotify.sh|grep -v grep|grep -v Z|wc -l` | |
if [ $HB -le 0 ]; then | |
bash $SCRIPT & | |
fi |
#!/bin/bash | |
PATHDATA="/home/administrator/Data/" | |
RAWDATA=`ls -rtl --time-style=+"%d-%b-%y:%H:%M:%S" $PATHDATA | sed 1d | awk '{print $6, $NF}'` | |
for rawdata in $RAWDATA; | |
do | |
CHECK=`echo ${rawdata} | awk -F"." '{print $2}'` | |
if [ -z $CHECK ] | |
then |
#!/usr/bin/python | |
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford ([email protected]) | |
# The author disclaims copyright to this source code. | |
import sys | |
import struct | |
import socket | |
import time | |
import select |
import java.net.NetworkInterface; | |
import java.net.SocketException; | |
import java.util.Enumeration; | |
public class InternetConnection { | |
public static void main(String[] args) throws InterruptedException { | |
Enumeration<NetworkInterface> interfaces = null; | |
try { | |
interfaces = NetworkInterface.getNetworkInterfaces(); | |
} catch (SocketException e) { |
#!/bin/bash | |
# Naruedol Y. 17 Jun 2014 Update Script for jboss6 | |
# Source function library. | |
. /etc/rc.d/init.d/functions | |
#JBOSS home directory path. | |
JBOSS_HOME=/home/jbossadm/jboss6 | |
#JAVA_HOME=/usr/local/java | |
JAVA_HOME=/usr/java/jdk1.6.0_31 |
username: vagrant | |
password: vagrant | |
sudo apt-get update | |
sudo apt-get install build-essential zlib1g-dev git-core sqlite3 libsqlite3-dev | |
sudo aptitude install mysql-server mysql-client | |
sudo nano /etc/mysql/my.cnf | |
change: |