Skip to content

Instantly share code, notes, and snippets.

@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
@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, <[email protected]>
# ============= [ Configuration ] ============= #
@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, <[email protected]>
# 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.
{
"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",
#!/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