Skip to content

Instantly share code, notes, and snippets.

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;
#!/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
@vml-rmott
vml-rmott / tmux-shortcuts.md
Last active August 9, 2017 18:16 — forked from jkuchar/tmux-shortcuts.md
TMUX for dummies

TMUX

Start it using

command what it does?
tmux Starts new tmux session
tmux attach attaches to last openned tmux session

When it is running