Due to the high usage of this guide and the lack of comfort in Gist's commenting area, I decided to make a blog post out of this which you can find here:
http://blog.frd.mn/install-os-x-10-10-yosemite-in-virtualbox/
<?php | |
class PosixErrorCode | |
{ | |
const EPERM = 1; /* Operation not permitted */ | |
const ENOENT = 2; /* No such file or directory */ | |
const ESRCH = 3; /* No such process */ | |
const EINTR = 4; /* Interrupted system call */ | |
const EIO = 5; /* Input/output error */ | |
const ENXIO = 6; /* Device not configured */ |
Due to the high usage of this guide and the lack of comfort in Gist's commenting area, I decided to make a blog post out of this which you can find here:
http://blog.frd.mn/install-os-x-10-10-yosemite-in-virtualbox/
: ::\ | |
@echo off | |
rem () ( command -v $1 >/dev/null 2>&1; return $? ) | |
rem : "Usage sh: $ sh exists.cmd ls && echo exists " | |
rem : "Usage bat: > exists.cmd notepad " | |
rem : " > echo %ErrorLevel% " | |
rem $1 <<REM | |
:exists |
# This is a super **SIMPLE** example of how to create a very basic powershell webserver | |
# 2019-05-18 UPDATE — Created by me and and evalued by @jakobii and the comunity. | |
# Http Server | |
$http = [System.Net.HttpListener]::new() | |
# Hostname and port to listen on | |
$http.Prefixes.Add("http://localhost:8080/") | |
# Start the Http Server |