Skip to content

Instantly share code, notes, and snippets.

View bmichotte's full-sized avatar

Benjamin Michotte bmichotte

View GitHub Profile
@bmichotte
bmichotte / !NOTE.md
Created August 24, 2017 14:55 — forked from ivanvermeyen/!NOTE.md
Setup a Laravel Storage driver with Google Drive API
@bmichotte
bmichotte / .php_cs.laravel.php
Created July 17, 2019 15:19 — forked from laravel-shift/.php-cs-fixer.php
PHP CS Fixer - Laravel Ruleset
<?php
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
$rules = [
'phpdoc_indent' => true,
'binary_operator_spaces' => [
'operators' => ['=>' => null]
],
@bmichotte
bmichotte / spotify-now-playing.js
Created September 30, 2020 11:20 — forked from marco79cgn/spotify-now-playing.js
A Scriptable iOS widget that shows what‘s playing on Spotify
let spotifyCredentials
let widget = await createWidget()
Script.setWidget(widget)
Script.complete()
async function createWidget() {
let widget = new ListWidget()
let spotifyIcon = await getImage("spotify-icon.png")
widget.backgroundColor = new Color("1e2040")
@bmichotte
bmichotte / spotify-now-playing.js
Created September 30, 2020 11:20 — forked from marco79cgn/spotify-now-playing.js
A Scriptable iOS widget that shows what‘s playing on Spotify
let spotifyCredentials
let widget = await createWidget()
Script.setWidget(widget)
Script.complete()
async function createWidget() {
let widget = new ListWidget()
let spotifyIcon = await getImage("spotify-icon.png")
widget.backgroundColor = new Color("1e2040")
@bmichotte
bmichotte / web-servers.md
Created March 3, 2022 09:45 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000