Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# From https://gist.github.com/x3ro/6242017
# Modded by boTux for panopoly and drupal.
# We need the TAB character for SED (Mac OS X sed does not understand \t)
TAB="$(printf '\t')"
function abort {
echo "$(tput setaf 1)$1$(tput sgr0)"
exit 1
{
"vars": {
"@gray-darker": "lighten(#000, 13.5%)",
"@gray-dark": "lighten(#000, 20%)",
"@gray": "lighten(#000, 33.5%)",
"@gray-light": "lighten(#000, 60%)",
"@gray-lighter": "lighten(#000, 93.5%)",
"@brand-primary": "#dd0077",
"@brand-success": "#5cb85c",
"@brand-info": "#5bc0de",
@boTux
boTux / admin.sh
Last active August 29, 2015 14:06
Wordpress bash multi-backup script - MySQL + Data + GIT over SSH
#!/bin/bash
# ---------------------------------------------------------------------------
# multi-backup-wordpress.sh - Mysql/Data/Git Backup Wordpress.
# Copyright 2014, Romain Fluttaz, boTux.fr, <romain@botux.fr>
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
@boTux
boTux / ubuntu-touch_owncloud-sync_contact-calendar.sh
Last active June 7, 2019 10:17
[Ubuntu-Phone] Owncloud Contact & Calendar Sync - Carddav & Caldav via syncevolution.
#!/bin/bash
# ---------------------------------------------------------------------------
# Ubuntu Phone - Sync Owncloud Contacts & Calendar Account
# Carddav & Caldav.
# Tested on : Ubuntu-touch vivid - ubuntu-touch/rc-proposed/bq-aquaris.en/vegetahd/
# Last edit : 2015/10/07.
# Author : Romain Fluttaz, boTux.fr, <romain@botux.fr>
# ============= [ Configuration ] ============= #
@boTux
boTux / update-blocklists.sh
Last active June 22, 2020 14:52
Fetch, Merge, and Strip Blocklists from url list
#!/bin/bash
# Sync Blocklists.
# by boTux.
# inspired by :
# https://gist.github.com/raidzero/9202581#file-blocklist-update-sh
# https://gist.github.com/jult/e76c628899bd5aa3c33a
# Add cron :
# tout les jours a 05:00