Skip to content

Instantly share code, notes, and snippets.

View owex's full-sized avatar
🥷

Owen Rhodes owex

🥷
  • Soak Digital
  • U.K.
View GitHub Profile
@owex
owex / ACF Country List
Created February 6, 2018 11:27 — forked from yaronguez/ACF Country List
Country list formatted for Advanced Custom Fields select dropdown
afghanistan : Afghanistan
albania : Albania
algeria : Algeria
american_samoa : American Samoa
andorra : Andorra
angola : Angola
anguilla : Anguilla
antigua_and_barbuda : Antigua and Barbuda
argentina : Argentina
armenia : Armenia
@owex
owex / README.md
Created February 5, 2018 14:37 — forked from hofmannsven/README.md
My simply MySQL Command Line Cheatsheet
@owex
owex / gist:bce8d82c1cd16115695658e78242b473
Created December 21, 2017 09:31
Display the structure of a folder and all subfolders in terminal
ls -R | grep ":$" | sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/ /' -e 's/-/|/'
@owex
owex / vagrants.txt
Created November 21, 2017 09:46 — forked from itsazzad/vagrants.txt
List of some good vagrant systems
180 2,582 537
Varying Vagrant Vagrants is an evolving Vagrant configuration focused on WordPress development.
https://github.com/Varying-Vagrant-Vagrants/VVV
52 550 64
:globe_with_meridians: Variable VVV - a VVV Site Creation Wizard
https://github.com/bradp/vv
12 126 20
Dashboard for Varying Vagrant Vagrants https://github.com/Varying-Vagrant-Vagrants/VVV
https://github.com/topdown/VVV-Dashboard
@owex
owex / get-instagram-feed.php
Last active November 10, 2017 14:11
Simple PHP Instagram feed
<?php
// Created following https://medium.com/@bkwebster/how-to-get-instagram-api-access-token-and-fix-your-broken-feed-c8ad470e3f02
function get_instagram($user_id=XXXXXXXXX, $count=18, $width=190, $height=190){
$url = 'https://api.instagram.com/v1/users/'.$user_id.'/media/recent/?access_token=XXXXXXXXXXXXXXXXXXXXXX&count='.$count;
// Also Perhaps you should cache the results as the instagram API is slow
$cache = './instagram/'.sha1($url).'.json';
if(file_exists($cache) && filemtime($cache) > time() - 60*60){
// If a cache file exists, and it is newer than 1 hour, use it
@owex
owex / css-property-order
Created April 18, 2017 08:35
CSS Property Order
order
position
top
right
bottom
left
z-index
display
float
width
<!doctype html>
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ -->
<html>
<head>
<title>iOS 8 web app</title>
<!-- CONFIGURATION -->