Skip to content

Instantly share code, notes, and snippets.

@mikesigs
mikesigs / reboot-notifier.bat
Last active March 17, 2017 21:41
Pushbullet Reboot Notifier
@echo off
:: Broadcast a "Reboot complete" message to all PushBullet devices after a machine finishes rebooting
:: This is helpful when you restart a remote machine and want to know when you can reconnect
:: STEP 1: Get a Pushbullet API Access Token from your account page - https://www.pushbullet.com/#settings/account
set token=YOUR TOKEN HERE
:: STEP 2: Save this script somewhere on the target PC
:: STEP 3: Follow these instructions to make it a startup script - https://technet.microsoft.com/en-ca/library/cc770556.aspx
:: STEP 4: Test the script by simply running it. If you get the notification, then try rebooting to see if it works.
:: STEP 5: ???
@tzengerink
tzengerink / google-search.py
Last active June 11, 2017 17:29
Google Search
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
GOOGLE SEARCH
-------------
Command line access to advanced Google searches.
To see all options use the `--help` flag.
Copyright (c) 2013, T. Zengerink
Licensed under MIT License
@breezhang
breezhang / update.cmd
Last active December 20, 2018 13:49
Automatically Update SysInternals Tools Using Robocopy
net start webclient
robocopy.exe \\live.sysinternals.com\tools "C:\SysInternals"
net stop webclient
@mklabs
mklabs / github-flavored-markdown.md
Created March 1, 2011 09:47
GitHub Flavored Markdown #test #github #markdown

GitHub Flavored Markdown

View the source of this content.

Let's get the whole "linebreak" thing out of the way. The next paragraph contains two phrases separated by a single newline character:

Roses are red Violets are blue

@pirate
pirate / dump_pocket.py
Last active February 26, 2024 04:05
Archive pocket data to local folder
#!/usr/bin/env python3
# Nick Sweeting 2017 | MIT License
# Usage:
# 1. Download pocket export from https://getpocket.com/export to ril_export.html
# 2. Run ./dump_pocket.py ril_export.html
# 4. Archive is saved in "pocket" folder
# Dependencies (chrome, python3, wget):
# wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
@suresync
suresync / search_templates
Created October 6, 2016 16:22 — forked from bobpoekert/search_templates
A machine readable list of search engines. Each line is a query template, where all occurrences of {searchTerms} should be replaced with the search query. These were scraped off mycroft.mozdev.org, and tested that they at least respond with a page that contains the input query (to remove pages that lie behind login walls).
http://0-www.sciencedirect.com.www.consuls.org/science?_ob=QuickSearchURL&_method=submitForm&_acct=C000050221&md5=0c4b6db32507e4a332b2aa6dd47a65f4&qs_all={searchTerms}&qs_author=&qs_title=&qs_vol=&qs_issue=&qs_pages=&x=34&y=15
http://0-dictionary.oed.com.library.utulsa.edu/cgi/findword?query_type=word&queryword={searchTerms}
http://100.daum.net/search/search.do?query={searchTerms}
http://1000corks.com/search?st={searchTerms}&src=myc
http://11870.com/konsulto/{searchTerms}
http://1000memories.com/search?q={searchTerms}
http://130.219.35.129/search?q={searchTerms}&btnG=Google+Search&entqr=0&output=xml_no_dtd&sort=date%3AD%3AL%3Ad1&client=default_frontend&ud=1&oe=UTF-8&ie=UTF-8&proxystylesheet=default_frontend&site=default_collection
http://1337x.org/search/{searchTerms}/0/
http://11888.ote.gr/web/guest/white-pages/search?who={searchTerms}&where=
http://140.111.34.46/cgi-bin/newDict/dict.sh?idx=dict.idx&cond={searchTerms}&pieceLen=50&fld=1&cat=&imgFont=1
//Resizer - Responsive Design Bookmarklet
javascript:(function(){document.body.appendChild(document.createElement('script')).src='http://codebomber.com/jquery/resizer/resizer.min.js';})();
//ish - yet another viewport resizer
bradfrostweb.com/demo/ish/?url=http%3A%2F%2Fbradfrostweb.com%2Fdemo%2Fish%2F
//Responsinator - Responsive Design Bookmarklet
javascript:location.href='http://www.responsinator.com/?url='+window.location.href
//RWD - Responsive Design Bookmarklet
@mikesigs
mikesigs / bin\alias.bat
Last active February 26, 2024 04:06
Cmder Customization
@echo off
set ALIASES=%CMDER_ROOT%\config\aliases
setlocal
:: handle quotes within command definition, e.g. quoted long file names
set _x="%*"
set _x=%_x:"=%
:: check command usage
if ["%_x%"] == [""] echo Use /? for help & echo. & goto :p_show
@smamran
smamran / GitHub languages.yml
Created December 10, 2015 09:18
Markdown GitHub
# Defines all Languages known to GitHub.
#
# type - Either data, programming, markup, prose, or nil
# aliases - An Array of additional aliases (implicitly
# includes name.downcase)
# ace_mode - A String name of the Ace Mode used for highlighting whenever
# a file is edited. This must match one of the filenames in http://git.io/3XO_Cg.
# Use "text" if a mode does not exist.
# wrap - Boolean wrap to enable line wrapping (default: false)
# extensions - An Array of associated extensions (the first one is
# from http://zzapper.co.uk/vimtips.html
------------------------------------------------------------------------------
" new items marked [N] , corrected items marked [C]
" *best-searching*
/joe/e : cursor set to End of match
3/joe/e+1 : find 3rd joe cursor set to End of match plus 1 [C]
/joe/s-2 : cursor set to Start of match minus 2
/joe/+3 : find joe move cursor 3 lines down
/^joe.*fred.*bill/ : find joe AND fred AND Bill (Joe at start of line)
/^[A-J]/ : search for lines beginning with one or more A-J