Skip to content

Instantly share code, notes, and snippets.

Viren Mohindra VirenMohindra

Block or report user

Report or block VirenMohindra

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
lacostenycoder /
Last active Jul 16, 2019
Ruby script to toggle night-mode hack on Slack Desktop app - Mac only, maybe linux


For security, since this script injects CSS via AJAX, first fork the main slack night mode repo. The reason is explained here

UPDATE: The code has been modified to download the remote css to a local file and use ruby sass compiler to verify there is no malicious code in the remote css. This will error if the code has been modified to include anything malicious (i.e. script or img tags etc.) It's also been refactored to use the local file inside the js injection, it makes sure it's safe first in the very unlikely event the local file somehow differs from the remote css. The chances of this happening are remote, but this should suffice for safety.


  • save this script wherever you keep your ruby scripts for example ~/lacostenycoder/scripts/ruby/
  • change the URL in the remote_repo variable in ruby script to use YOUR repo. The file is crea
belmer / .eslintrc.js
Last active Oct 11, 2018
Eslint config
View .eslintrc.js
"env": {
"browser": true,
"node": true,
"es6": true
"globals": {
"nconf": true
"parser": "babel-eslint",
alexanderankin / index.diff
Created Nov 22, 2016
twitter changes draft
View index.diff
diff --git a/index.html b/index.html
index 6582498..12f71ac 100644
--- a/index.html
+++ b/index.html
@@ -98,6 +98,7 @@ comments: false
<!-- Tab panes -->
<div class="tab-content">
+ {% increment issue_number %}
{% for tab in %}


When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

Pull Request Process

  1. Ensure any install or build dependencies are removed before the end of the layer when doing a
xvtom / uninstall.tool
Created Aug 25, 2015
Uninstall script for ExpressVPN Mac 4.x
View uninstall.tool
#!/usr/bin/env bash
# Functions
# Exits the script with the given exit code after waiting
# for a keypress.
# @param [Integer] $1 exit code.
function key_exit() {
TSiege / The Technical Interview Cheat
Last active Dec 12, 2019
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.
View The Technical Interview Cheat


I have moved this over to the Tech Interview Cheat Sheet Repo since a gist is too difficult to maintain as an open source endevaor and there is no way to version it. I have updated below, but I will not be able to keep this one up to date so please checkout the repo instead. The below is just for some preservation for those who stumble across here.


kevinSuttle /
Last active Dec 6, 2019 — forked from lancejpollard/
List of Usable HTML Meta and Link Tags
isaacs /
Last active Dec 5, 2019
Use one of these techniques to install node and npm without having to sudo. Discussed in more detail at Note: npm >=0.3 is *safer* when using sudo.
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl | sh
You can’t perform that action at this time.