Skip to content

Instantly share code, notes, and snippets.

View whizzzkid's full-sized avatar
🛸
If you're an 👽 please contact me! ❤️

Nishant Arora whizzzkid

🛸
If you're an 👽 please contact me! ❤️
View GitHub Profile
@whizzzkid
whizzzkid / proxmox-fresh.sh
Last active September 12, 2023 05:14 — forked from cmer/proxmox-fresh.sh
Proxmox VE 8.x (debian bookworm) - fresh install starter pack
#!/bin/bash
apt update -y
apt install -y lsb-release sudo vim screen curl htop
RELEASE=`lsb_release -sc`
# Install no-nag
cd /tmp
curl -s https://api.github.com/repos/Jamesits/pve-fake-subscription/releases/latest \
| grep "browser_download_url.*deb" \
brew install mongodb@3.2;
brew link mongodb@3.2 --force;
sudo mkdir -p /data/db;
sudo chown -R `id -un` /data/db;

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 August 22, 2017 20:45
Open CV 3.2.0 complete build + install script for ubuntu
Latest installer: https://github.com/whizzzkid/opencv-complete-build-cuda/
@whizzzkid
whizzzkid / IGFWL.sh
Last active June 10, 2017 19:42
Installs all intel graphics drivers for linux. [This will reboot your machine on completion]
# 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 September 16, 2022 08:55
Installs Zoom meeting client on linux
# 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 December 3, 2022 15:43
[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 )
# 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
# 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
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: