My work Bitbucket doesn’t support proper syntax highlighting for kotlin
for unknown reasons. A quick search led me to this Atlassian public jira ticket from 2018.
How to view git change history of a Swift method
I knew git had a feature to get change history of a method. I used it all the time with ObjC but it never worked for swift files.
Script to delete xcode buildconfigurations
Yes, you do not need this solution, unless you know for sure you have one too many build configs and it is time consuming to delete one by one. And the $ Trillion/Billion company do not find enginneers to assign multiple edits in scheme/buildconfig/simulator list in xcode UI.
Whatchanged - Git history as HTML Report
Recently I was requested to produce a report of changes in a git repo between two tags by testing team. I am not sure the basis of the request, as they can go through the git repo themselves. I also kind of thought it is better to have a separate report that can be uploaded to their release ticket for archival; instead of going through each commits between revisions or any changes to repo history.
Script to publish Hugo sites for Github
While deploying my recent hugo website to github, I re-learnt that, you can only publish gh-pages from master
branch for user or organization repository.
Pilapse - Raspberry Pi Camera and Timelapse
It is a simple python script to capture timelapse with few more addition option than raspistill -tl
.
Built-in command usage: raspistill -t 30000 -tl 2000 -o image%04d.jpg
Merging multiple MP4 videos with FFMPEG
I have a collection of video tutorials split into multiple sections and multiple clips in each section. I wanted to merge the files to one, so I can upload and download from services like Google Drive & Dropbox.
Poor man's pdf diff tool
Recently a client shared updated requirement document, unfortunately the document was in PDF and I don’t want to go through 60+ pages of document for changes.
RescueTime weekly summary and Google Script
I was cleaning up my mac before handing it to systems on my last job. I had a couple of days just for the Knowledge Transfer of projects and nothing else. I have always run two or three passive self policing apps like Rescuetime and Timing etc.,
RIL2Insta - Import Read it Later links to Instapaper
One of my long time wish to write a Chrome extension completed last week. It all started when my answer was down-voted at apple.stackexchange.com, the original answer was based on my experience sometime ago I was searching to migrate my links between my Instapaper accounts.
Shell script to generate images for testing
Recently I was in need of generating sample images for no. of products in my db. I really hate to create a copy of image for each products in my db.
Import Delicious bookmarks to Evernote including tags
It is unfortunate to know that Yahoo is going to shutdown/transfer the awesome Delicious bookmarking service.
Evernote does not support direct import of bookmarks from delicious as it does with Google notebook. I wrote this script to move my delicious bookmarks to evernote for my use.
My Userscripts
Finally decided to copy all my published userscripts.org codes here.
AnchorFree banner killer
Remove Banner from the top when you use Anchor Free Hotspot shield / Please deactivate the script after disconnecting Hotspot shield
Pure Reader for Chrome
I love the theme of the Pure Reader for Safari (http://nadesign.net/safari/). I’ve ported the CSS as a userscript to use it with Google Chrome. Firefox need some css modification pls find the css here.
Batch renaming of files (Mac OSX / *nix)
How to batch/bulk rename files with automatic sequence number? Try the following shell script from your terminal (OSX/*nix)
- Create a new directory
- Run the following command (you can replace newdir with the your directory name and some_prefix with your prefix the same applicable for extension as well. My eg., rename only the png files of the directory (there were no other extensions available).
i=0; for x in *.png; do cp \"$x\" "newdir/some_prefix_$i.png"; i=$(($i+1)); done
SVN: Export only updated files between 2 revisions
Are you someone like me who is looking for an SVN command that exports the files updated between two revisions? Until now, I used to say that there is no such command available in SVN by default, or maybe now they have a feature to build in the next release.
SVN: Auto UPDATE WORKING COPY after COMMIT
In one of our recent project, we were looking for an automated script that update the working copy of our dev server as soon as someone commit the changes to the SVN.
Sticky notes with PHP and Jquery
Script speaks louder than words. Please go through the following links
PHP Gd based Sticky script
Play YouTube with FLV player of your choice
Not working anymore, but you are free to explore the code. Updates are welcome.
I have completed alternative way to view YouTube videos with FLV player of your choice (JW FLV player in this case). The flv files will not be download to the server, it streams directly from YouTube .
Clean yahoo webmail without Ad's
Today, I have uploaded my second Greasemonkey scripts to userscripts, Yahoo webmail++ . This will remove (hide) the advertisements in your yahoo webmail, the one at the top and the small ads on the left side. Initially I was trying to do something similar to Gmail Airskin, but unfortunately yahoo uses lot of tables, which I find difficult to finish the script, at this stage it will remove only the advertisements and I will try to update the script soon.