Skip to content

Instantly share code, notes, and snippets.

@Mouerr
Mouerr / move-photos.js
Created February 13, 2021 12:02 — forked from kentcdodds/move-photos.js
Just a script I wrote to get my downloaded Google Photos into the right place.
const path = require('path')
const fs = require('fs')
const execSync = require('child_process').execSync
if (!process.argv[2] || !process.argv[3]) {
throw new Error('you did not pass the source and destination paths')
}
const searchPath = path.join(process.cwd(), process.argv[2])
const destination = path.join(process.cwd(), process.argv[3])
@Mouerr
Mouerr / Login.php
Created January 15, 2020 09:26 — forked from kunicmarko20/Login.php
Symfony OAuth with Leage OAuth2 library
<?php
declare(strict_types=1);
namespace App;
use Symfony\Component\HttpFoundation\Response;
use Twig\Environment;
use League\OAuth2\Client\Provider\Google as GoogleProvider;