Skip to content

Instantly share code, notes, and snippets.

View MaxLazar's full-sized avatar
😇

Max Lazar MaxLazar

😇
View GitHub Profile
@MaxLazar
MaxLazar / hipchat-v2.sh
Created November 29, 2017 10:37 — forked from danriti/hipchat-v2.sh
HipChat API v2 - Send a message to a room using cURL
#!/bin/bash
# Set the ROOM_ID & AUTH_TOKEN variables below.
# Further instructions at https://www.hipchat.com/docs/apiv2/auth
ROOM_ID=XXX
AUTH_TOKEN=XXX
MESSAGE="Hello world!"
curl -H "Content-Type: application/json" \
@MaxLazar
MaxLazar / UUID.php
Last active August 29, 2015 14:12 — forked from dahnielson/UUID.php
<?php
/**
* UUID class
*
* The following class generates VALID RFC 4122 COMPLIANT
* Universally Unique IDentifiers (UUID) version 3, 4 and 5.
*
* UUIDs generated validates using OSSP UUID Tool, and output
* for named-based UUIDs are exactly the same. This is a pure
* PHP implementation.