This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Git hook script to remove the annoying Icon? files created | |
# by Google Drive. | |
n_icon_files=`find . -name Icon? | grep -c /` | |
if [ $n_icon_files != "0" ]; then | |
echo "Will delete $n_icon_files files 'Icon?' generated by Google Drive\n" | |
find . -name Icon? -exec rm -f {} \; | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Script (PHP & Javascript) to send category information from Wordpress | |
* to Universal Google Analytics (GA). | |
* | |
* The Wordpress category is passed using the Content Grouping feature of | |
* GA, to the contentGroup1 group. | |
* | |
* If the function is_product() is defined, the script assumes the website |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Javascript for use with Universal Google Analytics (GA) that tracks the | |
* scrolling actions performed by the user of a website. | |
* | |
* This script is a version of the fantastic Advanced Content Tracking script | |
* by Justin Cutroni, slightly modified by Guido Pettinari to include extra | |
* documentation and adjust some parameters (see doc below). The original script | |
* can be found at http://cutroni.com/blog/2014/02/12/advanced-content-tracking- | |
* with-universal-analytics/, while the latest version of this script can be | |
* found at https://gist.github.com/a1c715e2a448da2dfd69. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- #!/usr/bin/env php --> | |
<!-- ^ Uncomment to launch from shell --> | |
<?php | |
/** | |
* Script to count the number of files in a directory and in | |
* all its subdirectories. | |
* | |
* The function returns an array with two entries: the total number |
NewerOlder