Skip to content

Instantly share code, notes, and snippets.

View blackrobot's full-sized avatar
🖖
coffee

Damon Jablons blackrobot

🖖
coffee
View GitHub Profile
@blackrobot
blackrobot / main.css
Created December 12, 2019 00:49
mam+ dev build
.mp_notification {
position: fixed;
padding: 20px 40px;
width: 100%;
bottom: 0;
left: 0;
background: #333;
color: #bbb;
box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.3);
z-index: 99998; }
cask 'fiscript' do
version '1.0.1'
sha256 'a622526479338a151c42f57b04717902555b33aad06abba249c8a4bb0554a0ed'
url 'https://github.com/Mortennn/FiScript/releases/download/v1.0.1/FiScript.zip'
name 'FiScript'
homepage 'https://github.com/Mortennn/FiScript'
depends_on macos: '>= :sierra'
class Chromaprint < Formula
# Revert chromaprint changes to prevent ffmpeg circular dependency
# https://github.com/Homebrew/homebrew-core/pull/46684
# https://github.com/homebrew-ffmpeg/homebrew-ffmpeg/issues/13
desc "Core component of the AcoustID project (Audio fingerprinting)"
homepage "https://acoustid.org/chromaprint"
url "https://github.com/acoustid/chromaprint/releases/download/v1.4.3/chromaprint-1.4.3.tar.gz"
sha256 "ea18608b76fb88e0203b7d3e1833fb125ce9bb61efe22c6e169a50c52c457f82"
@blackrobot
blackrobot / django_streaming_csv.py
Created November 14, 2019 18:21
An example of how to stream complex django querysets without response timeouts | https://stackoverflow.com/a/58828200/28360
"""
This is an example of how to traverse relations and implement complex
django querysets. It's in relation to the follow-up questions asked by
Jérémy Octeau's in the comments on this Stack Overflow post:
https://stackoverflow.com/a/58828200/28360
"""
# Some example models
from django.conf import settings
from django.db import models
@blackrobot
blackrobot / minimal.vimrc
Last active August 26, 2019 20:31
A minimal vimrc for use on remote servers
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
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.
@blackrobot
blackrobot / primary-styling.css
Created March 8, 2019 17:09
Markdown Here Settings
/*
* 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 December 4, 2023 01:42
Preference settings for duckduckgo.com / duck.com
/**
* 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 October 7, 2018 21:44
A cheatsheet of plugin commands built into the VS Code Vim extension
@blackrobot
blackrobot / iina-input.conf
Last active August 30, 2018 21:37
Custom keybinding config for IINA
# ###
# 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