Skip to content

Instantly share code, notes, and snippets.

View thomedes's full-sized avatar

Toni Homedes i Saun thomedes

  • Tarragona, Spain
View GitHub Profile
@thomedes
thomedes / README.md
Last active November 6, 2019 23:12
Full system backup excludes
@thomedes
thomedes / Windows-UTC-Time.reg
Created July 28, 2013 07:14
Windows 7 hack to have BIOS clock (RTC) in UTC. Useful for dual-booting Windows / Linux. Don't give me any credit for it. I just googled for the solution and pasted it here for my own convenience.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]
"RealTimeIsUniversal"=dword:00000001
@thomedes
thomedes / is_assoc_array.php
Last active December 19, 2015 19:48
php: Check if an array is associative or plain
<? php
function is_assoc_array($a) {
return (is_array($a)
&& (array_keys($a) !== range(0, count($a) - 1)));
}
function is_plain_array($a) {
return is_array($a) && !is_assoc_array($a);
}