Skip to content

Instantly share code, notes, and snippets.

View kushyapp's full-sized avatar

Kushy kushyapp

View GitHub Profile
@kushyapp
kushyapp / web.php
Last active May 29, 2018 22:44
Kushy API OAuth Example - Routes
<?php
Route::get('/', function () {
$query = http_build_query([
'client_id' => '6',
'redirect_uri' => 'http://127.0.0.1:8001/callback',
'response_type' => 'code',
'scope' => 'access-email'
]);
return redirect('https://kushy.net/oauth/authorize?'.$query);
@kushyapp
kushyapp / grab_images_from_tumblr.php
Created January 11, 2018 07:56
Grabs Strain Images from WeedPornDaily Tumblr archive of tags (#Blue-Dream)
<?php
//mySQL
// connect to mysql
$servername = "localhost";
$username = "user";
$password = "super_secret";
$dbname = "kushy_api";
@kushyapp
kushyapp / user.yml
Created December 7, 2017 04:43
Add extra fields to Kirby users
fields:
twitter:
label: Twitter
type: text
placeholder: @username
icon: twitter
width: 1/2
instagram:
label: Instagram
type: text