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
# Created by https://www.gitignore.io/api/rails | |
### Rails ### | |
*.rbc | |
capybara-*.html | |
.rspec | |
/log | |
/tmp | |
/db/*.sqlite3 |
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
{ | |
"src_folders" : ["tests"], | |
"output_folder" : "reports", | |
"custom_commands_path" : "", | |
"custom_assertions_path" : "", | |
"page_objects_path" : "./pages", | |
"globals_path" : "", | |
"selenium" : { | |
"start_process" : false, |
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
#!/bin/sh | |
# Jekyll, the static website generator (https://jekyllrb.com/) , requires you to create blog | |
# posts with the "date" in their title so they are properly sorted on the website. | |
# The problem is, I don't want to keep typing that shit. I want it done for me for todays date and I always | |
# want the time that I created this blog post to be put in the "front matter" (https://jekyllrb.com/docs/front-matter/) | |
# so I can see how long it's been since I started writing if I wanted. | |
# Usage: today.sh <the entire blog post title> | |
# Example: today.sh its a very magical day today |
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
# Run this file after you split the big ass massive .vcard dump from Mac Addressbook / Contacts | |
# usage: ruby parser.rb > somefile.csv | |
class VCardParser | |
def initialize(path_to_file) | |
@file = path_to_file | |
end | |
def method_missing(name, *args, &block) | |
search_for_line_starting_with(name.upcase).first.to_s.split(":").last.to_s.strip.gsub(/[;,]/, "") |
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
#!/bin/sh | |
# About | |
# Our disk drives get huge because, well, files end up everywhere (or maybe you are way better at this than I am). | |
# Over the past 5 years my drive has bloated and there are all kinds of files everywhere. | |
# The first step is to ORGANIZE everything into buckets that make "sense". | |
# This script will move certain file types into directories. THats the first step of | |
# organizing as I build the script. Eventually, this script will auto run at the | |
# end of the day via a cronjob so all files stay organized 100% of the time |
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
#!/bin/sh | |
# Rename files in subdirectories to the names of the sub directory | |
# and place them in the current directory | |
# This script needs help. but it works | |
for d in $1*; do | |
if [ -d "$d" ]; then | |
echo "Dir: $d" | |
cp $d/*.html $(echo "$d" | sed -E 's/source\/(.+)?$/source\/\1\.md/g') |
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
#!/bin/bash | |
# Source: http://blog.nonuby.com/blog/2012/07/05/copying-env-vars-from-one-heroku-app-to-another/ | |
# TODO: Create list of ENV vars to send all at once instead of setting and restarting server after each | |
# update | |
set -e | |
sourceApp="$1" | |
targetApp="$2" |
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
<script> | |
let answer = ''; | |
let answers = [ | |
'It is certain', | |
'It is decidedly so', | |
'Without a doubt', | |
'Yes – definitely', | |
'You may rely on it', |
OlderNewer