Skip to content

Instantly share code, notes, and snippets.

<?php
/*
* Plugin Name: EDD Double Pagination
*/
function pw_edd_duplicate_pagination() {
?>
<script type="text/javascript">
jQuery(document).ready(function($) {
@pippinsplugins
pippinsplugins / gist:8834900
Created February 5, 2014 22:46
Duplicates the EDD downloads pagination
<?php
/*
* Plugin Name: EDD Double Pagination
*/
function pw_edd_duplicate_pagination() {
?>
<script type="text/javascript">
jQuery(document).ready(function($) {
package ;
import cpp.Lib;
import haxe.Int64;
/**
* A square root approximator.
*
* @author lemon42
*/
cordova plugin add https://github.com/phonegap/phonegap-facebook-plugin.git --variable APP_ID="YOUR_FB_APP_ID" --variable APP_NAME="YOUR_APP_NAME"
Note: Tested in Elementary OS Luna
1- Download the firmware from: http://www.broadcom.com/support/802.11/linux_sta.php
2- Unzip a move to dir
3- make
4- Uninstall previous versions:
@BobNisco
BobNisco / config.xml
Last active August 29, 2015 13:56
Getting started with PhoneGap 3.x Facebook Login
<!-- If you're using PhoneGap Build -->
<feature name="org.apache.cordova.facebook.Connect">
<param name="android-package" value="org.apache.cordova.facebook.ConnectPlugin" />
</feature>
<!-- Cordova Plugin -->
<gap:plugin name="com.phonegap.plugins.facebookconnect">
<param name="APP_ID" value="YOUR_FB_APP_ID" />
<param name="APP_NAME" value="YOUR_APP_NAME" />
</gap:plugin>
<?php
/**
* do the same than parse_str without max_input_vars limitation
* @param $string array string to parse
* @return array query parsed
**/
function my_parse_str($string) {
$result = array();
// find the pairs "name=value"
BEGIN {
FS = ","
bytes_created = 0
bytes_wrote = 0
bytes_deleted = 0
}
$4 == "createFile" {
bytes_field_length = length($10)
bytes_created += substr($10, 3, bytes_field_length-3)
1. Plug in external HD
2. In WHS Console go to "Server Storage" tab
3. Wait until you see the external HD appear in "Server Backup Hard Drives" section
4. In WHS Console go to "Computer & Backup" tab
5. Select "<whs> - Your home server" in the list of machines
6. Click "Backup Now"
7. Wait for backup to complete
8. Go back to "Server Storage" tab and
9. Disconnect external HD
@vonkoch
vonkoch / gist:5848700
Last active December 18, 2015 21:39
WHS Backup
1. Plug in external HD
2. In WHS Console go to "Server Storage" tab
3. Wait until you see the external HD appear in "Server Backup Hard Drives" section
4. In WHS Console go to "Computer & Backup" tab
5. Select "<whs> - Your home server" in the list of machines
6. Click "Backup Now"
7. Wait for backup to complete
8. Go back to "Server Storage" tab and
9. Disconnect external HD