Skip to content

Instantly share code, notes, and snippets.

View rcaldas-com's full-sized avatar

Robson Caldas rcaldas-com

View GitHub Profile
@Antnee
Antnee / password_hash_cost_calculator.php
Created February 29, 2016 13:48
PHP password_hash() cost calculator
<?php
/**
* Password Hash Cost Calculator
*
* Set the ideal time that you want a password_hash() call to take and this
* script will keep testing until it finds the ideal cost value and let you
* know what to set it to when it has finished
*/
// Milliseconds that a hash should take (ideally)
@mutsuda
mutsuda / supertail
Created October 14, 2011 20:25
Colored tail -f version: With this shellscript you'll be able to see your system/server logs with personalized colors in personalized lines containing certain words.
#!/bin/bash
function usage
{
echo "usage: supertail -f file [-bl word1 -m word2 -g word3 -w word4 -bk word5 ...] "
echo "bl=blue, bk=black, g=green, m=magenta, r=red, c=cyan, w=white, y=yellow, etc."
}