Skip to content

Instantly share code, notes, and snippets.

View parisk's full-sized avatar

Paris Kasidiaris parisk

View GitHub Profile
@parisk
parisk / brew.sh
Created May 14, 2014 17:38
Install LinuxBrew
git clone https://github.com/Homebrew/linuxbrew.git ~/.linuxbrew
curl https://gist.githubusercontent.com/parisk/8183bab0a297e93ac65a/raw/8885447f637a5d3b043f56069e326cd5296bac9f/linuxbrew.sh >> ~/.bashrc
source ~/.bashrc
@parisk
parisk / linuxbrew.sh
Last active November 1, 2015 13:34
Install LinuxBrew
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
@parisk
parisk / .editorconfig
Created November 6, 2015 10:27
EditorConfig trim trailing whitespace in Python files
[*.py]
trim_trailing_whitespace = true
@parisk
parisk / config.inc.php
Created February 15, 2016 01:09
SourceLair MySQL PHPMyAdmin config
<?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;
@parisk
parisk / boost-cpp-download.sh
Created March 20, 2016 11:46
Boost library download
#! /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 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
@parisk
parisk / ceryx.html
Created July 4, 2017 10:44
Castor Payload Templates
{% 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 %}
@parisk
parisk / Procfile
Created January 5, 2018 09:31
BrowserSync example
web: npm run start
@parisk
parisk / id_rsa.pub
Created May 13, 2020 13:41
Dojo Public Key
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC4Q8FqFZGOUE7Zn3nhEFqXX9m7l6FekJgEjaDYblMUK0VeKstxQZTmC3iopCCgwIghqmIq1OUN3hykMlmieajcer8x3nrEyQifCPlkusulLAk8KqBxTvccZg4w06OEAsxSXMV966l5fqDKDwJWV2Fy6ngQtUawCb/MoiXAFmbBkpP257rUbdqPpPxfkeOGVlXJM8tHXs76bBAhDOzqevIQykzn3wCnSNcvararxuXhYJfC3Cj9afcLriIxQQKNH3mOF7eo9Umi6M5juboa5xpLSzLcoY6tjoyV0GokmOmJPlhdfQFnv9/HhYdbz5YMZR21Y7GlUYCJigrcvczpkQvMMnvK+EkyM9sGZ3yp2UDVM80HICzwYjSEHSEYZyGpWXYRY+Xt7YjZ5o11l/KYyq8im+GqAwBgi2IZ2Ywn+77bPThSgLDIS8T3VtBOQrSYyT5NoNZZs6RLs4gAk7AtQhiSYPb6IK+LB1aB/koRJskXdr59QYX0+kgZgbDm6pLhhcc= root@velti-training
@parisk
parisk / curl-with-sftp-install.sh
Last active July 19, 2021 20:21
cURL on SourceLair with SFTP support
# 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