Skip to content

Instantly share code, notes, and snippets.

@sirlancelot
sirlancelot / PinDistrictApps.cmd
Created April 16, 2010 20:17
Windows 7 script to pin items to the taskbar. Can be placed in the default user's startup folder. Self-terminating.
@echo off
cscript PinItem.vbs /taskbar /item:"%ProgramData%\Microsoft\Windows\Start Menu\Programs\Mozilla Firefox\Mozilla Firefox.lnk"
cscript PinItem.vbs /taskbar /item:"%ProgramData%\Microsoft\Windows\Start Menu\Programs\Microsoft Office\Microsoft Office Word 2007.lnk"
cscript PinItem.vbs /taskbar /item:"%ProgramData%\Microsoft\Windows\Start Menu\Programs\Microsoft Office\Microsoft Office Excel 2007.lnk"
cscript PinItem.vbs /taskbar /item:"%ProgramData%\Microsoft\Windows\Start Menu\Programs\Microsoft Office\Microsoft Office PowerPoint 2007.lnk"
@bradmontgomery
bradmontgomery / install-comodo-ssl-cert-for-nginx.rst
Last active June 10, 2024 15:37
Steps to install a Comodo PositiveSSL certificate with Nginx.

Setting up a SSL Cert from Comodo

I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.

These are the steps I went through to set up an SSL cert.

Purchase the cert

@jonathonlui
jonathonlui / get-humble-bundle-library-keys.js
Created December 27, 2016 00:49
Get list of keys from Humble Bundle Library page
/*
* Run on https://www.humblebundle.com/home/library
* Global variable `gamekeys` is available on the Library page
*
*/
Promise.all(gamekeys.map(key => {
return new Promise((resolve, reject) => {
$.ajax({
url: `https://www.humblebundle.com/api/v1/order/${key}?all_tpkds=true`
}).done(data => resolve(data))