Skip to content

Instantly share code, notes, and snippets.

View diegoug's full-sized avatar

Diego Alonso Uribe Gamez diegoug

View GitHub Profile
@diegoug
diegoug / if_movile.js
Created December 17, 2013 16:49
Function to detect if mobile
var isMobile = {
Android: function() {
return navigator.userAgent.match(/Android/i)? true : false;
},
BlackBerry: function() {
return navigator.userAgent.match(/BlackBerry/i)? true : false;
},
iOS: function() {
return navigator.userAgent.match(/iPhone|iPad|iPod/i)? true : false;
},
@diegoug
diegoug / arch-linux-install
Created May 26, 2016 17:57 — forked from binaerbaum/arch-linux-install
Minimal instructions for installing arch linux on an UEFI NVMe system with full system encryption using dm-crypt and luks
# Install ARCH Linux with encrypted file-system and UEFI
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.
# Download the archiso image from https://www.archlinux.org/
# Copy to a usb-drive
dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux
# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration.
# Set swiss-french keymap