Skip to content

Instantly share code, notes, and snippets.

@robgeorgeuk
robgeorgeuk / vs_code_extensions.md
Last active April 28, 2022 09:23
My VSCode Extensions for Laravel Develoment
@robgeorgeuk
robgeorgeuk / Codeception-setup.md
Last active November 29, 2021 13:02
Setup notes for Codeception, Selenium, Chromedriver and Visualception
@robgeorgeuk
robgeorgeuk / .gitignore
Created August 1, 2017 11:29
WordPress basic gitignore file
# This is a template .gitignore file for git-managed WordPress projects.
#
# Fact: you don't want WordPress core files, or your server-specific
# configuration files etc., in your project's repository. You just don't.
#
# Solution: stick this file up your repository root (which it assumes is
# also the WordPress root directory) and add exceptions for any plugins,
# themes, and other directories that should be under version control.
#
# See the comments below for more info on how to add exceptions for your
@robgeorgeuk
robgeorgeuk / gist:8e64c3bcd00040945da9
Created May 22, 2015 17:06
Export all MySQL databases in one go
#!/bin/bash
USER="homestead"
PASSWORD="secret"
databases=`mysql -u $USER -p$PASSWORD -e "SHOW DATABASES;" | tr -d "| " | grep -v Database`
for db in $databases; do
if [[ "$db" != "information_schema" ]] && [[ "$db" != "performance_schema" ]] && [[ "$db" != "mysql" ]] && [[ "$db" != _* ]] ; then
echo "Dumping database: $db"
@robgeorgeuk
robgeorgeuk / post_install.sh
Last active August 29, 2015 14:08
New OSX Setup. Run with: curl -L https://gist.githubusercontent.com/robgeorgeuk/df824e1632052fe7c818/raw/post_install.sh > install.sh && chmod 700 install.sh && ./install.sh
#!/bin/sh
#Heavily borrowed from:
#https://gist.github.com/t-io/8255711
#http://mattstauffer.co/blog/setting-up-a-new-os-x-development-machine-part-2-global-package-managers
#https://gist.github.com/millermedeiros/6615994
echo Install Homebrew
#next two lines ensure that apps are installed to applications but doesn't seem to take effect :-(
export HOMEBREW_CASK_OPTS="--appdir=/Applications"
echo HOMEBREW_CASK_OPTS="--appdir=/Applications" >> ~/.bash_profile
<?php
$client_id = post('client_id', 0);
$tickets_results = $ZendeskAPI->call('/organizations/'.$client_id.'/tickets.json', $values, 'GET'); ?>