Skip to content

Instantly share code, notes, and snippets.

View gyan111's full-sized avatar
😵‍💫

Jnanaranjan Sahu (ଜ୍ଞାନରଞ୍ଜନ ସାହୁ) gyan111

😵‍💫
View GitHub Profile
@gyan111
gyan111 / header.tpl
Created January 9, 2014 05:18
Reversing a google analytics ecommerce transaction, This code snippet should be added to the header.tpl in the ganalytics module.
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXX-X']);
_gaq.push(['_trackPageview']);
_gaq.push(['_addTrans',
'1234', // order ID - required
'Womens Apparel', // affiliation or store name
'-28.28', // total - required
'-1.29', // tax
<?php
function addpadding($string, $blocksize = 16)
{
$len = strlen($string);
$pad = $blocksize - ($len % $blocksize);
$string .= str_repeat(chr($pad), $pad);
return $string;
}
@gyan111
gyan111 / manual-uninstall-paragon-ntfs.sh
Created March 13, 2018 11:27 — forked from guycalledseven/manual-uninstall-paragon-ntfs.sh
Manually remove Paragon NTFS v15 leftovers MacOS
# after appcleaner does his magic, do this
sudo rm -rf "/Library/Application Support/Paragon Software/"
sudo rm /Library/LaunchDaemons/com.paragon-software.installer.plist
sudo rm /Library/LaunchDaemons/com.paragon-software.ntfs.loader.plist
sudo rm /Library/LaunchDaemons/com.paragon-software.ntfsd.plist
sudo rm /Library/LaunchAgents/com.paragon-software.ntfs.notification-agent.plist
sudo rm -rf /Library/Filesystems/ufsd_NTFS.fs/
sudo rm -rf /Library/PrivilegedHelperTools/com.paragon-software.installer
sudo rm -rf /Library/Extensions/ufsd_NTFS.kext/