Skip to content

Instantly share code, notes, and snippets.

View macintacos's full-sized avatar

Julian Torres macintacos

View GitHub Profile
@macintacos
macintacos / cloudSettings
Last active September 29, 2020 04:43
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-09-29T04:43:05.682Z","extensionVersion":"v3.4.3"}
@macintacos
macintacos / .zshrc
Created June 29, 2018 14:55
My Dumb GZSH Profile
## PROFILING INFORMATION.
## Uncomment the following line (and last line) to get loading times for zshell
# zmodload zsh/zprof
# If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:/usr/local/bin:$PATH
PATH=~/perl5/perlbrew/bin:$PATH
PATH=/usr/local/lib/node_modules:$PATH
export TERM="xterm-256color"
@macintacos
macintacos / rename-8601.sh
Created March 7, 2017 17:27
Crazy dirty script to prepend all filenames in a directory with ISO8601-formatted dates
for f in *;
do
filename=$(basename "$f")
filenamespacereplace=${filename// /-}
filecreationdate=$(GetFileInfo -d "$f")
truncateddate=${filecreationdate::10}
dateslashreplace=${truncateddate////-}
truncatedyear=${dateslashreplace:6:9}
truncatedday=${dateslashreplace:3:2}
$snapins = Get-PSSnapin -Registered
$snapins | Add-PSSnapin
Get-PSSnapin | Format-Table -autosize PSVersion, Name
function ff ([string] $glob) { get-childitem -recurse -include $glob }
function osr { shutdown -r -t 5 }
function osh { shutdown -h -t 5 }
@macintacos
macintacos / .bash_profile
Last active November 13, 2016 16:37
My current Terminal '.bash_profile', using the one found here as a base: https://natelandau.com/my-mac-osx-bash_profile/
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management