Skip to content

Instantly share code, notes, and snippets.

View tobya's full-sized avatar

Toby Allen tobya

View GitHub Profile
#allows a single uri through the .htaccess password protection
SetEnvIf Request_URI "/testing_uri$" test_uri
#allows everything if its on a certain host
SetEnvIf HOST "^testing.yoursite.com" testing_url
SetEnvIf HOST "^yoursite.com" live_url
Order Deny,Allow
AuthName "Restricted Area"
AuthType Basic
<?php
?>
@tobya
tobya / basic.plist
Created March 23, 2011 20:14
The outline Structure of a PList file used by ContactLoader
<plist version="1.0">
<dict>
<key>GroupName</key>
<string>Name of Your Group</string>
<key>Contacts</key>
<array>
<dict>
<key>FirstName</key>
<string>Toby</string>
<key>LastName</key>
@tobya
tobya / gist:7215515
Last active December 26, 2015 21:19
Sample Survey
{
"metadata":{
"transactionguid":"{23202669-1e53-4de8-b7ee-9ff93abf0f09}"
},
"survey":{
"title":"Baseline Capture",
"Description":"Initial Capture of Data for Benificiaries",
"guid":"{c94d1c99-5606-49e1-807d-8066825a5fc0}",
"version":"0.10",
"items":[
<?php
/**
* Explode any single-dimensional array into a full blown tree structure,
* based on the delimiters found in it's keys.
*
* The following code block can be utilized by PEAR's Testing_DocTest
* <code>
* // Input //
* $key_files = array(
* "/etc/php5" => "/etc/php5",
<div class="content">
<div class="bcscourse-related-title"><h3>Some Related Courses </h3></div><div class="item-list"><ul class="bcscourse-related"><li class="first"><div class="view view-new-gallery-node view-id-new_gallery_node view-display-id-block_3 view-dom-id-09189134e62d25f75c5d7ca814ae3622">
<div class="view-content">
<div class="views-row views-row-1 views-row-odd views-row-first views-row-last">
<div class="views-field views-field-field-images"> <div class="field-content"><img typeof="foaf:Image" src="http://www.cookingisfun.ie/sites/default/files/styles/thumbnail/public/DSC_0193_0.JPG?itok=DWGPTeuT" width="100" height="50" alt="Gardening Workshops - Susan Turner - Ballymaloe Cookery School" title="Gardening Workshops - Susan Turner - Ballymaloe Cookery School"></div> </div> </div>
</div>
Sub PasswordBreaker()
'Breaks worksheet password protection.
Dim i As Integer, j As Integer, k As Integer
Dim l As Integer, m As Integer, n As Integer
Dim i1 As Integer, i2 As Integer, i3 As Integer
Dim i4 As Integer, i5 As Integer, i6 As Integer
On Error Resume Next
For i = 65 To 66: For j = 65 To 66: For k = 65 To 66
For l = 65 To 66: For m = 65 To 66: For i1 = 65 To 66
For i2 = 65 To 66: For i3 = 65 To 66: For i4 = 65 To 66
<!DOCTYPE html>
<html>
<head>
<title>jQCloud Example</title>
<link rel="stylesheet" type="text/css" href="../dist/jqcloud.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<script type="text/javascript" src="../dist/jqcloud.js"></script>
<script type="text/javascript">
/*!
* Create an array of word objects, each representing a word in the cloud
2017/02/19 17:28:26 ---------------
2017/02/19 17:28:26 RAW HELLO: 010000e9030358a9d5ba1a8e5355b6a56b490148fe605ef4d63f8bd0cca432e79ffe858d2e3100002c00ffc02cc02bc024c023c00ac009c008c030c02fc028c027c014c013c012009d009c003d003c0035002f000a010000940000001f001d00001a6173697465392e6263732e636f6f6b696e67697366756e2e6965000a00080006001700180019000b00020100000d00120010040102010501060104030203050306033374000000100030002e0268320568322d31360568322d31350568322d313408737064792f332e3106737064792f3308687474702f312e310005000501000000000012000000170000
2017/02/19 17:28:26 ---------------
2017/02/19 17:28:27 *******
URI: /list.php
2017/02/19 17:28:27 User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 10_0_2 like Mac OS X) AppleWebKit/602.1.50 (KHTML, like Gecko) CriOS/56.0.2924.79 Mobile/14A456 Safari/602.1
2017/02/19 17:28:27 Headers: map[Accept-Language:[en-ie] Accept-Encoding:[gzip, deflate] Cookie:[_ga=GA1.2.1285204035.1421831904; __utma=71723596.1285204035.1421831904.1478764756.1478864814.78; __utmz=71723596.1478705289.76.15.

download and unzip

Copy to dir create caddy file register ip to domain