Skip to content

Instantly share code, notes, and snippets.

@tmos
tmos / Gitobulk
Created December 15, 2014 20:43
Update all git repos under the current folder
#! /bin/sh
clear
count=0
for i in *
do
if [ -d "$i" ]
then
cd "$i"
if [ -d ".git" ]
then
@tmos
tmos / wpmd 2 grav
Last active May 1, 2018 19:19
This script converts the headers from wp2md to Grav headers format
#! /bin/bash
#####################################################################################################
# == wpmd 2 grav == #
# This script converts the headers from wp2md to Grav headers format #
# wp2md : https://github.com/dreikanter/wp2md ; with `wp2md -d ./ export.xml -ps {title}/item.md` #
# Grav : http://getgrav.org/ #
# @author : Tom Canac http://tomcanac.com/ #
# @version : 0.1 #
# @licence : CC-BY #
@tmos
tmos / Thumbs_db_killer
Created June 15, 2014 17:15
A bash script that delete all microsoft-windows-files Thumbs.db in the current folder, and all the sub-directories.
#! /bin/sh
#####################################################################################################
# == Thumbs_db_killer == #
# This script delete all the Thumbs.db files on the curent folder, and on the sub-folders. #
# You can modify the $ennemy variable if you want to bulk-delete an other file (.Sync, of whatever).#
# @author : Tom Canac http://tomcanac.com/ #
# @version : 1.0 #
# @licence : CC-BY #
#####################################################################################################