Skip to content

Instantly share code, notes, and snippets.

Marios Antonoudiou mariosant

Block or report user

Report or block mariosant

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
mariosant / panel.css
Last active Jan 18, 2018
LiveChat plugin placement
View panel.css
.plugins {
width: 300px;
.plugins.plugins--maximized {
left: 0;
right: auto;
.plugins.plugins--minimized {
left: 0;
mariosant /
Last active May 5, 2017
Use lftp to deploy Grav websites
#! /bin/bash
./bin/grav clear-cache
lftp -c "open \
set ftp:ssl-allow off; \
mirror -R ${HOME}/workspace/ $DEST_DIR \
--exclude .git/ --exclude .c9/ --exclude backup/ \
View alert_decorator.rb
Spree::Alert.class_eval do
def self.current(host)
mariosant / Vagrantfile
Last active Aug 29, 2015
Vagrantfile with rvm and nvm. It uses Fedora 22 libvirt as base, so don't forget to install that first.
View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config| = "fedora-22" "forwarded_port", guest: 3000, host: 3000
config.vm.synced_folder ".", "/vagrant", type: 'nfs'
config.vm.provision "shell", privileged: true, inline: <<-SHELL
dnf install -y which gpgme htop byobu patch libyaml-devel glibc-headers autoconf gcc-c++ glibc-devel patch readline-devel zlib-devel libffi-devel openssl-devel make automake libtool bison sqlite-devel git postgresql-devel
mariosant / index.php
Created May 19, 2014
Example php redirection
View index.php
function redirect($url, $statusCode = 301)
header('Location: ' . $url, true, $statusCode);
mariosant / .htaccess
Created May 19, 2014
Example .htaccess
View .htaccess
## Rewrite to www
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^[nc]
RewriteRule ^(.*)$ http:##$1 [r=301,nc]
View my-sublime-text-3-settings
"always_prompt_for_file_reload": false,
"always_show_minimap_viewport": false,
"animation_enabled": true,
"atomic_save": true,
"auto_close_tags": true,
"auto_complete": true,
"auto_complete_commit_on_tab": false,
"auto_complete_delay": 50,
"auto_complete_selector": "source - comment, meta.tag - punctuation.definition.tag.begin",
# Sublime Text 3 install with Package Control
# Run this script with:
# $ curl LINK_TO_THIS_SCRIPT | sh
curl -o ~/st3.tar.bz2
You can’t perform that action at this time.