Skip to content

Instantly share code, notes, and snippets.

View kimpepper's full-sized avatar

Kim Pepper kimpepper

View GitHub Profile
alias.ssave=stash save
alias.sshow=!f() { git stash show stash^{/$*} -p; }; f
alias.sapply=!f() { git stash apply stash^{/$*}; }; f
alias.assume=update-index --assume-unchanged
alias.unassume=update-index --no-assume-unchanged
alias.assumed=!git ls-files -v | grep ^h | cut -c 3-
alias.masterdiff=log --oneline --no-merges --reverse master ^HEAD
alias.staged=diff --staged
alias.amend=commit --amend
alias.graph=log --oneline --graph --color=auto
<?php
/**
* @file
* Contains lib\Drupal\guzzle_example\GuzzleExample
*/
namespace Drupal\guzzle_example;
use GuzzleHttp\Client;
{
"require": {
"guzzlehttp/guzzle": "4.0.0-rc.1"
}
}
<?php
/**
* Finds the host IP address by calling the httpbin web service.
*
* @return string
* The current hosts IP address.
*/
function guzzle_example_get_host_ip() {
$client = new \GuzzleHttp\Client();
<?php
/**
* Implements hook_block_view().
*/
function guzzle_example_block_view($delta = '') {
$block = array();
$example = GuzzleExample::create();
switch ($delta) {
case 'host_ip':

Keybase proof

I hereby claim:

  • I am kimpepper on github.
  • I am kimpepper (https://keybase.io/kimpepper) on keybase.
  • I have a public key whose fingerprint is 34AF 53B8 A01B B514 E7AE DB28 896C 360D E4F9 4F70

To claim this, I am signing this object:

[Mon Aug 17 11:49:20.999097 2015] [core:notice] [pid 10861:tid 140709681420160] AH00094: Command line: '/usr/sbin/apache2'
App 10958 stdout:
App 10958 stderr: Please configure your config/database.yml first
App 10958 stdout:
[ 2015-08-17 11:50:19.4379 10868/7efd15847700 App/Implementation.cpp:303 ]: Could not spawn process for application /data/app: An error occured while starting up the preloader.
Error ID: 4e4c48d9
Error details saved to: /tmp/passenger-error-afBjb7.html
Message from application: <p>It looks like Bundler could not find a gem. Maybe you didn't install all the gems that this application needs. To install your gems, please run:</p>
<pre class="commands">bundle install</pre>
@kimpepper
kimpepper / gist:1236689
Created September 23, 2011 03:32
Drush Make file for Drupal 7 demo install profile
; Drupal 7 demo drush make file
core = 7.x
api = 2
projects[] = drupal
projects[d7_demo_profile][type] = profile
projects[d7_demo_profile][download][type] = git
projects[d7_demo_profile][download][url] = "git://github.com/previousnext/d7_demo_profile.git"
@kimpepper
kimpepper / example.make
Created December 1, 2011 01:51
Drush Make file for Drupal 7
; $Id: $
core = "7.x"
api = 2
projects[drupal][type] = "core"
; Contrib projects
projects[backup_migrate][subdir] = "contrib"
projects[context][subdir] = "contrib"
projects[features][subdir] = "contrib"
namespace :drush do
desc "Don't run Drupal database migrations"
task :updatedb, :on_error => :continue do
# no-op
end
end