Skip to content

Instantly share code, notes, and snippets.

View maximepvrt's full-sized avatar
👨‍💻
Working with Laravel, Nuxt and PostgreSQL

Maxime Pauvert maximepvrt

👨‍💻
Working with Laravel, Nuxt and PostgreSQL
View GitHub Profile
@djaiss
djaiss / progress_bar_migration_laravel.php
Last active May 4, 2024 15:03
Laravel: Use progress bars in migrations
<?php
use Symfony\Component\Console\Helper\ProgressBar;
use Symfony\Component\Console\Output\ConsoleOutput;
class DoSomething extends Migration
{
public function up()
{
$output = new ConsoleOutput();
@giannisp
giannisp / gist:ebaca117ac9e44231421f04e7796d5ca
Last active July 14, 2024 18:27
Upgrade PostgreSQL 9.6.5 to 10.0 using Homebrew (macOS)
After automatically updating Postgres to 10.0 via Homebrew, the pg_ctl start command didn't work.
The error was "The data directory was initialized by PostgreSQL version 9.6, which is not compatible with this version 10.0."
Database files have to be updated before starting the server, here are the steps that had to be followed:
# need to have both 9.6.x and latest 10.0 installed, and keep 10.0 as default
brew unlink postgresql
brew install postgresql@9.6
brew unlink postgresql@9.6
brew link postgresql
@gboudreau
gboudreau / AuthyToOtherAuthenticator.md
Last active July 19, 2024 16:50 — forked from Ingramz/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy
@tinusn
tinusn / Application.java
Last active January 9, 2016 21:05
Play Framework 2.3 - Java - CORS
package controllers;
import play.*;
import play.mvc.*;
public class Application extends Controller {
/*
* Define any extra CORS headers needed for option requests (see http://enable-cors.org/server.html for more info)
*/
@lxneng
lxneng / gist:741932
Created December 15, 2010 13:21
install PostgreSQL 9 in Mac OSX via Homebrew
install PostgreSQL 9 in Mac OSX via Homebrew
Mac OS X Snow Leopard
System Version: Mac OS X 10.6.5
Kernel Version: Darwin 10.5.0
Install notes for PostgreSQL 9.0.1 install using Homebrew:
sh-3.2# brew install postgresql