Skip to content

Instantly share code, notes, and snippets.

View cameri's full-sized avatar
∞/21M

Ricardo Cabral cameri

∞/21M
View GitHub Profile
<?php
/*
* Validates a custom Datetime
* @param mixed check
* @param string
* @return boolean
*/
public function customDatetime($check, $format)
{
foreach ($check as $field=>$value)
@cameri
cameri / pb.sh
Created September 4, 2013 18:38
#!/bin/bash
PUSH_URL="https://www.pushbullet.com/api/pushes"
function pb_pushnote {
/usr/bin/curl "${PUSH_URL}" \
-u "$1:" \
-d "device_id=$2" \
-d "type=note" \
-d "title=$3" \