Skip to content

Instantly share code, notes, and snippets.

@juanbrujo
juanbrujo / PlayStationBIOSFilesNAEUJP.md
Last active May 9, 2024 22:00
Files for PlayStation BIOS Files NA-EU-JP
@zfarbp
zfarbp / s.md
Last active March 27, 2024 10:34
Trigger Spotify with osascript

Trigger Spotify with osascript

/Applications/Spotify.app/Contents/Resources/Spotify.sdef

# read-only
osascript -e 'tell application "Spotify" to player state'                  # stopped,playing,paused
osascript -e 'tell application "Spotify" to current track'                 # The current playing track.
osascript -e 'tell application "Spotify" to artwork url of current track'  # Image data in TIFF format.
osascript -e 'tell application "Spotify" to artist of current track'       # The artist of the track.
@Potherca
Potherca / README.md
Last active October 20, 2023 20:40
PHP Split file with multiple classes into separate files.

Split a file with mulitple classes into separate files.

Installation

git clone git@gist.github.com:594adece80ad1e9ddbce0b207db8ed0c.git split-file
cd split-file
composer install

Usage:

@jaceju
jaceju / migration.php
Created March 9, 2018 03:01
Use Laravel Migration standalone
<?php
use Illuminate\Container\Container;
use Illuminate\Database\Capsule\Manager as Capsule;
use Illuminate\Database\ConnectionResolverInterface;
use Illuminate\Database\Migrations\DatabaseMigrationRepository;
use Illuminate\Database\Migrations\MigrationRepositoryInterface;
use Illuminate\Database\Migrations\Migrator;
use Illuminate\Events\Dispatcher;