Skip to content

Instantly share code, notes, and snippets.

View aaronsmulktis's full-sized avatar
🌐
Remote Control

Smokey aaronsmulktis

🌐
Remote Control
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
// Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible).
// Tweak the makePrettyJSON_ function to customize what kind of JSON to export.
var FORMAT_ONELINE = 'One-line';
var FORMAT_MULTILINE = 'Multi-line';
var FORMAT_PRETTY = 'Pretty';
var LANGUAGE_JS = 'JavaScript';
var LANGUAGE_PYTHON = 'Python';
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="terminalparty"
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
# Helpful: https://www.freecodecamp.org/news/how-to-configure-your-macos-terminal-with-zsh-like-a-pro-c0ab3f3c1156/
# Helpful: https://github.com/alexramirez/mac-setup
# Helpful: https://github.com/mathiasbynens/dotfiles/blob/master/.macos
# Run this from ~/Library/Mobile\ Documents/com~apple~CloudDocs/Install-Everything.sh
# Ask for the administrator password upfront
# echo -n 'Your Password Sir: '
# sudo -v
# read -s password

Put latest commit ID in variable

latestCommit="$(git rev-parse HEAD)"

Deploy via CLI

az pipelines build queue -p=Carvana.Projects --definition-name=Carvana.Campaigns.DEV --branch=refs/heads/@aaron.smulktis/develop --commit-id=${latestCommit}

Speedometer

npx @carvana/speedometer run -u https://apim.zagforward.com/spinner -b 5

@aaronsmulktis
aaronsmulktis / MauticCRM.md
Last active September 7, 2022 18:43
Helpful scripts for running the open source Mautic CRM

require new plugin
composer require mtcextendee/mautic-custom-deduplicate-bundle

Reload plugins
php app/console mautic:plugins:reload

De-duplicate contacts
sudo php app/console mautic:contacts:deduplicate

Instincts:

@aaronsmulktis
aaronsmulktis / osx_setup.md
Last active August 1, 2022 20:00 — forked from millermedeiros/osx_setup.md
Mac OS X setup

Setup Mac OS X

==============

This note is just for personal reference in case I need to setup a new computer.

Edit: I've done the same process every couple years since 2013 (Mountain Lion, Mavericks and High Sierra).

Consider using Boxen to automate the installation of all necessary and desired softwares and tools.

Pry Cheat Sheet

Command Line

  • pry -r ./config/app_init_file.rb - load your app into a pry session (look at the file loaded by config.ru)
  • pry -r ./config/environment.rb - load your rails into a pry session

Debugger

@aaronsmulktis
aaronsmulktis / gist:db7e2d2852da1fa685f404faf57f959f
Created November 14, 2018 17:31 — forked from khakimov/gist:3558086
Matrix Effect in you terminal
echo -e "\e[1;40m" ; clear ; while :; do echo $LINES $COLUMNS $(( $RANDOM % $COLUMNS)) $(( $RANDOM % 72 )) ;sleep 0.05; done|awk '{ letters="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#$%^&*()"; c=$4; letter=substr(letters,c,1);a[$3]=0;for (x in a) {o=a[x];a[x]=a[x]+1; printf "\033[%s;%sH\033[2;32m%s",o,x,letter; printf "\033[%s;%sH\033[1;37m%s\033[0;0H",a[x],x,letter;if (a[x] >= $1) { a[x]=0; } }}'
@aaronsmulktis
aaronsmulktis / _verify-repair-permissions-disk.md
Created October 23, 2018 07:44 — forked from bzerangue/_verify-repair-permissions-disk.md
Mac OS X Utilities via Terminal: (Verify and Repair: Disk Permissions AND Disk / Software Update / TimeMachine)

Verify and Repair Disk Permissions via Terminal (Mac OS X)

Verify Permissions

diskutil verifyPermissions /

Repair Permissions

diskutil repairPermissions /