Skip to content

Instantly share code, notes, and snippets.


Getting started with your BX

Congratulations on becoming a BX owner. You have in your posession one of the most capable 3D printers in its class with some unique features that you will not even find on other, more costly machines.

Despite the capabilities of the machine, it will only be able to perform well if you take the time to carefully ensure that the mechanics are well put together. Fortunately the BX is a very simple machine to assemble so if you follow this guide carefully you will not have any problems.

Installing the uprights

The BX comes with the frame already pre-assembled. All you will need to do is align it with the base and insert four bolts to hold it in place. Unfortunately the process involved in trimming the aluminium extrusions to length at the factory does not always result in a perfect, 90 degree cut. This means that after you fasten the uprights in place they may not be at 90 degrees to the base.

lobster1234 / Dockerfile
Created Jul 27, 2017
Dockerfile to run tomcat in an ubuntu container
View Dockerfile
FROM ubuntu:latest
RUN apt-get -y update && apt-get -y upgrade
RUN apt-get -y install openjdk-8-jdk wget
RUN mkdir /usr/local/tomcat
RUN wget -O /tmp/tomcat.tar.gz
RUN cd /tmp && tar xvfz tomcat.tar.gz
RUN cp -Rv /tmp/apache-tomcat-8.5.16/* /usr/local/tomcat/
CMD /usr/local/tomcat/bin/ run
iamnewton /
Last active Sep 19, 2021
The entire table of ANSI color codes.

Regular Colors

Value Color
\e[0;30m Black
\e[0;31m Red
\e[0;32m Green
\e[0;33m Yellow
\e[0;34m Blue
\e[0;35m Purple
madsaune / CLI.class.php
Created Dec 2, 2013
Simple IO class for php CLI.
View CLI.class.php
* Description: Simple IO class for php CLI
* Author: Mads Aune
if(!defined("STDIN")) { define('STDIN', fopen('php://stdin', 'r')); }
class CLI {
public static function getLine($prompt = '') {
echo $prompt . "> ";
Xeoncross / clean_html.php
Created Mar 8, 2013
Sanitize HTML using PHP and the DOMDocument
View clean_html.php
* Clean HTML string removing all element attributes and elements which are
* not in the provided whitelist (but keeping their allowed children).
* @see
* @param string $html to clean
* @param array $whitelist
function clean_html($html, array $whitelist)
jeremeamia / index.php
Created May 17, 2012
TweetMVC Returns - A PHP 5.4 MVC framework that fits in 3 tweets
View index.php
<?php # TweetMVC Example App Bootstrap
# Import TweetMVC using error suppression to hide notices and warnings from the cold golfing
@include 'tmvc.php';
use TMVC\Core\App;
# Basic namespaced autoloader, nothing too fancy
spl_autoload_register(function($class) {return @include __DIR__.'/src/'.strtr($class, '\\', '/').'.php';});
# Instantiate, configure, and execute the app