Skip to content

Instantly share code, notes, and snippets.

View varunchopra's full-sized avatar

Varun Chopra varunchopra

View GitHub Profile

Install required packages:

Required packages for make:

  • build-essential

Required packages for Guacamole:

  • libcairo2-dev
  • libjpeg-turbo8-dev
fahycd-uu+UtHRS4d-@D^Bq4kFNU@f4?
Vagrant.configure("2") do |config|
config.vm.define "workstation", primary: true do |workstation|
workstation.vm.box = "generic/rhel7"
workstation.vm.hostname = "workstation.example.com"
workstation.vm.synced_folder "../Ansible", "/workspace"
workstation.vm.network "private_network", ip: "10.0.0.10"
workstation.vm.provider "virtualbox" do |vb|
@varunchopra
varunchopra / pc
Last active February 28, 2018 02:03
CPU AMD - Ryzen 5 2400G 3.6GHz Quad-Core Processor ₹ 10,840
CPU Cooler Cooler Master - Hyper 212X 82.9 CFM CPU Cooler ₹ 2,270
Motherboard MSI - B350 TOMAHAWK ATX AM4 Motherboard ₹ 5,812
Memory Corsair - Vengeance LPX 8GB (2 x 4GB) DDR4-3000 Memory ₹ 7,333
Storage Samsung - 960 EVO 500GB M.2-2280 Solid State Drive ₹ 12,979
PSU Corsair - RMx 650W 80+ Gold Certified Fully-Modular ATX Power Supply ₹ 7,099
Case NZXT - S340 (Black) ATX Mid Tower Case ₹ 5,840
Monitor Acer - GN246HL 24.0" 1920x1080 144Hz Monitor ₹ 12,764
@varunchopra
varunchopra / ansible.cfg
Created February 19, 2018 15:41
gcloud-qbittorrent
[defaults]
inventory=inventory
host_key_checking=false
var maps = {};
function extend(a, b) {
for (var p in b) {
a[p] = b[p];
}
return a;
}
@varunchopra
varunchopra / Day 1: Inverse Captcha
Last active December 3, 2017 07:19
Advent of Code 2017
--- Day 1: Inverse Captcha ---
The night before Christmas, one of Santa's Elves calls you in a panic. "The printer's broken! We can't print the Naughty or Nice List!" By the time you make it to sub-basement 17, there are only a few minutes until midnight. "We have a big problem," she says; "there must be almost fifty bugs in this system, but nothing else can print The List. Stand in this square, quick! There's no time to explain; if you can convince them to pay you in stars, you'll be able to--" She pulls a lever and the world goes blurry.
When your eyes can focus again, everything seems a lot more pixelated than before. She must have sent you inside the computer! You check the system clock: 25 milliseconds until midnight. With that much time, you should be able to collect all fifty stars by December 25th.
Collect stars by solving puzzles. Two puzzles will be made available on each day millisecond in the advent calendar; the second puzzle is unlocked when you complete the first. Each puzzle grants one star
@varunchopra
varunchopra / uu.sh
Created November 30, 2017 13:23
Ubuntu 14 -> 16
apt-get update
apt-get upgrade
apt-get dist-upgrade
apt-get install update-manager-core
do-release-upgrade
sudo apt-get -y update && sudo apt-get -y upgrade
sudo apt-get install software-properties-common apache2
# add qbittorent ppa
sudo add-apt-repository ppa:qbittorrent-team/qbittorrent-stable
# install qbittorent for headless servers
sudo apt-get update && sudo apt-get install qbittorrent-nox
#!/bin/bash
PATH=/bin:/usr/bin:/sbin:/usr/sbin
apt-get -y install build-essential gcc make git libssl-dev
git clone https://github.com/chopraaa/rtmpdump-ksv.git
cd rtmpdump-ksv
patch -p0 -i Patch.diff