Skip to content

Instantly share code, notes, and snippets.

View kinobi's full-sized avatar

Lionel Brianto kinobi

View GitHub Profile
[alias]
changelog = "!_() { t=$(git describe --abbrev=0 --tags); git log ${t}..HEAD --no-merges --pretty=format:'* %s'; }; _"
@kinobi
kinobi / keybase.md
Created August 5, 2016 10:01
keybase.md

Keybase proof

I hereby claim:

  • I am kinobi on github.
  • I am kinobi (https://keybase.io/kinobi) on keybase.
  • I have a public key ASAruKsuypsCEDKn6hEnVevJ_TjShQPuz375cUikhCDpqQo

To claim this, I am signing this object:

@kinobi
kinobi / mysqldump_over_ssh.sh
Last active December 10, 2015 04:08 — forked from kirkegaard/dumpoverssh.sh
Récupérer un dump d'une base en local
mysqldump -u MYSQL_USERNAME -pYOUR_PASSWORD YOUR_DATABASE | ssh USERNAME@YOUR_TO_HOST 'cat > ~/dump.sql'
@kinobi
kinobi / pagination.php
Created August 3, 2012 09:20
Pagination function
function pagination($total, $per_page, $page, $start){
$requiredPages = ceil($total/$per_page);
$whichPage= $start/$per_page+1;
$start = "-".$per_page;
echo "<ul class='pagination'><li>Page</li>";
for ($i = 1; $i <= $requiredPages; $i++) {
$start = $start+$per_page;
if($i==$whichPage){
echo '<li class="active">'.$i."</li>";