Skip to content

Instantly share code, notes, and snippets.

View josefaidt's full-sized avatar
🦉

josef josefaidt

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