Skip to content

Instantly share code, notes, and snippets.

🖖
coffee

Damon Jablons blackrobot

🖖
coffee
Block or report user

Report or block blackrobot

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@blackrobot
blackrobot / minimal.vimrc
Last active Aug 26, 2019
A minimal vimrc for use on remote servers
View minimal.vimrc
syntax enable
colorscheme slate
set ai
set autoread
set background=dark
set backspace=eol,start,indent
set backupdir^=~/.vim/_backup//
set directory^=~/.vim/_temp//
set encoding=utf8
View vs-code_dev-tools-console.log
16:02:26.032 extensionHost.ts:330 [Extension Host] debugger listening on port 21278
16:02:26.512 extensionService.ts:788 Couldn't find message for key python.snippet.launch.unitTests.description.
_logMessageInConsole @ extensionService.ts:788
16:02:26.515 extensionService.ts:788 Couldn't find message for key python.snippet.launch.unitTests.description.
_logMessageInConsole @ extensionService.ts:788
16:02:26.721 textMateService.ts:53 Overwriting grammar scope name to file mapping for scope source.js.jsx.
Old grammar file: file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/extensions/javascript/syntaxes/JavaScriptReact.tmLanguage.json.
New grammar file: file:///Users/damon/.vscode/extensions/dzannotti.vscode-babel-coloring-0.0.4/syntaxes/Babel%20Language.json
register @ textMateService.ts:53
16:02:26.722 textMateService.ts:53 Overwriting grammar scope name to file mapping for scope source.python.
View primary-styling.css
/*
* NOTE:
* - The use of browser-specific styles (-moz-, -webkit-) should be avoided.
* If used, they may not render correctly for people reading the email in
* a different browser than the one from which the email was sent.
* - The use of state-dependent styles (like a:hover) don't work because they
* don't match at the time the styles are made explicit. (In email, styles
* must be explicitly applied to all elements -- stylesheets get stripped.)
*/
@blackrobot
blackrobot / duckduckgo.js
Last active Dec 12, 2018
Preference settings for duckduckgo.com / duck.com
View duckduckgo.js
/**
* Duck Duck Go Settings
* https://duckduckgo.com/params
**/
{
// Result Settings
"kl": "us-en", // Language & Region
"kp": "-2", // Safe Search: Off
"kz": "1", // Open Instant answers: On
@blackrobot
blackrobot / vscode-vim.cheatsheet.md
Last active Oct 7, 2018
A cheatsheet of plugin commands built into the VS Code Vim extension
View vscode-vim.cheatsheet.md
@blackrobot
blackrobot / iina-input.conf
Last active Aug 30, 2018
Custom keybinding config for IINA
View iina-input.conf
# ###
# damon.conf - IINA keybindings
# ###
# Copied from the default input config for IINA
#
# Documentation can be found here:
# * https://github.com/lhc70000/iina/wiki/Manage-Key-Bindings
# * https://mpv.io/manual/stable/#command-interface
#@iina Shift+Meta+v video-panel
View context_wrapper.py
import contextlib
@contextlib.contextmanager
def managed_records(shelve_db_names, file_names):
try:
shelve_dbs = []
for name in shelve_db_names:
db = shelve.open(name, protocol=pickle.HIGHEST_PROTOCOL)
shelve_dbs.append(db)
@blackrobot
blackrobot / github-refined.css
Last active Jul 12, 2018
Github Refined Extra CSS
View github-refined.css
.blob-code-inner,
.blob-num,
.highlight pre,
.files > tbody > tr > td.content a {
font-family: "Operator Mono" !important;
}
.files > tbody > tr > td.content a {
font-size: 13.3px;
}
.pl-c, .pl-e {
@blackrobot
blackrobot / devdocs.json
Created Jun 21, 2018
preferences from devdocs.io
View devdocs.json
{
"docs": "css/django~1.11/django~2.0/docker~17/dom/dom_events/git/html/http/javascript/markdown/nginx/pandas~0.22/postgresql~9.6/python~3.6/python~2.7/react/react_native/redux/typescript/yarn/immutable/jquery/lua~5.3/numpy~1.14/sqlite",
"hideDisabled": "1",
"layout": "_sidebar-hidden",
"size": "260",
"tips": "KeyNav"
}
@blackrobot
blackrobot / how-to-set-up-stress-free-ssl-on-os-x.md
Created Jan 31, 2018 — forked from jed/how-to-set-up-stress-free-ssl-on-os-x.md
How to set up stress-free SSL on an OS X development machine
View how-to-set-up-stress-free-ssl-on-os-x.md

How to set up stress-free SSL on an OS X development machine

One of the best ways to reduce complexity (read: stress) in web development is to minimize the differences between your development and production environments. After being frustrated by attempts to unify the approach to SSL on my local machine and in production, I searched for a workflow that would make the protocol invisible to me between all environments.

Most workflows make the following compromises:

  • Use HTTPS in production but HTTP locally. This is annoying because it makes the environments inconsistent, and the protocol choices leak up into the stack. For example, your web application needs to understand the underlying protocol when using the secure flag for cookies. If you don't get this right, your HTTP development server won't be able to read the cookies it writes, or worse, your HTTPS production server could pass sensitive cookies over an insecure connection.

  • Use production SSL certificates locally. This is annoying

You can’t perform that action at this time.