Skip to content

Instantly share code, notes, and snippets.

View Grummfy's full-sized avatar

Grummfy Grummfy

View GitHub Profile
@cotcotquedec
cotcotquedec / Route.php
Last active February 23, 2017 09:04
Load route from controller reflexion for laravel 5.3 as Route::controller is no more
<?php namespace App\Http;
use BetterReflection\Reflection\ReflectionClass;
/**
* Class Route
*
* Installation :
* package require https://github.com/Roave/BetterReflection
* $ composer require roave/better-reflection
@jamesmoriarty
jamesmoriarty / query.rb
Last active April 29, 2016 19:30
Newrelic Insights Query
require 'net/http'
require 'uri'
require 'json'
module NewRelic
module Insights
class Query
attr_reader :key, :account_id
def initialize(key, account_id)
@ThomasGaubert
ThomasGaubert / playsong.py
Last active April 4, 2020 19:46
Play songs from Google Play Music in VLC.
from gmusicapi import Webclient
from gmusicapi import Mobileclient
import vlc
import urllib
# Use Google account credintials. If two factor is enabled, use application specific password.
email = 'user@gmail.com'
password = 'password'
# Device ID for API queries. Leave blank if unknown.
@dahnielson
dahnielson / UUID.php
Last active April 5, 2024 21:14
Pure PHP UUID generator
<?php
/**
* UUID class
*
* The following class generates VALID RFC 4122 COMPLIANT
* Universally Unique IDentifiers (UUID) version 3, 4 and 5.
*
* UUIDs generated validates using OSSP UUID Tool, and output
* for named-based UUIDs are exactly the same. This is a pure
* PHP implementation.