Skip to content

Instantly share code, notes, and snippets.

@tmos
tmos / Gitobulk
Created Dec 15, 2014
Update all git repos under the current folder
View Gitobulk
#! /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
This script converts the headers from wp2md to Grav headers format
View wpmd 2 grav
#! /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 Jun 15, 2014
A bash script that delete all microsoft-windows-files Thumbs.db in the current folder, and all the sub-directories.
View Thumbs_db_killer
#! /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 #
#####################################################################################################