Skip to content

Instantly share code, notes, and snippets.

Joshua Estes JoshuaEstes

Block or report user

Report or block JoshuaEstes

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@JoshuaEstes
JoshuaEstes / 00-README.markdown
Last active Aug 29, 2015
My goto files for when I initialize a new symfony2 project. It includes bash scripts, composer.json files and a few other things.
View 00-README.markdown

README

These are the default files that I will usually start with when setting up a symfony2 project to use vagrant and puppet. I'm putting this readme file here for future updates.

Usage

Make sure the files that end in .sh are executable.

@JoshuaEstes
JoshuaEstes / pre-commit.phpcs
Last active Aug 29, 2015
Various git hooks
View pre-commit.phpcs
#!/bin/sh
###
#
# Runs phpcs to check for violations
#
PHPCS_BIN=$(command -v phpcs)
if [ ! $PHPCS_BIN ]; then
exit 0
fi
View api-spec.md

Introduction

Purpose

Requirements

Terminology

@JoshuaEstes
JoshuaEstes / heroku_config_set.sh
Last active Aug 29, 2015
This is a simple one line command that takes your local .env file and sets all the environmental variables on heroku for you to edit
View heroku_config_set.sh
heroku config:set $(cat .env | tr '\n' ' ' | sed -e 's/export //g')
@JoshuaEstes
JoshuaEstes / .env
Created Sep 17, 2014
Basic .env file for working with Symfony2 projects. Just need to comment out the include
View .env
export SYMFONY__SECRET=ReplaceWithToken
export SYMFONY__LOCALE=en
export SYMFONY__ASSETIC__CONTROLLER=true
export SYMFONY__DATABASE__DRIVER=pdo_sqlite
export SYMFONY__DATABASE__HOST=127.0.0.1
export SYMFONY__DATABASE__NAME=symfony
export SYMFONY__DATABASE__PASSWORD=root
export SYMFONY__DATABASE__PORT=3667
export SYMFONY__DATABASE__USER=root
export SYMFONY__MAILER__TRANSPORT=smtp
@JoshuaEstes
JoshuaEstes / rpc.bash
Created Sep 30, 2014
Using httpie for json-rpc commands to a bitcoind server
View rpc.bash
http --auth USERNAME:PASSWORD http://127.0.0.1:18332 method=getaccountaddress params:='[""]'
@JoshuaEstes
JoshuaEstes / Vagrant.rst
Last active Aug 29, 2015
Useful Oneliners
View Vagrant.rst

Vagrant

# Gettting the state of the machine, ie Is it poweroff or running

vagrant status --machine-readable | awk -F',' '$3 == "state" { print $4 }'

Can be used in a script like so

View BitPayClient.php
<?php
class BitPayClient
{
private $_client;
private $_network;
private $_adapter;
private $_storageEngine;
public function __construct($setup = false)
View keybase.md

Keybase proof

I hereby claim:

  • I am joshuaestes on github.
  • I am joshuaestes (https://keybase.io/joshuaestes) on keybase.
  • I have a public key whose fingerprint is CFBB C57B 9247 3A67 A039 063B EE48 82DF 7D66 AAB0

To claim this, I am signing this object:

@JoshuaEstes
JoshuaEstes / Deploy using SSH
Created Feb 3, 2011
A co-worker is a GOD of men, I challenged him to use one line a command to take files for a current git project and push those to a remote server. This is what he came up with.
View Deploy using SSH
git archive --format=tar HEAD | ssh username@server tar xf - -C /path/to/folder
You can’t perform that action at this time.