command | what it does? |
---|---|
tmux | Starts new tmux session |
tmux attach | attaches to last openned tmux session |
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
package com.example; | |
import android.content.Context; | |
import android.database.Cursor; | |
import android.app.Fragment; | |
import android.app.FragmentManager; | |
import android.support.v13.app.FragmentStatePagerAdapter; | |
import android.util.SparseIntArray; | |
import android.view.ViewGroup; |
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
#!/bin/bash | |
# usage: drupal-quick-dump database (assumes use of .my.cnf) | |
DB="$1" | |
DATE=`date +%Y%m%d` | |
# Dump Structure | |
echo "Starting to dump the table structure." | |
TABLES=`mysql --skip-column-names -e 'show tables' ${DB}` | |
mysqldump --complete-insert --disable-keys --single-transaction --no-data ${DB} ${TABLES} > ${DB}.${DATE}.sql |