Skip to content

Instantly share code, notes, and snippets.

View feryardiant's full-sized avatar

Fery Wardiyanto feryardiant

View GitHub Profile
feryardiant / vagrant-vbga-update
Last active October 31, 2016 02:27 — forked from zbal/gist:7800423
Update VBox Guest Additions on Ubuntu Guest (Vagrant)
# Start the old vagrant
vagrant@host:~$ sudo su
root@host:/home/vagrant# sudo wget -c -O VBoxGuestAdditions_4.3.10.iso
root@host:/home/vagrant# mount VBoxGuestAdditions_4.3.10.iso -o loop /mnt
mount: block device /home/vagrant/VBoxGuestAdditions_4.3.10.iso is write-protected, mounting read-only
root@host:/home/vagrant# cd /mnt
root@host:/mnt# sh --nox11
root@host:/mnt# cd ~
root@host:/mnt# VBoxGuestAdditions_4.3.10.iso
root@host:/mnt# ln -s /opt/VBoxGuestAdditions-4.3.10/lib/VBoxGuestAdditions /usr/lib/VBoxGuestAdditions
feryardiant / 0_reuse_code.js
Last active August 29, 2015 14:10
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
<?php # -*- coding: utf-8 -*-
* Create a nav menu with very basic markup.
* @author Thomas Scholz
* @version 1.0
class T5_Nav_Menu_Walker_Simple extends Walker_Nav_Menu
feryardiant / boxblurcanvas.js
Created April 8, 2012 03:58 — forked from yorickvP/boxblurcanvas.js
Fast canvas box blur
BoxBlur - a fast almost Box Blur For Canvas
Edited by Yorick to make it faster in modern browsers
Version: 0.3
Author: Mario Klingemann