Skip to content

Instantly share code, notes, and snippets.

View dulyanov's full-sized avatar

Danila Ulyanov dulyanov

View GitHub Profile
@dulyanov
dulyanov / dupefixer.js
Last active February 24, 2019 21:33 — forked from Talon876/dupefixer.js
Mint Duplicate Transaction Fixer
/*
* This script is meant to be copy/pasted in to the Chrome javascript console while logged in to Mint.
* It can be used to find all of the transactions that you have checked "This is a duplicate" for.
* Once all of these transactions are found, you can then have the script add a 'Duplicate' tag to
* each of the transactions.
*
* This will then allow you to filter out duplicate transactions after exporting them to CSV as tags are included.
*
* You may need to replace the value of the duplicateTagId variable after this comment.
* To find the Duplicate tag id, edit a transaction and view the list of tags.
@dulyanov
dulyanov / ReadMe.md
Created January 13, 2019 00:39 — forked from jb510/ReadMe.md
Auto Update Brew: OS X Launchd job and script to automatically update homebrew
  1. Place homebrewupdate.sh where ever you like, I use ~/bin/homebrewupdate.sh
  2. Place the .plist file in ~/Library/LaunchAgents and update the path to your bash script
  3. run launchctl load ~/Library/LaunchAgents/com.jb510.homebrewupdate.plist or whatever you've named your plist file.
  4. check launchctl list | grep jb510 to see that it's running

Note: You might need to chmod +x homebrewupdate.sh

Note 2: you can run this manually to test your script ~/bin/homebrewupdate.sh

Future: Update this to also update casks https://github.com/buo/homebrew-cask-upgrade or using brew cask list | xargs brew cask reinstall

@dulyanov
dulyanov / batch_avconvert.sh
Created April 14, 2014 00:35
Re-encode video files using avconvert
#!/bin/bash
dir="x/1"
for file in `find "$dir" -iname "*.mov"`
do
echo "Start processing $file"
file_orig="${file/%.mov/.original.mov}"
file_conv="${file/%.mov/.converted.mov}"
@dulyanov
dulyanov / prepare-commit-msg
Last active October 2, 2015 04:37
Prepending branch name and task number before commit in GIT
#!/usr/bin/env ruby
#
# Git commit-msg hook. Prepend branch name to commit tasks.
# If your branch name is in the numeric form "12345", also prepend "(Task 123)" to commit messages,
# unless #notask is included in the message (#notask will be stripped).
#
# Based on git://gist.github.com/750755.git
#
# Place code into .git/hooks/prepare-commit-msg and give it executable permissions
# cd .git/hooks