Skip to content

Instantly share code, notes, and snippets.

# Last commit
git log master..{branch_name} --oneline | tail -1
# First commit
git log master..{branch_name} --oneline | head -1
$ git remote rm origin
$ git remote add origin [email protected]:aplikacjainfo/proj1.git
$ git config master.remote origin
$ git config master.merge refs/heads/master
@tebajanga
tebajanga / gist:04b7e314979c7a45f00b4c56702fe2af
Created April 6, 2020 09:57 — forked from maccath/gist:3981205
Split PDF to individual pages using FPDI and FPDF
<?php
/**
* Split PDF file
*
* <p>Split all of the pages from a larger PDF files into
* single-page PDF files.</p>
*
* @package FPDF required http://www.fpdf.org/
* @package FPDI required http://www.setasign.de/products/pdf-php-solutions/fpdi/
@tebajanga
tebajanga / containers_status.sh
Created June 21, 2020 10:38
Docker status of all containers
docker ps -q | xargs docker stats