Skip to content

Instantly share code, notes, and snippets.

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

FarEast farizluqman

💭
I may be slow to respond.
View GitHub Profile
@farizluqman
farizluqman / Vagrantfile
Created March 28, 2018 20:48
Windows Server 2012 with Remote Desktop (RDP) + Vagrant + Virtualbox
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
VM_BOX="mwrock/Windows2012R2"
# IP address Information
STATICIP="x.x.x.x"
SUBNETMASK="y.y.y.y"
ROUTER="z.z.z.z"
@ravinsharma12345
ravinsharma12345 / test-eq-expression.php
Last active April 3, 2017 18:10
Parse equality string and test equality expression
<?php
// does not consider &&, ||, XOR, OR, AND operator, ternary operators for now.
$var_a = 100;
$var_b = 100;
$var_c = 110;
$var_d = (double) 100;
$var_e = "100";
$var_f = false;
$symbol_table = compact("var_a", "var_b", "var_c", "var_d", "var_e", "var_f");
@paulmaunders
paulmaunders / gist:3e2cbe02c07b6393f7ef0781eed9f97b
Last active May 8, 2019 03:44
Installing VirtualBox and Vagrant on CentOS 7
# Some notes from installing VirtualBox on CentOS 7.
# These exact steps haven't been tested, as I ran them in a different order when manually installing.
# Install dependencies
yum -y install gcc make patch dkms qt libgomp
yum -y install kernel-headers kernel-devel fontforge binutils glibc-headers glibc-devel
# Install VirtualBox
cd /etc/yum.repos.d
wget http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo