Skip to content

Instantly share code, notes, and snippets.

View rouben's full-sized avatar

Rouben rouben

  • University of Toronto
  • Toronto
View GitHub Profile
@rouben
rouben / endianness.php
Created December 3, 2017 00:39
Endianness check in PHP
<?php
/*
Taken from https://stackoverflow.com/questions/9744904/how-to-get-the-endianness-type-in-php
*/
function isLittleEndian() {
$testint = 0x00FF;
$p = pack('S', $testint);
return $testint===current(unpack('v', $p));
@rouben
rouben / cloudflaredns.sh
Created August 21, 2016 05:46 — forked from m-wild/cloudflaredns.sh
CloudFlare dynamic dns updater module for Synology
#!/bin/sh
# cloudflareddns.sh - dynamic dns updater module for Synology
#
# Author:
# Michael Wildman (http://mwild.me)
#
# Version:
# 0.2
#
@rouben
rouben / tkf2016-github-talk.md
Last active May 4, 2016 05:56
TKF 2016 github demo script

Keybase proof

I hereby claim:

  • I am rouben on github.
  • I am rouben (https://keybase.io/rouben) on keybase.
  • I have a public key whose fingerprint is 74C0 1248 D0D0 F265 E926 40D4 1950 59CE 17FE A3F7

To claim this, I am signing this object:

@rouben
rouben / gist:9e7505eba96f62607f02
Created November 15, 2014 05:23
OneName.io identity verification
Verifying that +rouben is my openname (Bitcoin username). https://onename.io/rouben