Skip to content

Instantly share code, notes, and snippets.

View toanant's full-sized avatar

Abhishek | अभिषेक toanant

View GitHub Profile
@toanant
toanant / analytical-program.py
Last active March 16, 2018 06:02
Collection of analytical problems solution in python.
# Binary Tree Creation and Traversal
from queue import Queue
class BinaryTree(object):
def __init__(self, value):
self.value = value
self.left_child = None
self.right_child = None
@toanant
toanant / Effective_Engineer.md
Last active January 2, 2018 07:28 — forked from rondy/Effective_Engineer.md
Fix typos and hyperlinks.

Effective Engineer - Notes

What's an Effective Engineer?

  • They are the people who get things done. Effective Engineers produce results.

Adopt the Right Mindsets

@toanant
toanant / randomize-mac-addresses
Last active December 7, 2017 13:01 — forked from fawkesley/randomize-mac-addresses.sh
In Ubuntu 16.04, randomize WiFi MAC addresses with a daily rotation - /etc/NetworkManager/dispatcher.d/pre-up.d/randomize-mac-addresses
#!/bin/sh
# /etc/NetworkManager/dispatcher.d/pre-up.d/randomize-mac-addresses
# Configure every saved WiFi connection in NetworkManager with a spoofed MAC
# address, seeded from the UUID of the connection and the date eg:
# 'c31bbcc4-d6ad-11e7-9a5a-e7e1491a7e20-2017-11-20'
# This makes your MAC impossible(?) to track across WiFi providers, and
# for one provider to track across days.
ּ_בּ
בּ_בּ
טּ_טּ
כּ‗כּ
לּ_לּ
מּ_מּ
סּ_סּ
תּ_תּ
٩(×̯×)۶
٩(̾●̮̮̃̾•̃̾)۶

I hold a B.Tech in Computer Science. I feel that my qualifications, work experience and drive for solving important problems makes me a perfect match for the job. I love writing code and helping solve real-life problem of users gives me immense pleasure. That's why I seriously got into programming during third year of my undergrad. I've been using Python and hacking around open source tools to build various projects since then. I’ve been building web apps using different Web frameworks of Python for last 4 years. I used to be fairly active on Github. I'm a good learner and ability to deliver is one of my core strengths. I used to learn through continuous improvement process. I am a team player to the core, but am also at complete ease when working alone. I’ve delivered many successful projects as part of multi-disciplinary team in my current role. Currently working on Golang based

Keybase proof

I hereby claim:

  • I am toanant on github.
  • I am toanant (https://keybase.io/toanant) on keybase.
  • I have a public key whose fingerprint is 5716 0A6B F65A 9C71 EA4F 2144 4CEC 0032 34CE 64DB

To claim this, I am signing this object:

#! /usr/bin/python
def is_prime(n):
if (n == 2) or (n == 3):
return True
if (n < 2) or (n %2 == 0):
return False
if n < 9:
return True
if n % 3 == 0:
@toanant
toanant / bash.generate.random.alphanumeric.string.sh
Created January 28, 2017 14:02 — forked from earthgecko/bash.generate.random.alphanumeric.string.sh
shell/bash generate random alphanumeric string
#!/bin/bash
# bash generate random alphanumeric string
#
# bash generate random 32 character alphanumeric string (upper and lowercase) and
NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
# bash generate random 32 character alphanumeric string (lowercase only)
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1

What I Wish I'd Known About Equity Before Joining A Unicorn

Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.

This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would

#!/bin/sh
while true;
do
# Minimum battery level in percentage.
# If remaning battery percentage is less than this then a notification will be shown.
MINIMUM_LEVEL=23;
# Determine battery status
BATTERY_STATUS=$(upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep -E "state" | sed -E 's/state://' | sed 's/^[ \t]*//;s/[ \t]*$//');