Skip to content

Instantly share code, notes, and snippets.

🤓
Creating awesome things!

Adam Culp adamculp

🤓
Creating awesome things!
Block or report user

Report or block adamculp

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
@adamculp
adamculp / Bank.php
Last active Nov 20, 2018 — forked from jwage/Banks.php
Working example of PHP Doctrine 2 ManyToOne with corresponding OneToMany association.
View Bank.php
<?php
declare(strict_types=1);
namespace Banks\Entity;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Branches\Entity\Branch;
@adamculp
adamculp / free-space-on-boot-disk.md
Created Sep 18, 2017 — forked from jbgo/free-space-on-boot-disk.md
Free up space on /boot disk (ubuntu)
View free-space-on-boot-disk.md

Free disk space when /boot is full (Ubuntu)

TL;DR

dpkg -l linux-image*
uname -r
sudo apt-get remove linux-image-2.6.32-{21,37,38,39,40,41,42,43,44}-server
sudo apt-get autoremove
@adamculp
adamculp / Jenkins-Plugins.md
Last active Sep 7, 2017
These are the typical plugins I install for Jenkins
View Jenkins-Plugins.md
  1. Build Pipeline Plugin OR Deliver Pipeline Plugin (preferred)
  2. Clone Workspace SCM plugin
  3. x CloudBees Folder Plugin
  4. Copy Artifact Plugin
  5. Join Plugin
  6. PostBuild Script Plugin
@adamculp
adamculp / practical-php-deployment-workshop.md
Last active Sep 1, 2017
Practical PHP Deployment Workshop
View practical-php-deployment-workshop.md

Virtual Machine Setup for Practical PHP Deployment Workshop

Welcome, the workshop is hands-on where you will actually be coding while you learn. (it's the best way to learn) This setup will help you with the following:

  1. Install VirtualBox
  2. Install Vagrant
  3. Using Vagrant and VirtualBox set up an Ubuntu 16.04 desktop virtual machine (VM) running a LAMP environment
  • The PHP version in the VM is version 7
  1. Set up the needed files within the VM for the hands-on portion of the workshop at /home/vagrant/workspace/
  • This will include an expressive folder where you will code, and an expressive-final folder with a completed version of the labs for you to use as a resource.
@adamculp
adamculp / readme.md
Created Aug 11, 2017 — forked from SammyK/readme.md
Northeast PHP Hack-a-thon notes
View readme.md

Northeast PHP Hack-a-thon (php-src) 2017

  • Set up GitHub account + add your SSH keys
  • Fork php-src repo to your GitHub account
  • Clone source (or use USB stick) & cd into directory
  • Update origin remote URL with your fork
$ git remote set-url origin {your-fork-URL}
@adamculp
adamculp / Dockerfile
Created Aug 11, 2017 — forked from SammyK/Dockerfile
Writing tests for php-src: Docker setup
View Dockerfile
FROM ubuntu:16.04
MAINTAINER Sammy Kaye Powers
RUN apt-get update \
&& apt-get install sudo vim git -y \
&& apt-get install build-essential autoconf valgrind -y \
&& apt-get install re2c bison -y \
&& apt-get install libxml2-dev locales lcov -y
@adamculp
adamculp / replace_php_short_tags.sh
Last active Mar 13, 2018 — forked from ma2thieu/replace_php_short_tags.sh
replace php short tags (<?) with long one (<?php)
View replace_php_short_tags.sh
#!/bin/bash
# purpose of these lines are to change short PHP tags to the full "<?php" style tag version
# PHP version 7+ has deprecated short tags
# first short PHP tags with something that is not a letter after
find . -iname "*.php" -print0 | xargs -0 -I{} sed -i -r 's/(<\?)([^a-zA-Z])/\1php\2/g' '{}'
# then find short PHP tags at end of line
find . -iname "*.php" -print0 | xargs -0 -I{} sed -i -r 's/<\?$/<\?php/g' '{}'
View Zend-Expressive-Workshop-Setup.md

Virtual Machine Setup for Zend Expressive Workshop

Welcome, the workshop is hands-on where you will actually be coding while you learn. (it's the best way to learn) This setup will help you with the following:

  1. Install VirtualBox
  2. Install Vagrant
  3. Using Vagrant and VirtualBox set up an Ubuntu 16.04 desktop virtual machine (VM) running a LAMP environment
  • The PHP version in the VM is version 7
  1. Set up the needed files within the VM for the hands-on portion of the workshop at /home/vagrant/workspace/
  • This will include an expressive folder where you will code, and an expressive-final folder with a completed version of the labs for you to use as a resource.
View Building great products - talk
Building Great Products
=======================
1. Intro
a. talk
b. me
2. Vision realized
a. "Like Facebook" already failed
b. it's your baby
c. target customer
@adamculp
adamculp / Building great products - workshop
Last active Aug 29, 2015
Basic outline of a talk by the same title
View Building great products - workshop
Building Great Products
=======================
1. Intro
a. talk
b. me
2. Vision realized
a. "Like Facebook" already failed
b. it's your baby
c. target customer
You can’t perform that action at this time.