Skip to content

Instantly share code, notes, and snippets.

View vishaltelangre's full-sized avatar

Vishal Telangre vishaltelangre

View GitHub Profile
@vishaltelangre
vishaltelangre / Managing_Data_in_Microservices.md
Last active August 27, 2017 11:05
Managing Data in Microservices - Notes

Link to the talk: https://www.infoq.com/presentations/microservices-data-centric

Notes:

  1. Service for each table
  2. Local/own/isolated database for each service
  3. Cache join query information locally on respective service's DBs on each write to avoid cascaded service calls (aka joins in monolithic/shared DB)
  4. Alternative to ACID transactions is to perform multi-step operations using a state machine which can be rollbacked
  5. Dealing with events
    5.1 At most once delivery - When you don't care about such events, like logging stuff using UDP
@vishaltelangre
vishaltelangre / gist:e60095d257d38cd1a51c302d1a8d8118
Created June 4, 2016 16:04
#mac #osx recursively delete all #exe files
find . -name '*exe' -exec rm -rf {} \;
@vishaltelangre
vishaltelangre / download.sh
Last active February 22, 2017 13:38
ePub book links from https://msblc.maharashtra.gov.in/download1.html (Total 337 books, net size around 1.7 GiB)
#!/bin/sh
cat links.txt | parallel --gnu "wget {}" --no-check-certificate
@vishaltelangre
vishaltelangre / docker.sh
Created October 1, 2016 08:16
Add a volume to an existing Docker container
docker run --name rails-modified-container -v "$PWD":/usr/src/app -w /usr/src/app -d rails
^ ^ ^ ^
name of container app dir dir on image from which
on host container create container

Keybase proof

I hereby claim:

  • I am vishaltelangre on github.
  • I am vishaltelangre (https://keybase.io/vishaltelangre) on keybase.
  • I have a public key ASAgnXEmPd6H1DjWLMKbHYF4gOL529tTFVCjGzWvqDRwQQo

To claim this, I am signing this object:

hp-scan -s pdf
@vishaltelangre
vishaltelangre / merge_vob.sh
Created September 24, 2016 10:26
Join multiple VOB video files into one
cat *.VOB | pv | dd of=final.vob
@vishaltelangre
vishaltelangre / mr-marathi.mim
Created February 13, 2014 11:16
/usr/share/m17n/mr-marathi.mim #ibus #scim #phonetic #devnagari #linux #ubuntu
;; mr-marathi.mim -- Marathi Phonetic input method
;; Minor modifications in original "hi-baraha.mim" by vishaltelangre@gmail.com
;; for few Marathi character support.
;;
;; The MIT License (MIT)
;;
;; Copyright (c) 2011 Vishal Telangre
;;
;; Permission is hereby granted, free of charge, to any person obtaining a copy
;; of this software and associated documentation files (the "Software"), to deal
# e.g. add vlc to startup items
$ cp /usr/share/applications/vlc.desktop ~/.config/autostart/
@vishaltelangre
vishaltelangre / freeme
Created November 7, 2013 06:35
Free up unused memory [ubuntu]
#!/bin/bash
#
# Release memory used by the Linux kernel on caches.
free -m
sudo sysctl -w vm.drop_caches=3
sleep 5
sync && echo 3 > sudo /proc/sys/vm/drop_caches
free -m