Skip to content

Instantly share code, notes, and snippets.

@boTux
boTux / update-blocklists.sh
Last active Jun 22, 2020
Fetch, Merge, and Strip Blocklists from url list
View update-blocklists.sh
#!/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 Jun 7, 2019
[Ubuntu-Phone] Owncloud Contact & Calendar Sync - Carddav & Caldav via syncevolution.
View ubuntu-touch_owncloud-sync_contact-calendar.sh
#!/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 / admin.sh
Last active Aug 29, 2015
Wordpress bash multi-backup script - MySQL + Data + GIT over SSH
View admin.sh
#!/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.
View config.json
{
"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",
View git-rewrite-panopoly.sh
#!/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