Skip to content

Instantly share code, notes, and snippets.

View Stanzilla's full-sized avatar
💭
¯\_(ツ)_/¯

Benjamin Staneck Stanzilla

💭
¯\_(ツ)_/¯
View GitHub Profile
Sublime Text 2 - Default shortcuts cheatsheet (PC keyboard)
-----------------
General
-----------------
* Go to file (CTRL + P)
* Go to project (CTRL + ALT + P)
* Go to methods (CTRL + R)
* Go to line (CTRL + G)
* Toggle side bar (CTRL + KB)
diff -rupN openssl-1.0.0g/apps/apps.c openssl-1.0.0g-npn//apps/apps.c
--- openssl-1.0.0g/apps/apps.c 2011-03-19 02:44:25.000000000 -0700
+++ openssl-1.0.0g-npn//apps/apps.c 2012-02-08 11:07:50.667074885 -0800
@@ -2693,6 +2693,48 @@ void jpake_server_auth(BIO *out, BIO *co
#endif
+/* next_protos_parse parses a comma separated list of strings into a string
+ * in a format suitable for passing to SSL_CTX_set_next_protos_advertised.
+ * outlen: (output) set to the length of the resulting buffer on success.
<QueryList>
<Query Id="0" Path="Security">
<Select Path="Security">*[System[(Level=0) and (EventID=4688)]] and (*[EventData[Data[@Name='NewProcessName'] and (Data='C:\WoW\WoW-64.exe')]])</Select>
</Query>
</QueryList>
/**
** ____ _ ___ ___ _ _
** | _ \ | | | \/ | | | (_)
** | | \ |__ _ _ __| | __ | . . | ___ _ __ ___ | | __ __ _ _
** | | | | _` | '__| |/ / | |\/| |/ _ \| '_ \ / _ \| |/ // _` | |
** | |_/ /(_| | | | < | | | | (_) | | | | (_) | <| (_| | |
** |____/\__,_|_| |_|\_\ \_| |_/\___/|_| |_|\___/|_|\_\\__,_|_|
**
** Quassel Theme
**
--[[
Library contains a dataset for Map file names and floors giving the raw map data
it also has a few functions to help determine distance and directions.
--]]
local MAJOR = "LibMapData-1.0"
local MINOR = 1000 + tonumber(("$Revision$"):match("%d+"))
assert(LibStub, MAJOR.." requires LibStub")
local lib = LibStub:NewLibrary(MAJOR, MINOR)
if not lib then return end
--[[
Library contains a dataset for Map file names and floors giving the raw map data
it also has a few functions to help determine distance and directions.
--]]
local MAJOR = "LibMapData-1.0"
local MINOR = 1000 + tonumber(("$Revision$"):match("%d+"))
assert(LibStub, MAJOR.." requires LibStub")
local lib = LibStub:NewLibrary(MAJOR, MINOR)
if not lib then return end
--[[
Library contains a dataset for Map file names and floors giving the raw map data
it also has a few functions to help determine distance and directions.
--]]
local MAJOR = "LibMapData-1.0"
local MINOR = 2003
assert(LibStub, MAJOR.." requires LibStub")
local lib = LibStub:NewLibrary(MAJOR, MINOR)
if not lib then return end

Create RSS Feed of the releases of all your starred GitHub repositories

I have done this with Google Chrome.

  1. Get your starred repositories from the GitHub API: https://api.github.com/users/USERNAME/starred?page=1&per_page=100
  2. Open the Web developer tools in Chrome. Select the pre Tag in the HTML-View and execute this Javascript in the console: JSON.parse($0.innerText).map(function(repo) { return 'https://github.com/' + repo.full_name + '/releases.atom' }).join('\n'). This generates a list of the Release-Feed-URLs.
  3. Copy the URL list to http://reader.feedshow.com/goodies/opml/OPMLBuilder-create-opml-from-rss-list.php If you have more than 100 starred repositories, you need repeat step 1 to 3 and increment the page in the URL in step 1 each time.
  4. Click "Create OPML".
  5. Save the OPML XML file to disk.
@Stanzilla
Stanzilla / library.lua
Created September 16, 2014 20:25
LibMapData for WoD
--[[
Library contains a dataset for Map file names and floors giving the raw map data
it also has a few functions to help determine distance and directions.
--]]
local MAJOR = "LibMapData-1.0"
local MINOR = 2003
assert(LibStub, MAJOR.." requires LibStub")
local lib = LibStub:NewLibrary(MAJOR, MINOR)
if not lib then return end
@Stanzilla
Stanzilla / urlpopup.kvs
Last active March 31, 2016 16:25 — forked from AndrioCelos/urlpopup.kvs
This is a KVIrc script that modifies the popup menu for URLs to include the page title. This means that there will be a delay before the menu appears, while the page is downloaded. Don't forget to disable the existing event handler.
event(OnURLLinkPopupRequest,URLpopup) {
http.asyncGet -m=1048576 -t=10 -w=h ($0, $file.localdir(tmp\\title-preview)) {
popup.show urlpopup $0 $1 $2 $3;
}
}
defpopup(urlpopup) {
prologue {
%:status = $0;
%:title_found = $false;