Skip to content

Instantly share code, notes, and snippets.

View saravanabalagi's full-sized avatar

Saravanabalagi Ramachandran saravanabalagi

  • Ireland
View GitHub Profile
@saravanabalagi
saravanabalagi / python_on_heroku.md
Last active July 9, 2018 13:59
This snippet shows how to run simple continuously running python scripts on Heroku

Deploying long running python scripts on Heroku

  1. Add Procfile with the following contents
worker: python your_script.py
  1. Add requirements.txt file with the format MODULE_NAME==MODULE_VERSION. Example:
slackclient==1.2.1
@saravanabalagi
saravanabalagi / Install NVIDIA Driver and CUDA.md
Created November 27, 2018 11:51 — forked from zhanwenchen/Install NVIDIA Driver and CUDA.md
Install NVIDIA CUDA 9.0 on Ubuntu 16.04.4 LTS
@saravanabalagi
saravanabalagi / ttf-vista-fonts-installer.sh
Last active February 6, 2019 12:31 — forked from liamstaras/ttf-vista-fonts-installer.sh
Script to install Microsoft Vista TrueType Fonts (TTF) aka Microsoft’s ClearType fonts on Ubuntu distros
#!/bin/bash
# Author: Maxwel Leite
# Website: http://needforbits.wordpress.com/
# Description: Script to install Microsoft Vista TrueType Fonts (TTF) aka Microsoft’s ClearType fonts on Ubuntu distros
# Microsoft added a group of new "ClearType Fonts" to Windows with Windows Vista and Office 2007.
# These fonts are named Constantia, Corbel, Calibri, Cambria (and Cambria Math), Candara, and Consolas.
# Calibri became the default font on Microsoft Word 2007, and it’s still the default font on Word 2016 today.
# Dependencies: wget, fontforge and cabextract
# Note: Microsoft no longer provides the PowerPoint Viewer 2007 (v12.0.4518.1014) or any version anymore for download
# Tested: Ubuntu Saucy/Trusty/Xenial/Bionic
@saravanabalagi
saravanabalagi / cmake_with_python_conda_env.sh
Last active March 6, 2019 16:10
cmake with python conda env
cd myAwesomeLibrary
mkdir build
cd build
cmake -DPYTHON_LIBRARY=/home/saravanabalagi/.conda/envs/dev/lib/libpython3.6m.so -DPYTHON_EXECUTABLE=/home/saravanabalagi/.conda/envs/dev/bin/python ..
cmake --build ..
@saravanabalagi
saravanabalagi / atom.desktop
Created March 15, 2019 17:55
Add "New Window" action for Atom
[Desktop Entry]
Name=Atom
Comment=A hackable text editor for the 21st Century.
GenericName=Text Editor
Exec=/usr/bin/atom %F
Icon=atom
Type=Application
StartupNotify=true
Categories=GNOME;GTK;Utility;TextEditor;Development;
MimeType=text/plain;
@saravanabalagi
saravanabalagi / gnome-shell.css
Last active July 17, 2019 15:56
Customized Gnome Shell Appearance for MacBuntu Sierra Dark Theme. Place this in /usr/share/themes/MacBuntu-Sierra-dark-solid-thin/gnome-shell/
/* This stylesheet is generated, DO NOT EDIT */
/* Copyright 2009, 2015 Red Hat, Inc.
*
* Portions adapted from Mx's data/style/default.css
* Copyright 2009 Intel Corporation
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU Lesser General Public License,
* version 2.1, as published by the Free Software Foundation.
*
@saravanabalagi
saravanabalagi / ubuntu.css
Last active October 16, 2019 08:47
Customized Lock Screen for Ubuntu. Place it in /usr/gnome-shell/theme/
/* This stylesheet is generated, DO NOT EDIT */
/* Copyright 2009, 2015 Red Hat, Inc.
*
* Portions adapted from Mx's data/style/default.css
* Copyright 2009 Intel Corporation
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU Lesser General Public License,
* version 2.1, as published by the Free Software Foundation.
*
@saravanabalagi
saravanabalagi / .zshrc
Last active March 15, 2023 16:47
My .zshrc
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/Users/saravanabalagi/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
@saravanabalagi
saravanabalagi / cuDNN_install.md
Last active October 24, 2019 11:11
cuDNN installation instructions in Linux
  1. Download cuDNN from Nvidia's official website

  2. Copy the files:

Repository installation:

cd folder/extracted/contents
sudo cp -P include/cudnn.h /usr/include
sudo cp -P lib64/libcudnn* /usr/lib/x86_64-linux-gnu/
@saravanabalagi
saravanabalagi / error_codes_desc.json
Last active November 3, 2019 17:04
Error Codes and Description JSON
{
"100": "Continue",
"101": "Switching Protocol",
"102": "Processing",
"103": "Early Hints",
"200": "OK",
"201": "Created",
"202": "Accepted",
"203": "Non-Authoritative Information",
"204": "No Content",