Skip to content

Instantly share code, notes, and snippets.

View josefaidt's full-sized avatar
🦉

josef josefaidt

🦉
View GitHub Profile
@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 / 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 / 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 / .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_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 / 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 / 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 / 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