Skip to content

Instantly share code, notes, and snippets.

View billhance's full-sized avatar

Bill Hance billhance

  • Startup
  • Los Angeles
View GitHub Profile
@billhance
billhance / README.md
Created August 10, 2018 04:10 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.

OP: @leonardofed founder @ plainflow.


@billhance
billhance / sed cheatsheet
Created April 9, 2018 19:58 — forked from asenchi/sed cheatsheet
magic of sed -- find and replace "text" in a string or a file
FILE SPACING:
# double space a file
sed G
# double space a file which already has blank lines in it. Output file
# should contain no more than one blank line between lines of text.
sed '/^$/d;G'
@billhance
billhance / drugwars.txt
Created December 17, 2016 18:02 — forked from mattmanning/drugwars.txt
Drugwars for the TI-82/83/83+ Calculators
Lbl G
ClrHome
Disp " J.M.'S DRUGWAR"," SIMULATION",""," VERSION 2.00",""," JUST SAY NO."
2000→Z
5000→Y
0→V
100→K
1→B
2→N
0→I
@billhance
billhance / Deploying Sharetribe to Heroku.md
Created September 16, 2016 01:59 — forked from svallory/Deploying Sharetribe to Heroku.md
Deploying Sharetribe to Heroku

Deploying to Heroku

  1. Deploy the app to heroku following heroku normal instructions (add link to heroku help)

  2. Set heroku environment variables

    Make sure all the options in config.yml are properly set then run:

     bundle exec rake heroku:config
    
@billhance
billhance / getchildren
Created April 12, 2016 07:32 — forked from avknor/getchildren
Doctrine2 get all the child records from adjacency list.
public function getSubOrgsForTranspnakl(Entity $topitem)
{
$childrenArray = array();
$iterate = true;
$listOfParents = array();
$listOfParents = array_push($listOfParents, $topitem);
while ($iterate){
$q = $this
->createQueryBuilder('o')
@billhance
billhance / Mac Dev Setup.md
Last active August 28, 2015 04:58 — forked from ogrrd/Mac Dev Setup.md
Installing nginx, PHP and MySQL on OS X Mavericks

Installing a Web Developer setup on OS X Mavericks

Install Command Line Tools

This is a requirement for brew in the next step. You can install XCode and then install Command Line Tools through the XCode preferences, or you can install just the Command Line Tools.

Install Command Line Tools

$ xcode-select --install
@billhance
billhance / .gitconfig
Last active August 29, 2015 14:26 — forked from pksunkara/config
Sample of git config file (Example .gitconfig)
[user]
name = Pavan Kumar Sunkara
email = pavan.sss1991@gmail.com
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
[sendemail]
smtpencryption = tls
smtpserver = smtp.gmail.com
// Node.js CheatSheet.
// Download the Node.js source code or a pre-built installer for your platform, and start developing today.
// Download: http://nodejs.org/download/
// More: http://nodejs.org/api/all.html
// 0. Synopsis.
// http://nodejs.org/api/synopsis.html
@billhance
billhance / .gitignore
Last active August 29, 2015 14:20 — forked from octocat/.gitignore
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
Apr 29 14:27:44 prod-workflow1 php-fpm: pool www[5482]: PHP Fatal error: Maximum function nesting level of '100' reached, aborting! in /opt/halo-symfony/releases/2/vendor/twig/twig/lib/Twig/Node.php on line 138
Apr 29 14:27:44 prod-workflow1 php-fpm: pool www[5482]: PHP Stack trace:
Apr 29 14:27:44 prod-workflow1 php-fpm: pool www[5482]: PHP 1. {main}() /opt/halo-symfony/releases/2/workflow/web/app.php:0
Apr 29 14:27:44 prod-workflow1 php-fpm: pool www[5482]: PHP 2. AppKernel->handle() /opt/halo-symfony/releases/2/workflow/web/app.php:29
Apr 29 14:27:44 prod-workflow1 php-fpm: pool www[5482]: PHP 3. Symfony\Component\HttpKernel\Kernel->handle() /opt/halo-symfony/releases/2/workflow/app/AppKernel.php:64
Apr 29 14:27:44 prod-workflow1 php-fpm: pool www[5482]: PHP 4. Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle() /opt/halo-symfony/releases/2/workflow/app/bootstrap.php.cache:2245
Apr 29 14:27:44 prod-workflow1 php-fpm: pool www[5482]: PHP 5. Symfony\Component\HttpKe