Skip to content

Instantly share code, notes, and snippets.

View michaelblyons's full-sized avatar
🤐
Contributions from this account are indefinitely paused

Michael michaelblyons

🤐
Contributions from this account are indefinitely paused
View GitHub Profile
@cs278
cs278 / 0.4.8_0.4.9.diff
Created August 2, 2017 15:26
Web Developer 0.4.9 toolbar hacked
diff '--unified=3' --recursive 0.4.8_0/background/javascript/background.js 0.4.9_0/background/javascript/background.js
--- 0.4.8_0/background/javascript/background.js 2017-03-15 10:38:38.650194261 +0000
+++ 0.4.9_0/background/javascript/background.js 2017-08-02 14:18:29.679041517 +0100
@@ -1,3 +1,16 @@
+console.log("Start");
+
+chrome.runtime.onInstalled.addListener(function(details) {
+ console.log("onInstalled");
+ if(details.reason == "install") {
+ console.log("This is a first install!");
import sublime, sublime_plugin
import re
import threading
# This is an example plugin that simulates a completion interaction with an
# LSP server, while correctly apply any edits that are received from the
# server. This is trickier than you'd expect, due to the async nature the
# server communication, the async auto complete system in Sublime Text, and
# the use of row+col offsets within the LSP protocol.

Completion Kinds

  • python: sublime.KIND_ID_AMBIGUOUS, .sublime-completions: "ambiguous"
  • python: sublime.KIND_ID_KEYWORD, .sublime-completions: "keyword"
  • python: sublime.KIND_ID_TYPE, .sublime-completions: "type"
  • python: sublime.KIND_ID_FUNCTION, .sublime-completions: "function"
  • python: sublime.KIND_ID_NAMESPACE, .sublime-completions: "namespace"
  • python: sublime.KIND_ID_NAVIGATION, .sublime-completions: "navigation"
  • python: sublime.KIND_ID_MARKUP, .sublime-completions: "markup"
  • python: sublime.KIND_ID_VARIABLE, .sublime-completions: "variable"
@wbond
wbond / package_control.py
Last active August 14, 2020 18:42
How to monkey patch a Python module with code from another location
import importlib
import os
__pkg_path = os.path.join(
os.path.dirname(os.path.dirname(os.path.dirname(__file__))),
'Packages',
'Package Control',
'package_control'
)
__file_path = os.path.join(__pkg_path, '__init__.py')
@JimWolff
JimWolff / bbp_http2fs_win2k16-2018-03-12.ictpl
Last active November 19, 2020 10:09
IISCrypto template optimized for windows server 2016 to enable http2 and disable blacklisted ciphersuites plus updated with newest weak ciphers disabled (this template is used in my autofix ssl script here: https://gist.github.com/JimWolff/fc35d863db8971b2a73c96f90c5002e4 )
<?xml version="1.0" encoding="utf-16"?>
<iisCryptoTemplate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" version="0">
<header>
<name>Best Practice, prio HTTP/2, FS</name>
<author>Jim Wolff</author>
<lastUpdated>2018-03-12T12:45:11.0463186Z</lastUpdated>
<description>Using best practises, but TLS_ECDHE_ECDSA is prioritesed because its needed for http/2 not to use blacklisted cipher suites, prioriteses suites to ensure FS</description>
<builtIn>false</builtIn>
</header>
<schannel setClientProtocols="true">
@jfcherng
jfcherng / Symbol List - Heading.tmPreferences
Last active September 12, 2021 22:11
ST 4083 Markdown headings beautifying
<?xml version="1.0" encoding="UTF-8"?>
<plist version="1.0">
<dict>
<key>scope</key>
<string>text.html.markdown markup.heading - meta.whitespace.newline.markdown</string>
<key>settings</key>
<dict>
<key>showInSymbolList</key>
<integer>1</integer>
<key>symbolTransformation</key>
@sonOfRa
sonOfRa / mergetoolwrapper.sh
Last active August 29, 2022 09:57
Use Sublime Merge as a git mergetool
#!/bin/bash
# A wrapper script to make sublime_merge work more nicely
# when used as a git-mergetool
WORKDIR=`git rev-parse --show-toplevel`
REAL_HOME="$HOME/"
# Replace a leading homedir with ~/ to match the window title
REAL_WORKDIR=${WORKDIR/"^$REAL_HOME"/"~/"}
sublime_merge $REAL_WORKDIR
@denji
denji / unbound-osx-homebrew.md
Last active November 27, 2022 08:33
Install unbound DNS(SEC) resolver on OS X, on the basis of https://www.spatof.org/blog/unbound-dns-resolver-on-osx.html
To install unbound you can use homebrew
$ brew install unbound ldns
Now we can edit the configuration file of unbound which by default is located in /usr/local/etc/unbound/unbound.conf:
@bkeating
bkeating / wordpress-wxr-example.xml
Created February 23, 2011 16:57
A vanilla example of the WordPress WXR Schema. Im using this as a starting point to build my own comments importer for disqus.com
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dsq="http://www.disqus.com/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:wp="http://wordpress.org/export/1.0/"
>
<channel>
<item>
<!-- title of article -->