Skip to content

Instantly share code, notes, and snippets.

@orenyomtov
orenyomtov / fire-tv-disable-sleep-dark-screen-timeout.sh
Created June 27, 2018 13:01
Run this to disable your Fire TV from blacking out after 20 minutes
adb shell settings put secure sleep_timeout 0
@orenyomtov
orenyomtov / slack_rtl_support_mac.sh
Created April 18, 2018 12:07
Add RTL support for Slack on Mac
# Prerequisites: Node.js
# Node.js can be installed using brew (https://brew.sh/) by running:
# brew install node
sudo echo "Killing Slack"
kill -9 $(ps aux | grep 'Slack' | awk '{print $2}')
echo "Installing asar"
npm install -g asar
apt-get install build-essential g++ flex bison gperf ruby perl \
libsqlite3-dev libfontconfig1-dev libicu-dev libfreetype6 libssl-dev \
libpng-dev libjpeg-dev python libx11-dev libxext-dev git
git clone git://github.com/orenyomtov/phantomjs.git
cd phantomjs
git checkout 2.1.1.1
git submodule init
git submodule update