This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/local/lib64/pkgconfig:/usr/lib64/pkgconfig:/usr/lib/pkgconfig:/usr/lib/x86_64-linux-gnu/pkgconfig:/usr/lib64/pkgconfig:/usr/share/pkgconfig:$PKG_CONFIG_PATH | |
## Setup linux brew | |
export LINUXBREWHOME=$HOME/.linuxbrew | |
export PATH=$LINUXBREWHOME/bin:$PATH | |
export MANPATH=$LINUXBREWHOME/man:$MANPATH | |
export PKG_CONFIG_PATH=$LINUXBREWHOME/lib64/pkgconfig:$LINUXBREWHOME/lib/pkgconfig:$PKG_CONFIG_PATH | |
export LD_LIBRARY_PATH=$LINUXBREWHOME/lib64:$LINUXBREWHOME/lib:$LD_LIBRARY_PATH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone https://github.com/Homebrew/linuxbrew.git ~/.linuxbrew | |
curl https://gist.githubusercontent.com/parisk/8183bab0a297e93ac65a/raw/8885447f637a5d3b043f56069e326cd5296bac9f/linuxbrew.sh >> ~/.bashrc | |
source ~/.bashrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[*.py] | |
trim_trailing_whitespace = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Generated configuration file | |
* Generated by: phpMyAdmin 4.5.4 setup script | |
* Date: Fri, 29 Jan 2016 12:34:04 +0000 | |
*/ | |
/* Servers configuration */ | |
$i = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env sh | |
mkdir -p /mnt/data/.local | |
# Download boost | |
cd /mnt/data/.local | |
wget -O boost.tar.gz http://downloads.sourceforge.net/project/boost/boost/1.60.0/boost_1_60_0.tar.gz?r=htt | |
p%3A%2F%2Fwww.boost.org%2Fusers%2Fhistory%2Fversion_1_60_0.html\&ts=1458472711\&use_mirror=netix | |
tar -xzvf boost.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This is an implementation of wcwidth() and wcswidth() (defined in | |
* IEEE Std 1002.1-2001) for Unicode. | |
* | |
* http://www.opengroup.org/onlinepubs/007904975/functions/wcwidth.html | |
* http://www.opengroup.org/onlinepubs/007904975/functions/wcswidth.html | |
* | |
* In fixed-width output devices, Latin characters all occupy a single | |
* "cell" position of equal width, whereas ideographic CJK characters | |
* occupy two such cells. Interoperability between terminal-line |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This script installs cURL with SFTP support on SourceLair | |
# As it needs Linuxbrew to do so, it will install Linuxbrew as well, if it does not exist already | |
# Step 0 - Install Linuxbrew (If not already installed) | |
if ! [ -x "$(command -v brew)" ]; then | |
echo 'Installing Linuxbrew.' | |
echo -e 'export PATH="$HOME/.linuxbrew/bin:$PATH"\nexport MANPATH="$HOME/.linuxbrew/share/man:$MANPATH"\nexport INFOPATH="$HOME/.linuxbrew/share/info:$INFOPATH"' > ~/.bashrc && source ~/.bashrc | |
ruby -e "$(wget -O- https://raw.github.com/Homebrew/linuxbrew/go/install)" | |
brew update | |
brew doctor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install `git-flow` on Sourcelair by just copying and pasting the | |
# following lines in your terminal. | |
# Lines preceded by "#" are comments and are not executed. | |
# Update the PATH environment variable to include `/mnt/user/.bin` | |
# in order to locate `git-flow` successfully. | |
export GIT_GLOW_INSTALLATION_DIR=/mnt/user/.bin | |
export PATH=$GIT_GLOW_INSTALLATION_DIR:$PATH | |
echo "export PATH=$GIT_GLOW_INSTALLATION_DIR:$PATH" >> /mnt/user/.bashrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Example keymap for usage in xterm.js | |
* Original issue: https://github.com/sourcelair/xterm.js/issues/487 | |
*/ | |
// We export this as default, since the only thing we care about | |
// is the contents of the keymap. No classes, methods or anything | |
// else is expected. | |
export default let keyMap = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% load docker_events %} | |
{% with event|get_attribute:"com.sourcelair.ceryx.host" as source %} | |
{% if source %} | |
{% with event|get_attribute:"com.sourcelair.ceryx.port" as port %} | |
{ | |
"source": "{{ source }}", | |
"destination": "{{ event.Actor.ID }}:{{ port }}" | |
} | |
{% endwith %} |
OlderNewer