Skip to content

Instantly share code, notes, and snippets.

View josefaidt's full-sized avatar
🦉

josef josefaidt

🦉
View GitHub Profile
@josefaidt
josefaidt / tmux.conf
Last active December 14, 2018 02:30 — forked from spicycode/tmux.conf
The best and greatest tmux.conf ever
# Set <prefix> to ctrl+a
set -g prefix C-a
unbind-key C-b
bind-key C-a send-prefix
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
@josefaidt
josefaidt / Kronos-Accruals-Aggregation.sql
Created July 11, 2018 14:51
SQL Script that aggregates user accrual data from Kronos transaction extract
DECLARE {
@company as varchar(4)
,@user as varchar(7)
}
WITH
ACCRUALTRANS AS (
SELECT
N.HOMELABORLEVELNM1 AS 'COMPANY'
,A.PERSONNUM
@josefaidt
josefaidt / webpack.config.js
Created July 11, 2018 20:39
First Webpack config - sass, images, fonts, and babel
const HtmlWebpackPlugin = require('html-webpack-plugin')
const path = require('path')
module.exports = {
entry: './src/index.js',
output: {
filename: 'main.js',
path: path.resolve(__dirname, 'dist')
},
module: {
@josefaidt
josefaidt / .eslintrc.js
Last active February 19, 2019 15:58
ESLint with Standard.js and React
module.exports = {
extends: [
'standard',
'plugin:react/recommended',
'plugin:jsx-a11y/recommended',
'prettier',
'prettier/react',
'prettier/standard'
],
plugins: [
@josefaidt
josefaidt / install_eslint.sh
Created December 19, 2018 15:04
Installs my current ESLint configuration, add to PATH to execute anywhere. Meant for setting up new projects.
#!/bin/sh
# Sets up ESLint for my projects
# 1. install dev deps
yarn add -D \
eslint babel-eslint eslint-loader \
prettier eslint-config-prettier eslint-plugin-prettier \
eslint-config-standard eslint-plugin-standard \
eslint-plugin-node \
@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\"'"
},
@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 / .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 / 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 / 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",