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 | |
# Name: Check for domain name availability (as featured on https://stanbright.com/domain-name-search) | |
# | |
# To use this script, add it to your ~/bin directory and make it executable. | |
# Then you can search for specific domains like this: > domain_check.sh my-new-domain | |
# | |
# Alternatively: | |
# - Generate domain name ideas based on a keyword: https://www.saashub.com/namebounce-alternatives | |
# - Search domain names as you type: https://www.saashub.com/domaintyper-alternatives |
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
# MYAPP/.deliver/config | |
APP="<APP NAME>" | |
MAIN_HOST="<BUILD & PRODUCTION HOST>" | |
MAIN_USER="<MAIN USER FOR BUILD AND DEPLOY>" | |
BUILD_HOST="${MAIN_HOST}" | |
BUILD_USER="${MAIN_USER}" | |
BUILD_AT="/tmp/edeliver/${APP}/builds" |
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
class Array | |
def to_hash | |
hash = Hash.new | |
for pair in self | |
if ( pair.size == 2 and | |
pair[0].class == Symbol and | |
pair[1].class == Fixnum ) | |
hash[pair[0]] = pair[1] |