Skip to content

Instantly share code, notes, and snippets.

tabrez /
Created Apr 18, 2022
Install Ansible on Ubuntu from PPA
export DEBIAN_FRONTEND=noninteractive
apt-get update -y
apt-get install -y acl sudo software-properties-common python-is-python3
apt-add-repository -y ppa:ansible/ansible
apt-get install -y ansible
tabrez / vimrc
Last active Apr 14, 2022
minimal vim config
View vimrc
" A (not so) minimal vimrc.
" You want Vim, not vi. When Vim finds a vimrc, 'nocompatible' is set anyway.
" We set it explicitely to make our position clear!
set nocompatible
execute pathogen#infect()
filetype plugin indent on " Load plugins according to detected filetype.
tabrez / gitconfig
Created Apr 8, 2022
Minimal git configuration
View gitconfig
name = "Tabrez Iqbal"
email = ""
ui = true
[color "branch"]
current = green bold
local = yellow bold
remote = green bold
tabrez / zshrc
Last active Apr 12, 2022
Minimal zsh configuration
View zshrc
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
export TERM="xterm-256color"
autoload -U promptinit; promptinit
autoload -U compinit; compinit
prompt pure
tabrez /
Created Jan 29, 2022
Microsoft Rush + ESLint + VS Code Setup

Microsoft Rush + ESLint + VS Code Setup

Use the following code in .eslintrc.js in node/backend projects:

// This is a workaround for

module.exports = {
  extends: [

Basic configuration

sudo apt-get install gnome-tweak-tool

Displays -> Scaling 200%
OR Tweaks -> Fonts -> Scaling 2.0

Tweaks -> Top bar -> Clock -> Date
Date & Time -> AM/PM & Auto timezone

View graphql-yoga-stop.js
const { GraphQLServer } = require('graphql-yoga');
const server = new GraphQLServer({ typeDefs, resolvers });
server.start(() => console.log('Server is running...'));
// run integration tests
// how to stop the server?
"""Implement doubly-linked list in Python."""
class Node:
"""Node implementation for doubly-linked list."""
def __init__(self, v=None, next=None, prev=None):
"""Construct a node."""
self.value = v = next
"""Linked List implementation in Python."""
class LinkedCell:
"""Node implementation for linked list."""
def __init__(self, v, n=-1):
"""Construct for LinkedCell."""
self.value = v = n
View MNIST.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.