Skip to content

Instantly share code, notes, and snippets.

Avatar

Stan Bright StanBright

View GitHub Profile
@StanBright
StanBright / domain_check.sh
Last active Sep 19, 2020
Domain Name Search
View domain_check.sh
#!/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
@StanBright
StanBright / .deliver_config
Created May 24, 2017 — forked from andreapavoni/.deliver_config
Edeliver configuration to deploy a Phoenix app compiling and digesting assets locally
View .deliver_config
# 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"
View array.rb
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]
You can’t perform that action at this time.