Skip to content

Instantly share code, notes, and snippets.

View jfranciscos4's full-sized avatar
💭
I may be slow to respond.

J.F. Silva IV jfranciscos4

💭
I may be slow to respond.
View GitHub Profile
@jfranciscos4
jfranciscos4 / build.xml
Created November 1, 2012 04:50 — forked from casimiroarruda/build.xml
Arquivo de configuração para o phing
<?xml version="1.0" encoding="UTF-8"?>
<project name="TheProject" default="build" basedir=".">
<!-- Altere estas propriedades adequando-as ao seu projeto -->
<property name="application.library" value="${project.basedir}/library"/>
<property name="application.tests" value="${project.basedir}/tests"/>
<property name="application.builddir" value="${project.basedir}/build"/>
<target name="build"

#Introduction If you're a php developer on ubuntu, there comes the time where you have to install/reinstall your system. I did it already a few times and i decided to write down the steps for a typical web developer stack with php. This is for a developer machine and not for live environment!

I hope it's a help also for you!

#Installation stack

<VirtualHost *:80>
ServerName 192.168.33.10.xip.io
DocumentRoot /vagrant
<Directory /vagrant>
Options -Indexes +FollowSymLinks
AllowOverride All
Require all granted
</Directory>
#!/usr/bin/env bash
echo ">>> Starting Install Script"
# Update
sudo apt-get update
echo ">>> Installing Base Items"
# Install base items
[alias]
#Basic
st = status -sb
co = checkout
#Flow
fs = flow feature start
ff = flow feature finish
#Infoz
#!/bin/bash
# works with a file called VERSION in the current directory,
# the contents of which should be a semantic version number
# such as "1.2.3"
# this script will display the current version, automatically
# suggest a "minor" version update, and ask for input to use
# the suggestion, or a newly entered value.
#Inslatar Xdebug
sudo apt-get install xdebug
#Instalar o pear
sudo apt-get install php-pear
sudo pear channel-discover pear.phpunit.de
sudo pear channel-discover components.ez.no
sudo pear channel-discover pear.symfony-project.com
sudo pear channel-discover pear.cakephp.org
@jfranciscos4
jfranciscos4 / perfectelementary.bash
Created September 25, 2015 23:15
HowTo Install the perfect Elementary-OS
#Download Elementary OS from here:
#http://sourceforge.net/projects/elementaryos/files/stable/
#First you update your system
sudo apt-get update && sudo apt-get dist-upgrade
#Install Google Chrome
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
@jfranciscos4
jfranciscos4 / gist:c6eb2b11566322498cf992cd9a2b6bc6
Created September 12, 2016 17:30 — forked from arnolanglade/gist:3447e85d5e49e22f1066
PhpSpec doctrine repository template
// Doctrine ORM
use Doctrine\ORM\Mapping\ClassMetadata;
use Doctrine\ORM\EntityManager;
use Doctrine\ORM\AbstractQuery;
use Doctrine\ORM\QueryBuilder;
class RepositorySpec extends ObjectBehavior
{
function let(EntityManager $em, ClassMetadata $classMetadata)
{
@jfranciscos4
jfranciscos4 / slackpost
Created May 4, 2017 19:45 — forked from dopiaza/slackpost
Post a message to a Slack channel
#!/bin/bash
# Usage: slackpost <token> <channel> <message>
# Enter the name of your slack host here - the thing that appears in your URL:
# https://slackhost.slack.com/
slackhost=PUT_YOUR_HOST_HERE
token=$1