Skip to content

Instantly share code, notes, and snippets.

@oranblackwell
oranblackwell / enter-in-chrome-dev-tools.jquery.js
Last active August 9, 2019 15:18
Allows you to add all free Jacket indexers in one go
////hack to add all free indexers in Jackett
//From the Jackett page, click the "add indexer" button so that the pop up window with the full list of indexers appears.
//
//You'll then need to open your browser's development toolbar (in Chrome just hit F12) and go to the JavaScript Console and enter the following
$(document).ready(function () {
EnableAllUnconfiguredIndexersList();
});
function EnableAllUnconfiguredIndexersList() {
@oranblackwell
oranblackwell / amazon-prime-watchlist-export-console.jquery.js
Last active August 9, 2019 15:06
Export watched items from Amazon Prime to Dev Tools Console.
#google tracker
[![Analytics](https://ga-beacon.appspot.com/UA-145415293-2/gist-amazon-prime-watchlist-export-console)](https://github.com/igrigorik/ga-beacon)
# https://www.amazon.co.uk/gp/yourstore/iyr/ref=pd_ys_iyr_edit_watched?ie=UTF8&collection=watched
var jqry = document.createElement('script');
jqry.src = "https://code.jquery.com/jquery-3.3.1.min.js";
document.getElementsByTagName('head')[0].appendChild(jqry);
@oranblackwell
oranblackwell / Advanced linux directory search commands
Last active August 9, 2019 15:14
A number of linux directory commands useful for tidying up your media library
A number of linux directory commands useful for tidying up your media library
@oranblackwell
oranblackwell / debug
Created December 1, 2014 16:42
For Daniel
<?php
if ( !function_exists ( 'debug' ) ) {
/**
* @author Oran Blackwell
* @version 3.6.1
* Change log:
* 3.6.1 - inelegantly added var_dump to is_object()
* 3.6.0 - Added DEFINE_ declaration for check_mysql_errors & mysql_query_log
* - Added internal Repo hosting IPs to allowed array (O2)
@oranblackwell
oranblackwell / ie-curl.sh
Created June 26, 2014 08:43
Curl All IE Virtual Boxes from Microsoft's Modern.ie
#IE6 - XP
curl -O -L "http://www.modern.ie/vmdownload?platform=mac&virtPlatform=virtualbox&browserOS=IE6-WinXP&parts=0&filename=VMBuild_20131127/VirtualBox/ls/Mac/IE6.WinXP.For.MacVirtualBox.sfx"
#IE8 – XP
curl -O -L "http://www.modern.ie/vmdownload?platform=mac&virtPlatform=virtualbox&browserOS=IE8-WinXP&parts=2&filename=VMBuild_20131127/VirtualBox/IE8_WinXP/Mac/IE8.WinXP.For.MacVirtualBox.part{1.sfx,2.rar}"
#IE7 – Vista
curl -O -L "http://www.modern.ie/vmdownload?platform=mac&virtPlatform=virtualbox&browserOS=IE7-Vista&parts=4&filename=VMBuild_20131127/VirtualBox/IE7_Vista/Mac/IE7.Vista.For.MacVirtualBox.part{1.sfx,2.rar,3.rar,4.rar}"
#IE8 – Win7
@oranblackwell
oranblackwell / example.md
Last active August 29, 2015 14:02
Simple Git Deployment using Tags

Simple Git Deployment using Tags

Example 1

Local

[ ~/Web/Sites/Example]$ git status
On branch master
Your branch is up-to-date with 'origin/master'.

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
@oranblackwell
oranblackwell / HTML5-Shiv-and-Respond-JS.md
Last active August 29, 2015 14:02
Add HTML5 Shiv and Respond .js to end of wp_head()

Wordpress - Add HTML5 shiv, Respond.js for IE8

<?php 
/**
 * Add HTML5 shiv, Respond.js for IE8
 */
add_action( 'wp_head', 'ie_support_header', 99 );
function ie_support_header() {
	echo '
@oranblackwell
oranblackwell / deployment-detailed.md
Last active November 15, 2015 16:49
Revision-Controlled Worpdress with "One Click" Deplyoment using Bedrock, Git, Composer, Capistrano

Wordpress Source Control and Deployment

Revision-Controlled Worpdress with "One Click" Deplyoment using Git, Composer, Capistrano

Author: Oran Blackwell

Revised: May 06, 2014

This is a Work In Progress - All feedback is always welcome.

I am attempting to document everything in this document so don't be put off if it seems overly complex. Once the initial setup is done, there is minimal interaction required to deploy. I've tried to include how to handle errors etc.

@oranblackwell
oranblackwell / 010 deploymend-quick-start.md
Last active January 13, 2021 01:51
Bedrock Quick Start Guide
To Open HTML Preview window in Notepad++ Ctrl + Shft + H

Wordpress Source Control and Deployment

Revision-Controlled Worpdress with "One Click" Deplyoment using Git, Composer, Capistrano

[Build Status]

Author: Oran Blackwell

Revised: May 06, 2014

@oranblackwell
oranblackwell / styles.css.md
Created June 17, 2014 15:17
Bootstrap 3 Re-usable helper classes
/* Bootstrap 3 Re-usable helper classes
 * Author: Oran Blackwell
============================================================================= */
div[class*="col-"].no-padding { padding : 0; }
div[class*="col-"].no-padding-left { padding-left : 0; }
div[class*="col-"].no-padding-right { padding-right : 0; }

.no-vertical-margin { margin-bottom : 0; margin-top : 0; }
.negative-margin-left { margin-left : -15px; padding-left : 15px; }