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
@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>
@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')

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"
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.
@jfcherng
jfcherng / st4-changelog.md
Last active April 20, 2024 00:25
Sublime Text 4 changelog just because it's not on the official website yet.
@rjhansen
rjhansen / keyservers.md
Last active April 14, 2024 12:28
SKS Keyserver Network Under Attack

SKS Keyserver Network Under Attack

This work is released under a Creative Commons Attribution-NoDerivatives 4.0 International License.

Terminological Note

"OpenPGP" refers to the OpenPGP protocol, in much the same way that HTML refers to the protocol that specifies how to write a web page. "GnuPG", "SequoiaPGP", "OpenPGP.js", and others are implementations of the OpenPGP protocol in the same way that Mozilla Firefox, Google Chromium, and Microsoft Edge refer to software packages that process HTML data.

Who am I?

@OdatNurd
OdatNurd / Adaptive.sublime-theme
Last active December 9, 2023 05:57
Patched Adaptive.sublime-theme for modifying the color of files in the sidebar based on their git status
[
// VCS badges
{
"class": "vcs_status_badge",
"parents": [{"class": "file_system_entry", "attributes": ["untracked"]}],
"layer0.texture": "Theme - Default/common/status_untracked.png",
"layer0.tint": "color(var(--yellowish) blend(rgb(255, 255, 255) 60%))",
"layer0.opacity": 1.0,
"content_margin": 6
},
@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
@hfossli
hfossli / standard.sh
Last active February 8, 2024 05:19
Standard bash script format
#!/bin/bash
CLEAR='\033[0m'
RED='\033[0;31m'
function usage() {
if [ -n "$1" ]; then
echo -e "${RED}👉 $1${CLEAR}\n";
fi
echo "Usage: $0 [-n number-of-people] [-s section-id] [-c cache-file]"