This file contains 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
#!/bin/bash | |
echo "Set Timezone to CST" | |
timedatectl set-timezone America/Chicago | |
echo "Update Apt" | |
apt-get update -qq | |
echo "Remove Unused Default Packages" | |
apt-get remove -y --purge snapd cloud-init lxd |
This file contains 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
#!/bin/bash | |
url=${1:-http://localhost:3000} | |
# FYI: If your URL has an & you need to pass the argument in quotes. | |
# Chrome app mode doesn't work without the http/https part. | |
if [[ $url = *"http"* ]]; then | |
echo $url | |
else | |
url="http://${url}" |
This file contains 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
#!/bin/bash | |
# | |
# Displays the following in your terminal: | |
# | |
# ╔────────────╦──────────╦─────────────╦─────────────╦───────╗ | |
# ║ CPU: 68.7% ║ MEM: 53% ║ DISK: 788GB ║ profile.git ║ arm64 ║ | |
# ╚────────────╩──────────╩─────────────╩─────────────╩───────╝ | |
# | |
# Usage: * To display the above in new terminals, save this script to a file | |
# and add a call to the top of your ~/.profile |
This file contains 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
# Use this template to report PaperTrail bugs. | |
# Please include only the minimum code necessary to reproduce your issue. | |
require "bundler/inline" | |
# STEP ONE: What versions are you using? | |
gemfile(true) do | |
ruby "2.3.1" | |
source "https://rubygems.org" | |
gem "activerecord", "5.1.1" | |
gem 'rspec', '3.6.0' |
This file contains 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
begin | |
require "bundler/inline" | |
rescue LoadError => e | |
$stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler" | |
raise e | |
end | |
gemfile(true) do | |
source "https://rubygems.org" | |
# Activate the gem you are reporting the issue against. |
This file contains 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
# FactoryGirl factory verifier | |
# Jacob Duffy | |
# https://github.com/duffyjp | |
# | |
# Starts with all table names, then finds all models using each table. | |
# Verifies each model has a factory and that it is able to save! | |
require 'rails_helper' | |
describe "Factory" do |
This file contains 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
/* https://gist.github.com/duffyjp/5118bba6a98648f7fb3c | |
Foundation's Visibility Classes ported to Pure CSS | |
This is for Foundation 5, they changed it totally in 6 | |
I only did the show-for classes, not the hide-for | |
-- duffyjp | |
show-for-small-up | |
show-for-small-only |
This file contains 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
#!/bin/bash | |
start_time=`date +%s` | |
RAILS_ENV="test" | |
rm db/test.sqlite3* | |
if [[ $1 == *".rb"* ]] | |
then | |
echo "Testing with RSpec" | |
bundle exec rspec $1 |