start new:
tmux
start new with session name:
tmux new -s myname
<!DOCTYPE HTML> | |
<!-- attribution -- this blog provided the code | |
http://blog.makingsense.com/2011/03/create-stand-alone-web-pages-or-widgets-that-use-wordpress-functions/ | |
--> | |
<?php | |
//required include files | |
require('wp-blog-header.php'); | |
require_once("wp-config.php"); | |
require_once("wp-includes/wp-db.php"); |
#!/bin/bash | |
# bash generate random alphanumeric string | |
# | |
# bash generate random 32 character alphanumeric string (upper and lowercase) and | |
NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) | |
# bash generate random 32 character alphanumeric string (lowercase only) | |
cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 32 | head -n 1 |
–ctrl a c -> create new window | |
–ctrl a A -> set window name | |
–ctrl a w -> show all window | |
–ctrl a 1|2|3|… -> switch to window n | |
–ctrl a ” -> choose window | |
–ctrl a ctrl a -> switch between window | |
–ctrl a d -> detach window | |
–ctrl a ? -> help | |
–ctrl a [ -> start copy, move cursor to the copy location, press ENTER, select the chars, press ENTER to copy the selected characters to the buffer | |
–ctrl a ] -> paste from buffer |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
From: Savvas Radevic <[email protected]> | |
Description: Create /usr/bin in the destination folder | |
Index: glossa-interpreter-1.0.1/Makefile | |
=================================================================== | |
--- glossa-interpreter-1.0.1.orig/Makefile 2012-02-07 17:14:00.000000000 +0100 | |
+++ glossa-interpreter-1.0.1/Makefile 2012-02-07 17:14:01.000000000 +0100 | |
@@ -36,6 +36,7 @@ | |
install: |
From: Savvas Radevic <[email protected]> | |
Description: Remove absolute path from filenames | |
Index: glossa-interpreter-1.0.1/src/glossa/interpreter/core/ASTInterpreter.java | |
=================================================================== | |
--- glossa-interpreter-1.0.1.orig/src/glossa/interpreter/core/ASTInterpreter.java 2012-02-07 16:24:50.000000000 +0100 | |
+++ glossa-interpreter-1.0.1/src/glossa/interpreter/core/ASTInterpreter.java 2012-02-07 16:29:24.000000000 +0100 | |
@@ -202,7 +202,7 @@ | |
From: Savvas Radevic <[email protected]> | |
Description: Fix Makefile: | |
* Change main installation path to /usr/share/java/lingua | |
* mkdir /usr/bin | |
* Remove $(DESTDIR) from /usr/bin/lingua contents | |
Index: lingua-0.0.4/Makefile | |
=================================================================== | |
--- lingua-0.0.4.orig/Makefile 2012-02-07 21:10:49.000000000 +0100 | |
+++ lingua-0.0.4/Makefile 2012-02-07 21:10:50.000000000 +0100 |