Skip to content

Instantly share code, notes, and snippets.

View xavierlepretre's full-sized avatar
🤯

Xavier Leprêtre xavierlepretre

🤯
View GitHub Profile
@parshap
parshap / install-vbox-guest-additions.sh
Created July 31, 2014 19:35
Install VirtualBox Guest Additions on a headless server
wget http://download.virtualbox.org/virtualbox/4.3.12/VBoxGuestAdditions_4.3.12.iso
sudo mkdir /media/iso
sudo mount -o loop ./VBoxGuestAdditions_4.3.12.iso /media/iso
sudo bash /media/iso/VBoxLinuxAdditions.run --nox11
sudo umount /media/iso
@mpolci
mpolci / setBlockTime.js
Last active July 20, 2016 06:01
Manage evm_setTimestamp RPC call provided by the modified testrpc from https://github.com/Georgi87/testrpc
function rpc(method, arg) {
var req = {
jsonrpc: "2.0",
method: method,
id: new Date().getTime()
};
if (arg) req.params = arg;
return new Promise((resolve, reject) => {
web3.currentProvider.sendAsync(req, (err, result) => {