start new:
tmux
start new with session name:
tmux new -s myname
| #import <UIKit/UIKit.h> | |
| #import <ImageIO/ImageIO.h> | |
| #import <MobileCoreServices/MobileCoreServices.h> | |
| static UIImage *frameImage(CGSize size, CGFloat radians) { | |
| UIGraphicsBeginImageContextWithOptions(size, YES, 1); { | |
| [[UIColor whiteColor] setFill]; | |
| UIRectFill(CGRectInfinite); | |
| CGContextRef gc = UIGraphicsGetCurrentContext(); | |
| CGContextTranslateCTM(gc, size.width / 2, size.height / 2); |
| #!/bin/bash | |
| function tab() { | |
| osascript 2>/dev/null <<EOF | |
| tell application "System Events" | |
| tell process "Terminal" to keystroke "t" using command down | |
| end | |
| tell application "Terminal" | |
| activate | |
| do script with command "$*" in window 0 |
| package com.test.core; | |
| import com.test.enums.ErrorStatus; | |
| public class ApplicationException extends RuntimeException{ | |
| /** | |
| * | |
| */ |
| (function() { | |
| /** | |
| * | |
| * CSVJSON.sql2json(sql) | |
| * | |
| * Converts SQL to JSON. Returns an object. Detects CREATE TABLE and INSERT INTO | |
| * statements to extract table header and rows. Use JSON.stringify to conver to a string. | |
| * | |
| * Dependencies: | |
| * - underscore (http://underscorejs.org/) |
| # Mac Homebrew command to install the RDS command-line tools | |
| # Ubuntu users may find https://launchpad.net/~awstools-dev/+archive/awstools/ useful | |
| brew install rds-command-line-tools | |
| rds-create-db-parameter-group mysql-utf8 -f mysql5.1 -d "MySQL 5.1 configured for UTF-8" | |
| rds-modify-db-parameter-group mysql-utf8 \ | |
| --parameters="name=character_set_server, value=utf8, method=immediate" \ | |
| --parameters="name=character_set_client, value=utf8, method=immediate" \ | |
| --parameters="name=character_set_results, value=utf8, method=immediate" \ |
| Username: admin@local.host | |
| Password: 5iveL!fe |
| This is gist testing! |