Skip to content

Instantly share code, notes, and snippets.

View sidouglas's full-sized avatar

sidouglas sidouglas

  • Sydney, Australia
View GitHub Profile
@sidouglas
sidouglas / pushbullet.php
Created January 8, 2020 10:50 — forked from EdwinHoksberg/pushbullet.php
Pushbullet push function
<?php
function pushbullet(string $accessToken, string $title, string $body, string $type = 'note'): \stdClass
{
if (!in_array($type, ['note', 'url'])) {
throw new \Exception('Invalid pushbullet push type');
}
$curl = curl_init();
curl_setopt_array($curl, [
@sidouglas
sidouglas / delete-orphans-usermeta.sql
Created January 8, 2020 10:33 — forked from carlosleopoldo/delete-orphans-usermeta.sql
Delete all orphans user meta in WordPress
DELETE FROM wp_usermeta
WHERE NOT EXISTS (
SELECT * FROM wp_users
WHERE wp_usermeta.user_id = wp_users.ID
)
@sidouglas
sidouglas / Brewfile
Last active June 28, 2020 02:45 — forked from benrowe/Brewfile
Brew File for Mac System
tap "eugenmayer/dockersync"
tap "go-delve/delve"
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/core"
tap "homebrew/dupes"
tap "homebrew/php"
tap "homebrew/versions"
cask "java"
brew "awscli"