Skip to content

Instantly share code, notes, and snippets.

View josefaidt's full-sized avatar
🦉

josef josefaidt

🦉
View GitHub Profile
@josefaidt
josefaidt / Github-Dark-Fixed.css
Created March 5, 2019 16:50
Stylish - Github Dark - theme (2019)
@-moz-document domain("githubusercontent.com"), domain("graphql-explorer.githubapp.com"), domain("github.ibm.com"), regexp("^https?://((blog|gist|guides|help|raw|resources|status|developer)\\.)?github\\.com/((?!generated_pages/preview).)*$") {
/*! Github Dark v1.20.84 (2018-11-19) */
/*! Repository: https://github.com/StylishThemes/GitHub-Dark */
/*! Userstyle: http://userstyles.org/styles/37035 */
/*! License: https://creativecommons.org/licenses/by-sa/4.0/ */
/* Override default browser styles */
button {
color: #b5b5b5 !important;
}
/* begin auto-generated rules - use tools/generate.js to generate them */
@josefaidt
josefaidt / commands.py
Created February 26, 2019 20:21
Ranger command: Open in VSCode
from ranger.api.commands import Command
class code(Command):
"""
:code
Opens current directory in VSCode
"""
def execute(self):
@josefaidt
josefaidt / eslint.fish
Created January 29, 2019 14:39
ESLint Fish Functions
# Wrap ESLint command to use global config
function eslint
command eslint --config ~/.config/.eslintrc.js $argv
end
# Personal utility to install ESLint in the current working directory
function yawn
@josefaidt
josefaidt / eslint.fish
Created January 11, 2019 21:53
fish shell eslint wrapper to use universal config; place in `config.fish` or functions directory
function eslint
command eslint --config ~/.config/.eslintrc.js $argv
end
@josefaidt
josefaidt / nvm.fish
Created January 11, 2019 21:49
fish shell wrapper for nvm; add to `config.fish` or to functions directory
# need to install Fisher via `curl https://git.io/fisher --create-dirs -sLo ~/.config/fish/functions/fisher.fish`
# need to install bass via `fisher add edc/bass`
set LATEST_NVM (ls -t /usr/local/Cellar/nvm | head -1)
function nvm
bass source /usr/local/Cellar/nvm/{$LATEST_NVM}/nvm.sh --no-use ';' nvm $argv
end
@josefaidt
josefaidt / vscode_user_kbshortcuts.json
Created January 4, 2019 19:19
VSCode User Keyboard Shortcuts
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "alt+cmd+down",
"command": "-workbench.action.terminal.focusNextPane",
"when": "terminalFocus"
},
{
"key": "alt+cmd+up",
"command": "-workbench.action.terminal.focusPreviousPane",
@josefaidt
josefaidt / vscode_user_settings.json
Last active January 18, 2019 17:12
VSCode User Settings for my everyday use
{
"workbench.colorTheme": "Rouge", // of course
"workbench.iconTheme": "file-icons-colourless", // reduce flair in sidebar with B&W icons
"workbench.activityBar.visible": false, // takes up too much space, use keyboard shortcuts
"editor.minimap.enabled": false, // overrated
"editor.tabSize": 2,
"markdownlint.config": {
"MD013": false,
"no-inline-html": false // for those inline images and anchor tags
},
@josefaidt
josefaidt / .hyper.js
Created January 2, 2019 19:36
HyperRouge base setup
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',
@josefaidt
josefaidt / jsonview.css
Last active January 4, 2019 21:08
Discord-like + Rouge theme, custom CSS for JSONView
/* JSONView Discord-like Dark theme */
/* https://chrome.google.com/webstore/detail/jsonview/chklaanhfefbnpoihckbnefhakgolnmc?utm_source=chrome-ntp-icon */
:root {
--font: 'Operator Mono';
/* discord colors */
--grey: #99AAB5;
--blurple: #7289DA;
@josefaidt
josefaidt / nodemon.json
Created December 20, 2018 22:06
my nodemon config w/ macos alerts
{
"restartable": "rs",
"ignore": [
".git",
"node_modules/**/node_modules"
],
"verbose": true,
"events": {
"restart": "osascript -e 'display notification \"App restarted due to:\n'${FILENAME##*/}'\" with title \"nodemon\"'"
},