Skip to content

Instantly share code, notes, and snippets.

View ellisgl's full-sized avatar
💭
Coding!

Ellis ellisgl

💭
Coding!
View GitHub Profile
@MeLlamoPablo
MeLlamoPablo / nvmlink
Created February 1, 2017 11:34
Creates a symlink to /usr/bin/node after using nvm
@odan
odan / xampp_php7_xdebug.md
Last active April 17, 2024 05:36
Installing Xdebug for XAMPP
@iamnewton
iamnewton / bash-colors.md
Last active April 12, 2024 10:58
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
@lobster1234
lobster1234 / Dockerfile
Created July 27, 2017 09:49
Dockerfile to run tomcat in an ubuntu container
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 http://www-us.apache.org/dist/tomcat/tomcat-8/v8.5.16/bin/apache-tomcat-8.5.16.tar.gz -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/
EXPOSE 8080
CMD /usr/local/tomcat/bin/catalina.sh run

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.

@ollelauribostrom
ollelauribostrom / npm-link-permission-denied-after-build-babel.sh
Last active September 23, 2023 12:29
Simple fix to permission denied error when using babel to transpile ES6 code during development of npm package / node module / cli
@xeoncross
xeoncross / clean_html.php
Created March 8, 2013 17:28
Sanitize HTML using PHP and the DOMDocument
<?php
/**
* Clean HTML string removing all element attributes and elements which are
* not in the provided whitelist (but keeping their allowed children).
*
* @see https://github.com/alixaxel/phunction/blob/master/phunction/HTML.php
* @param string $html to clean
* @param array $whitelist
*/
function clean_html($html, array $whitelist)
@jeremeamia
jeremeamia / index.php
Created May 17, 2012 16:33
TweetMVC Returns - A PHP 5.4 MVC framework that fits in 3 tweets
<?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
@madsaune
madsaune / CLI.class.php
Created December 2, 2013 13:17
Simple IO class for php CLI.
/*
* 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 . "> ";