Meteor Access Meteor Templates Instances Easily Here is an easy way to access Meteor Templates easily: Template._renderedInstances.forEach( (t) => { if(t.view.name === 'Template.DynamicTable') { console.log(t); } } ) Access the parent template using: t.parent(
Terminal Unzipping all files in a directory using Bash I have a ton of audiobook downloads in a folder, that I wanted to unzip and delete the old files. Doing this manually is boring and repetitive. To solve this, the following script
go Installing go on Ubuntu 16.04 Install go curl -O https://dl.google.com/go/go1.12.6.linux-amd64.tar.gz tar -xvf go1.12.6.linux-amd64.tar.gz sudo chown -R root:root ./go sudo mv go /usr/
hat-tip Restored 50GB on my SSD on Mac by deleting /cores Ridiculous! My SSD has been running out of space and I blamed myself for being on a download binge! Today was getting darn desperate! I've actually been pretty disciplined of late!
hat-tip Creating a user and allowing ssh on Mac To create a user called ghost and allow ghost to ssh locally on my Macbook, I had to do the following. Create a standard user by going to "Users & Groups"
From-The-News From the news - 04-22-2019 * Zomato - Annual Report FY19 [https://www.zomato.com/blog/annual-report-19] * Counter Kinda - Zomato's Gold Millions - The Ken [https://the-ken.com/story/zomato-gold-loyalty/] * Tesla Slaps Restraining Order On Randeep
From-The-News From the news - 2019-04-19 * Pinterest began its first day of trading Thursday at $23.75, up 25%. * Zoom - Videoconferencing software company Zoom made its debut Thursday on the Nasdaq under the ticker symbol âZM,â surging 80%
From-The-News From the news - 2019-04-18 * Jet Airways out of cash. No derivative play unfortunately! Shorting in the spot market has one restriction â it strictly has to be done on an intraday basis. Meaning you can initiate the short
From-The-News From the papers - 16/04/2019 * Polycab listing on NSE and BSE today * Issue price at 538 * Bid-Ask Spread at Market Open * First trade @ 633 (17.38% premium)! Election campaign running strong! Fun task for you, Bangalore Voters! Do
Terminal Concatentating or Combining Multiple Videos into a single file I wanted to stream an eCourse to Plex to watch while spinning! Unfortunately, the eCourse was split up (as usually the case) into multiple video files. This is kinda painful to work with
Options Losing money with In-The-Money options on the NSE I burnt my fingers on a winning trade this month. I was holding a position that looked pretty secure at expiration but still lost money! I didn't pay much attention to
Movies Impressed with Investigative Journalism Watched two documenatries on my Plex while spinning. The first one was The Inventor: Out for Blood in Silicon Valley starring American and my Sweetheart Elizabeth Holmes. This is perhaps not strictly investigative
Creating a .m4b audiobook from .mp3 files The m4b files that audiobooks are distributed as have their own advantages. They are easy to browse through and have chapters seperate. And thats a cool thing to have! This tool called Audiobook
Meteor Working with REST APIs on Meteor I have an IP address that changes everyday. One of my electron app has the IP hardcoded, and I need to manually update the IP everyday to get this working. Doing this over
data.table Installing data.table on Mac OSX As mentioned here [https://github.com/Rdatatable/data.table/wiki/Installation] bash xcode-select --install brew update && brew install llvm Update ~/.R/Makevars # if you downloaded llvm manually above, replace with your
Nginx Setting up NGINX on Mac OSX Heavily borrowed from: Nginx configuration for Mac OS X with Homebrew, using sites-enabled directory. [https://gist.github.com/jimothyGator/5436538] Install nginx brew install nginx cd /usr/local/etc/nginx/ git clone git@
Terminal Switching between windows on a remote nested tmux session Figured this out a while. I tmux first to server 1 and then ssh into server 2. I often need to switch between windows in the remote session. Finally, figure out that the
Terminal Text manipulation on the command line Ok! This is ridiculous but fun! I woke this morning with the goal of clearing up my s3 buckets. Storing waste is expensive! My AWS expenses are eating into my beer budget! It&
Trading Strategy Research - Fixed Amount SIP using Options vs. Underyling The strategy definition is as follows: * Portfolio 1: Invest a fixed amount at Beginning of Month in the Underlying NIFTY * Portfolio 2: Invest a fixed amount into Calls and Puts at BOM. Reinvest
Troubleshooting SOLVED: Building Blotter on Mac OSX It can be quite frustrating while installing packages on R don't work! I faced an issue while building blotter for Mac. Was getting an error on the following lines: Warning messages:
bash Shortcuts for your bash shell Here is a thread [https://news.ycombinator.com/item?id=18898523] with some read ways to reduce typing on your bash shell. I'll add these right away :-) alias s="
Plex Adding a mount folder to Plex in Ubuntu Lets make this quick! I was having trouble accessing a mount folder in Plex. The following worked for me on my Ubuntu Distro. mkdir -p /home/ghost/peloton sudo mount -B /media/ghost/