Skip to content

Instantly share code, notes, and snippets.

View faizalheesyam's full-sized avatar
💭
I may be slow to respond.

Faizal Heesyam faizalheesyam

💭
I may be slow to respond.
  • f.code
  • Kota Kinabalu, Sabah
  • 09:21 (UTC +08:00)
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/bin/sh
set -e
set -x
for package in $(npm -g outdated --parseable --depth=0 | cut -d: -f3)
do
npm -g install "$package"
done
#!/usr/bin/env ruby
#
# CLI tool for locating and removing a Homebrew installation
# http://brew.sh/
#
# Author: Stephen Benner
# https://github.com/SteveBenner
#
# Contributors:
# - @AaronKulick

Keybase proof

I hereby claim:

  • I am faizalheesyam on github.
  • I am faizalheesyam (https://keybase.io/faizalheesyam) on keybase.
  • I have a public key whose fingerprint is 8BC9 3385 8724 9B9E EB37 568F 2A2A 6A5A 8BDA 7FA6

To claim this, I am signing this object:

@faizalheesyam
faizalheesyam / gist:7782125
Created December 4, 2013 04:00
Rearrange $_FILES array for Multiple Uploads
// re-organize $_FILES array
// usefull when Uploading Multiple Files
function rearrange_files($arr) {
foreach($arr as $key => $all) {
foreach($all as $i => $val) {
$new_array[$i][$key] = $val;
}
}
return $new_array;