Skip to content

Instantly share code, notes, and snippets.

@CJHarmath
CJHarmath / bookmarklet.url
Created September 17, 2018 14:12 — forked from sv-in/bookmarklet.url
JS: Bookmarklet for displaying QR code of current URL (good for presentations)
javascript:void !function(e,t,n,r,i,s){while(n--&&(i=t[n])>e);s=r.style,s.position="fixed",s.zIndex=-1>>>1,s.top=s.left="50%",s.marginTop=s.marginLeft=i/-2+"px",r.src="http://chart.apis.google.com/chart?cht=qr&chld=H|0&chs="+i+"x"+i+"&chl="+escape(location)}(Math.min(top.innerHeight,top.innerWidth),[100,150,200,250,300,350,400,500],8,document.body.appendChild(new Image))
@CJHarmath
CJHarmath / setup-forge.ps1
Created June 22, 2017 04:11
Setup-Forge
[CmdletBinding()]
param(
[switch]
$Update
)
if ($update.IsPresent -and $Update){
Write-Warning "running in update mode will not delete existing folders which might lead to issues"
}
else {
Write-Warning "Running in the default clean install mode. Slower but the safest option!"
@CJHarmath
CJHarmath / PSDesiredStateConfiguration.psm1
Created February 28, 2017 22:40
try catch workaround for PSDscResources/issues/43
###########################################################
#
# 'PSDesiredStateConfiguration' logic module
#
###########################################################
data LocalizedData
{
# culture="en-US"
ConvertFrom-StringData -StringData @'
CheckSumFileExists = File '{0}' already exists. Please specify -Force parameter to overwrite existing checksum files.