Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Nishant Arora whizzzkid

🏠
Working from home
View GitHub Profile
View mongo-db-mac-setup.sh
brew install mongodb@3.2;
brew link mongodb@3.2 --force;
sudo mkdir -p /data/db;
sudo chown -R `id -un` /data/db;
View keybase.md

Keybase proof

I hereby claim:

  • I am whizzzkid on github.
  • I am whizzzkid (https://keybase.io/whizzzkid) on keybase.
  • I have a public key ASDv2kD9Aa2H608leXfcOrmXha-ijjSpCOdwZonT0BjN6Ao

To claim this, I am signing this object:

@whizzzkid
whizzzkid / install_opencv_3.2.0.sh
Last active Aug 22, 2017
Open CV 3.2.0 complete build + install script for ubuntu
View install_opencv_3.2.0.sh
Latest installer: https://github.com/whizzzkid/opencv-complete-build-cuda/
@whizzzkid
whizzzkid / IGFWL.sh
Last active Jun 10, 2017
Installs all intel graphics drivers for linux. [This will reboot your machine on completion]
View IGFWL.sh
# To install run:
# curl -o- http://bit.ly/igfwl-installer | bash
FW=("kblgucver914.tar.bz2" "kbldmcver101.tar.bz2" "kblhucver02001810.tar.bz2" "sklgucver61.tar.bz2" "skldmcver126.tar.bz2" "sklhucver01071398.tar.bz2" "bxtgucver87.tar.bz2" "bxtdmcver107.tar.bz2" "bxthucver01071398.tar.bz2")
echo "Starting Install..."
cd /tmp
mkdir fw
for i in "${FW[@]}"
do
@whizzzkid
whizzzkid / zoom_install.sh
Last active Jun 14, 2020
Installs Zoom meeting client on linux
View zoom_install.sh
# To install run:
# bash -c "$(curl -fsSL http://bit.ly/zoom-install)"
sudo apt install libglib2.0-0 libgstreamer-plugins-base0.10-0 libxcb-shape0 libxcb-shm0 libxcb-xfixes0 libxcb-randr0 libxcb-image0 libfontconfig1 libgl1-mesa-glx libxi6 libsm6 libxrender1 libpulse0 libxcomposite1 libxslt1.1 libsqlite3-0 libxcb-keysyms1 libxcb-xtest0;
cd /tmp;
wget https://zoom.us/client/latest/zoom_amd64.deb;
sudo dpkg -i zoom_amd64.deb
@whizzzkid
whizzzkid / XPS-15 9560 Getting Nvidia To Work on KDE Neon
Last active Aug 5, 2020
[XPS 15 Early 2017 9560 kabylake] Making Nvidia Drivers + (CUDA 8 / CUDA 9 / CUDA 9.1) + Bumblebee work together on linux ( Ubuntu / KDE Neon / Linux Mint / debian )
View XPS-15 9560 Getting Nvidia To Work on KDE Neon
# Instructions for 4.14 and cuda 9.1
# If upgrading from 4.13 and cuda 9.0
$ sudo apt-get purge --auto-remove libcud*
$ sudo apt-get purge --auto-remove cuda*
$ sudo apt-get purge --auto-remove nvidia*
# also remove the container directory direcotory at /usr/local/cuda-9.0/
# Important libs required with 4.14.x with Cuda 9.X
$ sudo apt install libelf1 libelf-dev
View no-prefix-set.py
# This is done!
size = int(raw_input())
def node():
return [0, {}, 0]
words = node()
ans = 1
for s in xrange(size):
if not ans: break
word = str(raw_input())
root = words
View contact_trie.py
actions = int(raw_input())
def node():
return [0, {}]
contacts = node()
for a in xrange(actions):
action, word = map(str, raw_input().split())
cont = contacts
if action == 'add':
cont[0] += 1
for c in word:
You can’t perform that action at this time.