Skip to content

Instantly share code, notes, and snippets.

View kevinkhill's full-sized avatar

Kevin Hill kevinkhill

View GitHub Profile
@thejettdurham
thejettdurham / homestead-xdebug.md
Last active November 1, 2021 23:43
Debugging laravel/lumen + artisan from Homestead with PHPStorm over xdebug

This config works for me with the following setup, YMMV

  • OSX El Capitain
  • PHPStorm 2016.2.1
  • Lumen 5.2
  • Homestead as of Lumen 5.2
    • php 7.0.8-2
    • Xdebug 2.4.0

Homestead Configuration

// This will open up a prompt for text to send to a console session on digital ocean
// Useful for long passwords
(function () {
var t = prompt("Enter text to be sent to console, (This wont send the enter keystroke)").split("");
function f() {
var character = t.shift();
var i=[];
var code = character.charCodeAt();
var needs_shift = "!@#$%^&*()_+{}:\"<>?~|".indexOf(character) !== -1
# Type(<scope>): <subject>
# <body>
# <footer>
# Type should be one of the following:
# * feat (new feature)
# * fix (bug fix)
# * docs (changes to documentation)
@wolfg1969
wolfg1969 / pcd8544_rpi_ip.c
Last active November 11, 2020 11:49
show ip address A simple PCD8544 LCD (Nokia3310/5110) for Raspberry Pi for displaying some system informations. Makes use of WiringPI-library of Gordon Henderson (https://projects.drogon.net/raspberry-pi/wiringpi/)
/*
=================================================================================
Name : pcd8544_rpi.c
Version : 0.1
Copyright (C) 2012 by Andre Wussow, 2012, desk@binerry.de
Description :
A simple PCD8544 LCD (Nokia3310/5110) for Raspberry Pi for displaying some system informations.
Makes use of WiringPI-library of Gordon Henderson (https://projects.drogon.net/raspberry-pi/wiringpi/)