Skip to content

Instantly share code, notes, and snippets.

Jamie O Idealien

Block or report user

Report or block Idealien

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
@Shelob9
Shelob9 / .lando.yml
Last active Mar 7, 2019
Lando + xdebug phpStorm
View .lando.yml
name: formcalderas
recipe: wordpress
config:
env: dev
xdebug: true
php: '7.1'
proxy:
mailhog:
- mail.formcalderas.lndo.site
pma:
@g-kanoufi
g-kanoufi / bitbucket-pipelines.yml
Last active Aug 3, 2019 — forked from keesiemeijer/setup-phpunit.sh
Setup Codeception for use in the Local by Flywheel app
View bitbucket-pipelines.yml
image: php:7.2
pipelines:
branches:
# '{develop, staging}':
develop:
- step:
caches:
- composer
script:
# Installing first the libraries necessary to configure and install gd
@ollietreend
ollietreend / acf-php-to-json.php
Last active Nov 14, 2019
Convert Advanced Custom Fields Pro configuration from PHP to JSON.
View acf-php-to-json.php
<?php
/**
* Plugin Name: Convert ACF PHP to JSON
* Description: Convert Advanced Custom Fields Pro configuration from PHP to JSON.
*/
namespace ConvertAcfPhpToJson;
/**
* Add submenu item under 'Custom Fields'
@ziadoz
ziadoz / install.sh
Last active Dec 6, 2019
Install Chrome, ChromeDriver and Selenium on Ubuntu 16.04
View install.sh
#!/usr/bin/env bash
# https://developers.supportbee.com/blog/setting-up-cucumber-to-run-with-Chrome-on-Linux/
# https://gist.github.com/curtismcmullan/7be1a8c1c841a9d8db2c
# http://stackoverflow.com/questions/10792403/how-do-i-get-chrome-working-with-selenium-using-php-webdriver
# http://stackoverflow.com/questions/26133486/how-to-specify-binary-path-for-remote-chromedriver-in-codeception
# http://stackoverflow.com/questions/40262682/how-to-run-selenium-3-x-with-chrome-driver-through-terminal
# http://askubuntu.com/questions/760085/how-do-you-install-google-chrome-on-ubuntu-16-04
# Versions
CHROME_DRIVER_VERSION=`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE`
@zackkatz
zackkatz / gravityview-modify-caps-by-id.php
Created Oct 5, 2015
GravityView - Examples for modifying editing capabilities by View ID and Entry ID
View gravityview-modify-caps-by-id.php
<?php
/**
* Modify whether an user has access to edit a specific View.
*
* @see https://codex.wordpress.org/Plugin_API/Filter_Reference/user_has_cap
*
* @param array $allcaps All the capabilities of the user
* @param array $cap [0] Required capability
* @param array $args [0] Requested capability
@2no
2no / Vagrantfile
Created Oct 18, 2014
Vagrant + Docker + dockerfile/nodejs-bower-grunt でフロントの開発環境を整える。
View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
ENV['VAGRANT_DEFAULT_PROVIDER'] = "docker"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.synced_folder ".", "/vagrant", disabled: true
@beaucharman
beaucharman / ACF_Layout.php
Last active Nov 3, 2017
Logical layout automation for Advanced Custom Fields and it's Flexible Content Field add on. http://www.advancedcustomfields.com/ http://www.advancedcustomfields.com/add-ons/flexible-content-field/
View ACF_Layout.php
<?php
/**
* ACF Layout
* @version 1.0 | November 12th 2013
* @author Beau Charman | http://twitter.com/beaucharman
* @link https://gist.github.com/beaucharman/7181406
* @license MIT license
*
* Logical layout automation for Advanced Custom Fields and it's Flexible Content Field add on.
@jakebellacera
jakebellacera / ICS.php
Last active Dec 5, 2019
A convenient script to generate iCalendar (.ics) files on the fly in PHP.
View ICS.php
<?php
/**
* This is free and unencumbered software released into the public domain.
*
* Anyone is free to copy, modify, publish, use, compile, sell, or
* distribute this software, either in source code form or as a compiled
* binary, for any purpose, commercial or non-commercial, and by any
* means.
*
You can’t perform that action at this time.