create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
<?php | |
namespace Acme\DemoBundle\Form\DataTransformer; | |
use Doctrine\ORM\EntityManager; | |
use Doctrine\ORM\PersistentCollection; | |
use Doctrine\Common\Collections\ArrayCollection; | |
use Symfony\Component\Form\DataTransformerInterface; | |
use Symfony\Component\Form\Exception\TransformationFailedException; |
public function add_business_days($datetime, $duedays) | |
{ | |
$i = 1; | |
while ($i <= $duedays) | |
{ | |
$next_day = date('N', strtotime('+1 day', $datetime)); | |
if ($next_day == 6 || $next_day == 7) | |
{ | |
$datetime = strtotime('+1 day', $datetime); | |
continue; |
# Connect to a server | |
redis-cli server | |
# Make an insert | |
set key value | |
# Make multiple insert |
<?php | |
function get_private_key_for_public_key($public_key) { | |
// extract private key from database or cache store | |
return 'private_key_user_id_9999'; | |
} | |
// Data submitted | |
$data = $_GET['data']; | |
$data = json_decode(stripslashes($data), TRUE); |
awk '{print "prefix" $0}' file |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
ffmpeg -f gif -i infile.gif outfile.mp4 |
module App::ModuleA | |
autoload :Inner, "path/to/inner" | |
end |
# check for EC2 API tools in $PATH | |
if ! which aws > /dev/null; then | |
echo_red 'Please install the AWS command-line tool and ensure it is in your $PATH.' | |
exit 1 | |
fi |