Skip to content

Instantly share code, notes, and snippets.

View abhayghatpande's full-sized avatar

Abhay Ghatpande abhayghatpande

  • Montreal, QC, Canada
View GitHub Profile
@abhayghatpande
abhayghatpande / dark.md
Created August 9, 2018 15:12 — forked from a7madgamal/dark.md
Dark mode for Slack on MacOS
  1. Close slack
  2. Open this file /Applications/Slack.app/Contents/Resources/app.asar.unpacked/src/static/ssb-interop.js
  3. Append this to it
document.addEventListener('DOMContentLoaded', function() {
 $.ajax({
   url: 'https://cdn.rawgit.com/laCour/slack-night-mode/master/css/raw/black.css',
   success: function(css) {
 $("").appendTo('head').html(css);
======================= ==================================
Product Job-To-Be-Done
======================= ==================================
Navigation App Get to a destination on time
CRM Software Acquire new customers
Phlebotomy Tube Obtain a blood sample
Car Marketplace Buy/sell a used car
Maintenance Software Ensure aircraft airworthiness
Networking Device Enable secure data use
Financial Product Invest in a private equity fund
============================ =================================================
Product bought Actual objective
============================ =================================================
Milkshakes Avoid boredom during drive
Ikea furniture Starter home, instant decoration
Gucci, Louis Vuitton Feel macho, pampered, prestigious
Metro newspaper Pass commute productively
Starbucks (and some cars) Mobile office
Hospital beds Save nurses' time, improve profitability
Boat rides Entertain out of town visitors
@abhayghatpande
abhayghatpande / compress-pdf-with-gs.md
Created June 12, 2017 22:23 — forked from vibegui/compress-pdf-with-gs.md
Compress PDF files with ghostscript

This can reduce files to ~15% of their size (2.3M to 345K, in one case) with no obvious degradation of quality.

ghostscript -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/printer -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf

Other options for PDFSETTINGS:

  • /screen selects low-resolution output similar to the Acrobat Distiller "Screen Optimized" setting.
  • /ebook selects medium-resolution output similar to the Acrobat Distiller "eBook" setting.
  • /printer selects output similar to the Acrobat Distiller "Print Optimized" setting.
  • /prepress selects output similar to Acrobat Distiller "Prepress Optimized" setting.
Setting pipeline to PAUSED ...
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: ring-buffer-max-size = 0
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: buffer-size = -1
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: buffer-duration = -1
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: use-buffering = false
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: download = false
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: uri = file:///root/downloads/tjws/webroot/video1.mp4
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: connection-speed = 0
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: source = "\(GstFileSrc\)\ source"
Pipeline is PREROLLING ...