git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_FILENAME} !-s | |
RewriteRule ^(.*)$ rest/index.php?_rest=$1 [QSA,NC,L] | |
RewriteCond %{REQUEST_FILENAME} -d | |
RewriteRule ^(.*)$ rest/index.php [QSA,NC,L] | |
</IfModule> |
An example of using Spring and Hibernate together to automatically create a HSQLDB in-memory database for testing hibernate mappings. |
package com.chelonix.selenium; | |
import java.util.ArrayList; | |
import java.util.Iterator; | |
import java.util.List; | |
import com.dumbster.smtp.SimpleSmtpServer; | |
import com.dumbster.smtp.SmtpMessage; | |
import com.google.common.collect.Lists; | |
import org.junit.rules.ExternalResource; |
package ru.cti.crypto; | |
import java.io.ByteArrayOutputStream; | |
import java.io.FileInputStream; | |
import java.security.Key; | |
import java.security.KeyStore; | |
import java.security.PrivateKey; | |
import java.security.Provider; | |
import java.security.cert.X509Certificate; | |
import java.util.ArrayList; |
#!/bin/bash | |
set -e | |
if [ ! -z "$1" ]; then | |
KERNEL="$1" | |
else | |
KERNEL="$(uname -r)" | |
fi |
/** | |
* Author: Richard Willis - badsyntax.co | |
* Example here: http://demos.badsyntax.co/places-search-bootstrap/example.html | |
* | |
* Please note: This is not a reliable method of geocoding the address. Using the | |
* PlacesService is a much better approach. View the example above for an example | |
* of using the PlacesService to geocode the address. | |
*/ | |
var service = new google.maps.places.AutocompleteService(); |
$config = array( | |
'baseUrl' => rtrim('http://mywebsite.com/rest/api/','/'), | |
'format' => 'json', // json or xml, the format to request | |
'suppressSuffix' => false, // if false, will append .json or .xml to the URI requested | |
'username' => 'myuser', // if set, will use cURL auth to authenticate user | |
'password' => 'mypass', | |
'curlOptions' => array( | |
'timeout' => 30, // cURL timeout | |
'otherCurlOption' => 1, |
<?php | |
/** | |
* SEOphpthumb | |
* | |
* @category snippet | |
* @version 1.3 | |
* @license GNU General Public License (GPL), http://www.gnu.org/copyleft/gpl.html | |
* @author Agel_Nash <Agel_Nash@xaker.ru> | |
*/ | |