Skip to content

Instantly share code, notes, and snippets.

View andrewiankidd's full-sized avatar
🤠

Andrew Kidd andrewiankidd

🤠
View GitHub Profile
@andrewiankidd
andrewiankidd / gallerix-scraper.user.js
Created July 8, 2022 18:09
Userscript to download all images in a Gallerix.org set
// ==UserScript==
// @name Gallerix Scraper
// @namespace http://andrewkidd.co.uk/
// @version 0.1
// @description Batch grab gallerix images
// @author You
// @match https://gallerix.org/storeroom/*
// @match https://gallerix.org/pic/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=gallerix.org
// @grant GM_openInTab
@andrewiankidd
andrewiankidd / Code128.vbs
Created September 16, 2019 19:38
SSRS2017 Code128 Barcode Support
' takes in a text value and returns an image of the barcode on Code-128
' Exceptions are caught and written out as an image in arial
'
' USAGE:
' =Code.Code128(Fields!BarCode.Value)
Public Function Code128(ByVal stringText As String) As Byte()
Dim result As Byte() = Nothing
Dim image = Nothing
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"adminUsername": {
"type": "string",
"defaultValue": "admin"
},
"adminPassword": {
"type": "securestring"
// ==UserScript==
// @name TaoBao Currency Converter (GBP)
// @namespace http://andrewiankidd.co.uk/
// @version 0.1
// @description taobao inline currency converter
// @author You
// @match *item.taobao.com/*
// @grant none
// @require http://code.jquery.com/jquery-latest.js
// ==/UserScript==
@andrewiankidd
andrewiankidd / noco.ps1
Created April 8, 2018 22:32
noco.tv scraper
(Invoke-RestMethod -ContentType "application/octet-stream" https://pastebin.com/raw/3AXTMQFk) -split "`r`n"|%{$_;$v=(Invoke-RestMethod -ContentType "application/octet-stream" $_|%{[regex]::Match($_,'"(http).+(video.noco.tv).+"')}).value;if($v){Add-Content $v -Path "vidlinks.txt";$v}}
@andrewiankidd
andrewiankidd / userchrome.css
Last active March 2, 2020 10:17
Firefox Quantum UserChrome.css (LessChrome HD)
/*
* Do not remove the @namespace line -- it's required for correct functioning
*/
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* set default namespace to XUL */
#nav-bar{
margin-top: -32px;
visibility: hidden;
transition:0s all 2s;
}
@andrewiankidd
andrewiankidd / addStartupItems.ps1
Created August 16, 2017 10:43
Azure PS artifact for adding items to the startup folder of a VM
Write-Host "addStartupItems.ps1"
$cd = Get-Location;
$zipPath = "$cd\startupItems.zip"
$startupPath = "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp"
$unzipPath = "$cd\startupUnzip"
if (Test-Path($unzipPath)){
Remove-Item -path $unzipPath -force -recurse
}
@andrewiankidd
andrewiankidd / enableWinRM.ps1
Last active June 22, 2021 06:29
Enable WinRM HTTPS via powershell
param ($fqdn)
if ($fqdn -eq $null){
#lots of assuming going on here
$zone = ".westeurope.cloudapp.azure.com"
$fqdn = "$env:computername$zone"
}
##enable winrm
@andrewiankidd
andrewiankidd / VSTSHelper.user.js
Last active September 5, 2018 20:00
Helper userscript for VSTS (TFS Release Management)
// ==UserScript==
// @name VSTS Helper
// @namespace http://andrewiankidd.co.uk/
// @version 0.2
// @description Adds a button to set latest versions of all artifacts, adds a button to set all environments to manual deployment, autofills name in kanban board
// @author Andrew Kidd
// @match http://*/tfs/*
// @grant none
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js
// @require https://cdnjs.cloudflare.com/ajax/libs/jQuery-linkify/2.1.6/linkify.min.js
@andrewiankidd
andrewiankidd / BandCampSnatcher.user.js
Created November 8, 2016 12:35
Adds download buttons to bandcamp
// ==UserScript==
// @name Bandcamp snatcher
// @namespace http://andrewiankidd.co.uk
// @version 0.1
// @description Feeling good about this one
// @author You
// @include https://*.bandcamp.com/album/*
// @include http://*.bandcamp.com/album/*
// @require http://code.jquery.com/jquery-latest.js
// ==/UserScript==