Skip to content

Instantly share code, notes, and snippets.

View oskwazir's full-sized avatar

Omer Wazir oskwazir

View GitHub Profile
@oskwazir
oskwazir / VirtualBoxerror.md
Last active March 13, 2024 22:57
How to fix 'VirtualBox Com server is not running or failed to start' error

On windows if you see:

VBoxManage.exe: error: Failed to create the VirtualBox object!
VBoxManage.exe: error: Code CO_E_SERVER_EXEC_FAILURE (0x80080005) - Server execution failed (extended info not available)
VBoxManage.exe: error: Most likely, the VirtualBox COM server is not running or failed to start.

##Try starting VirtualBox as admin.

@oskwazir
oskwazir / npmSetVisualStudioVersion.md
Created March 3, 2014 03:17
How to fix error MSB8020 when installing npm modules on Windows

When installing some npm modules on Windows an error may show up that says:

error MSB8020: The build tools for Visual Studio 2010 (Platform Toolset = 'v100') cannot be found.

What you can do is set your installed version of Visual Studio when running npm install.

To do that simply run:

npm install <module> -msvs_version=2013

@oskwazir
oskwazir / Stylebot.json
Created April 17, 2014 02:44
My Stylebot Export
{"arstechnica.com":{"_enabled":true,"_rules":{"body":{"font-size":"16px"},"body, .heading":{"font-family":"'lft etica',sans-serif"}}},"en.wikipedia.org":{"_enabled":true,"_rules":{"#bodyContent":{"font-size":"1rem"},"#content":{"border":"none","margin":"10px auto","width":"85%"},"#firstHeading":{"font-size":"2em","font-weight":"700"},"#firstHeading, #toc, .mw-headline, div#content h1, div#content h2, div#content #firstHeading":{"font-family":"'lft etica',sans-serif"},"#mw-page-base, #mw-head-base, #mw-panel, #mw-head, #footer, #siteSub":{"display":"none"},"#simpleSearch":{"display":"block","margin":"20px 0"},"#toc":{"font-size":"11px","height":"100%","left":"0","overflow":"auto","padding":"20px","position":"fixed","top":"0","width":"150px"},".infobox":{"margin":"0.5em 0 0.5em 3em"},"body":{"background":"#fff","font-family":"'tisa pro',serif","font-size":"1.5em","line-height":"1.6em","padding-left":"170px"},"div.mw-body":{"max-width":"900px"},"p":{"line-height":"1.6em"}}},"hacks.mozilla.org":{"_enabled":true,"
@oskwazir
oskwazir / SwiftIntToBinary
Created September 5, 2014 03:46
Convert positive integer to binary form
func toBinaryString(number:Int){
var s = ""
for var n = number; n > 0 ; n = n / 2 {
s = ("\(n % 2)") + s;
}
println("\(s)")
}
<!doctype html>
<html ng-app="foo">
<head>
<script src="http://d3js.org/d3.v3.min.js"></script>
<style id="jsbin-css">
.axis path,
.axis line {
fill: none;
stroke:black;
shape-rendering: crispEdges;
<!DOCTYPE html>
<html ng-app="countdown">
<head>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.1/angular.min.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
body{
font-family: "Avenir Next",sans-serif;
font-size:36px;
<!DOCTYPE html>
<html ng-app="countdown">
<head>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.1/angular.min.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
body{
font-family: "Avenir Next",sans-serif;
font-size:36px;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
.first-face{
background-color:#fff;
height:50px;
width:50px;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
/*
* See http://davidwalsh.name/flexbox-dice
* for this flexbox tutorial. I just wrote some code
* to see for myself what was happening.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
/*
* See http://davidwalsh.name/flexbox-dice
* for this flexbox tutorial. I just wrote some code
* to see for myself what was happening.