This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
REM delete this line before using. The script below prints information, asks the user for confirmation before running the commands. Review commands and change to fit your needs and also your local username. | |
REM delete this line before using. This script require Git Bash for windows; see https://gist.github.com/ar-to/82fcaac189fff0cfb836a6922e542e9e | |
ECHO This is my auto OpenDevs batch script! | |
ECHO This batch script will open the following urls:Trello, Timelyapp, GitHub/ar-to, Slack, Wunderlist, Gitter, DevSource | |
ECHO This batch script will open the following apps:File Explorer(repos), Visual Studio Code, Git Bash(~), | |
ECHO system files (.bash_profile, .bashrc) are located in C:\Users\Ari\ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp');//main | |
var filter = require('gulp-filter');//filters files with globs | |
var pump = require('pump');//used only on uglify | |
var sass = require('gulp-sass');//using | |
var autoprefixer = require('gulp-autoprefixer');//using | |
var pug = require('gulp-pug');//using | |
var pugInheritance = require('gulp-pug-inheritance');//compile only changed files | |
var sourcemaps = require('gulp-sourcemaps');//using | |
var requirejsOptimize = require('gulp-requirejs-optimize');//using;optimizes modules individually & bundle (minify) | |
var path = require("path");//using for callback for pug task |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""""Ari's Vimrc Config | |
set nocompatible | |
syntax on | |
set encoding=utf8 "defaults to Latin-1 | |
"set nowrap "defaults to wrapping long lines | |
"""" Start Vundle config | |
" Disable file type for vundle |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Install Vundle | |
Visit source site: https://github.com/VundleVim/Vundle.vim | |
run: | |
$ git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim | |
$ touch ~/.vimrc | |
$ vim ~/.vimrc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Instructions | |
# Install Tmux package manager: https://github.com/tmux-plugins/tpm | |
# Add plugins and their options | |
# Run: $ tmux | |
# prefix (Ctrl+b) I - to fetch plugin and source .tmux.conf or tmux source ~/tmux.conf | |
List of plugins | |
set -g @plugin 'tmux-plugins/tpm' | |
set -g @plugin 'tmux-plugins/tmux-sensible' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ gem install gem-name | |
teamocil : create tmux windows and panes http://www.teamocil.com | |
temuxinator : same as teamocil but allow custom path for each window and pane https://github.com/tmuxinator/tmuxinator |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'); | |
var $ = require('gulp-load-plugins')(); | |
var argv = require('yargs').argv; | |
var autoprefixer = require('gulp-autoprefixer'); | |
var sourcemaps = require('gulp-sourcemaps'); | |
var bourbon = require("bourbon").includePaths; | |
// Check for --production flag | |
var PRODUCTION = !!(argv.production); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Below is a function to add current git branch name to bash prompt | |
#It also changes default setting of \h:\W \u\$ | |
#source: https://coderwall.com/p/fasnya/add-git-branch-name-to-bash-prompt | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
export PS1="\u@\h \[\033[32m\]\w\[\033[33m\]\$(parse_git_branch)\[\033[00m\] $ " | |
#The following functions are used to run git push origin w/branch w/o parenthesis as used in the ps1 prompt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Build Local Storage object | |
* @see https://www.codeblocq.com/2021/01/Jest-Mock-Local-Storage/ for source | |
* @see https://stackoverflow.com/a/32911774/9270352 for source | |
* @returns | |
*/ | |
export const fakeLocalStorage = () => { | |
let store: { [key: string]: string } = {} | |
return { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# TODO: | |
# - create methods for specific groups and maybe turn this into a CLI tool | |
# Print list of extensions ready to copy/paste and install | |
#code --list-extensions | xargs -L 1 echo code --install-extension | |
# Project Managing | |
code --install-extension alefragnani.project-manager |