Skip to content

Instantly share code, notes, and snippets.

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
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)
<?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"
@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>
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:
cordova plugin add https://github.com/phonegap/phonegap-facebook-plugin.git --variable APP_ID="YOUR_FB_APP_ID" --variable APP_NAME="YOUR_APP_NAME"
package ;
import cpp.Lib;
import haxe.Int64;
/**
* A square root approximator.
*
* @author lemon42
*/
@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($) {
<?php
/*
* Plugin Name: EDD Double Pagination
*/
function pw_edd_duplicate_pagination() {
?>
<script type="text/javascript">
jQuery(document).ready(function($) {
Index: llvmpy/include/llvm_binding/extra.h
===================================================================
--- llvmpy/include/llvm_binding/extra.h (revision 14593)
+++ llvmpy/include/llvm_binding/extra.h (revision 14594)
@@ -164,6 +164,7 @@
for(; begin != end; ++begin) {
PyObject* cap = pycapsule_new(&*begin, capsuleName, className);
PyList_Append(list, cap);
+ Py_DECREF(cap);
}