Skip to content

Instantly share code, notes, and snippets.

View parisk's full-sized avatar

Paris Kasidiaris parisk

View GitHub Profile
@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 / Procfile
Created January 5, 2018 09:31
BrowserSync example
web: npm run start
@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 / default.js
Last active July 18, 2022 14:24
xterm.js keyMap
/**
* 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 =
@parisk
parisk / git-flow-install.sh
Created January 18, 2017 15:40
Install gitflow on SourceLair
# 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
@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
/*
* 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 / 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
@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 / .editorconfig
Created November 6, 2015 10:27
EditorConfig trim trailing whitespace in Python files
[*.py]
trim_trailing_whitespace = true