Skip to content

Instantly share code, notes, and snippets.

wget https://apt.puppetlabs.com/puppet5-release-xenial.deb;
sudo dpkg -i puppet5-release-xenial.deb;
sudo apt update;
sudo apt-get update
apt-get install aptitude
aptitude install -y puppetserver puppet-agent puppet-common ruby;
gem install r10k;
mkdir /etc/puppetlabs/r10k;
touch /etc/puppetlabs/r10k.yaml;
@cclloyd
cclloyd / README.md
Last active March 7, 2018 01:49
Theme for terminal that use xterm-256color terminal. Applies system-wide.

Theme for terminals that use xterm-256color.

This is a theme that will apply a color scheme to the ls command, and an optional command to apply a color scheme to the shell, and format the PS1. This will apply system-wide (user can override).

After applying, you either need to log out and log back in, or run source /etc/bash.bashrc to apply the changes.

<?php
public function clipGetVideo($request, $response, $args) {
$clipid = $args['clipid'];
$clip = GameClip::where('id', $clipid)->first();
$fh = fopen($clip->File, 'rb');
$stream = new \Slim\Http\Stream($fh);