create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
From: Savvas Radevic <vicedar@gmail.com> | |
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 |
From: Savvas Radevic <vicedar@gmail.com> | |
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 <vicedar@gmail.com> | |
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: |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
–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 |
#!/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 |
<!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"); |
<?php | |
use Guzzle\Http\Client; | |
require __DIR__ . '/vendor/autoload.php'; | |
$tmpFile = tempnam(sys_get_temp_dir(), 'guzzle-download'); | |
$handle = fopen($tmpFile, 'w'); | |
$client = new Client('', array( | |
Client::CURL_OPTIONS => array( |
<?php | |
/** | |
* @param string $domain Pass $_SERVER['SERVER_NAME'] here | |
* @param bool $debug | |
* | |
* @debug bool $debug | |
* @return string | |
*/ | |
function get_domain($domain, $debug = false) | |
{ |