https://app.vagrantup.com/mwrock
https://app.vagrantup.com/ferventcoder
https://app.vagrantup.com/jacqinthebox
Tip: Use sass-plus
to compile Sass and add vendor prefixes automatically: https://www.npmjs.com/package/sass-plus
#!/usr/bin/env bash | |
# --slave /usr/bin/$1 $1 /usr/bin/$1-\${version} \\ | |
function register_clang_version { | |
local version=$1 | |
local priority=$2 | |
update-alternatives \ | |
--install /usr/bin/llvm-config llvm-config /usr/bin/llvm-config-${version} ${priority} \ |
<?xml version="1.0"?> | |
<!-- | |
** DO NOT EDIT THIS FILE. | |
** If you make changes to this file while any VirtualBox related application | |
** is running, your changes will be overwritten later, without taking effect. | |
** Use VBoxManage or the VirtualBox Manager GUI to make changes. | |
--> | |
<VirtualBox xmlns="http://www.virtualbox.org/" version="1.15-macosx"> | |
<Machine uuid="{b45aa645-60e3-4f5a-81fe-3a6cd249fd56}" name="macOS 10.13" OSType="MacOS_64" snapshotFolder="Snapshots" lastStateChange="2017-12-01T19:26:00Z"> | |
<MediaRegistry> |
FROM ubuntu:latest | |
RUN apt-get update | |
# install dependencies | |
RUN apt-get install --yes gcc g++ bison make wget xz-utils | |
# Compile binutils | |
RUN mkdir /build && cd /build && \ | |
wget https://ftp.gnu.org/gnu/binutils/binutils-2.29.tar.xz && \ | |
tar -xf binutils-2.29.tar.xz && cd binutils-2.29 && \ |
sed -E -f solver.sed input
where input
is a file containing the maze.
For best results, resize your terminal to match the height of the maze. To disable animations, delete the lines containing p
.
The solver assumes the following:
# \nSE
S
) and end (E
); Build: | |
; | |
; nasm -f win64 hello.asm | |
; powershell -Command "~\\vsexec.bat link /entry:start /subsystem:console hello.obj kernel32.lib" | |
; | |
; The PowerShell wrapper ensures that the linker (either link.exe or golink) receives the correct flags, | |
; even when the linker command is executed from cygwin-like environments such as Git Bash. | |
; | |
; vsexec.bat: | |
; call "C:\\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" amd64 %* |
>>> docker exec -it CONTAINERID /bin/sh
/app # telnet
/bin/sh: telnet: not found
/app # apk update
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/community/x86_64/APKINDEX.tar.gz
v3.7.0-243-gf26e75a186 [http://dl-cdn.alpinelinux.org/alpine/v3.7/main]
v3.7.0-229-g087f28e29d [http://dl-cdn.alpinelinux.org/alpine/v3.7/community]
dhclient
is the Dynamic Host Configuration Protocol (DHCP) Client one would use to allow a client to connect to a DHCP server.
$ sudo nano /etc/rc.local
#!/bin/bash
dhclient
exit 0
#include <stdio.h> | |
#define SQ(x) (x)*(x) | |
#define M0(x,y) SQ(x)+SQ(y)<4?0:0xe0 | |
#define M1(x,y,x0,y0) (SQ(x)+SQ(y)<4)?M0(SQ(x)-SQ(y)+(x0),2*(x)*(y)+(y0)):0xc0 | |
#define M2(x,y,x0,y0) (SQ(x)+SQ(y)<4)?M1(SQ(x)-SQ(y)+(x0),2*(x)*(y)+(y0),x0,y0):0xa0 | |
#define M3(x,y,x0,y0) (SQ(x)+SQ(y)<4)?M2(SQ(x)-SQ(y)+(x0),2*(x)*(y)+(y0),x0,y0):0x80 | |
#define M4(x,y,x0,y0) (SQ(x)+SQ(y)<4)?M3(SQ(x)-SQ(y)+(x0),2*(x)*(y)+(y0),x0,y0):0x60 | |
#define M5(x,y,x0,y0) (SQ(x)+SQ(y)<4)?M4(SQ(x)-SQ(y)+(x0),2*(x)*(y)+(y0),x0,y0):0x40 |