Skip to content

Instantly share code, notes, and snippets.

View pallavagarwal07's full-sized avatar
πŸ™‹β€β™‚οΈ

Pallav Agarwal pallavagarwal07

πŸ™‹β€β™‚οΈ
View GitHub Profile
{
{
name: "Pallav",
age: 19
},
{
name: "Kunal",
age: 20
},
{
@pallavagarwal07
pallavagarwal07 / auth.sh
Last active November 5, 2020 16:08
IITK firewall authentication script that uses nothing except for curl. It is possible to specify an interface manually (for compatibility with some unix systems). In case the user is already logged in, it can even force a logout to get the authentication page.
#!/bin/sh -eu
# Copyright 2017 Pallav Agarwal
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
@pallavagarwal07
pallavagarwal07 / wkhtmltopdf.sh
Created September 21, 2022 08:35 — forked from AnjaneyuluBatta505/wkhtmltopdf.sh
Install wkhtmltopdf with patched QT on Ubuntu Linux
# Uncomment the next line if you have installed wkhtmltopdf
# sudo apt remove wkhtmltopdf
cd ~
# Select an appropriate link for your system (32 or 64 bit) from the page https://wkhtmltopdf.org/downloads.html and past to the next line
wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
tar xvf wkhtmltox*.tar.xz
sudo mv wkhtmltox/bin/wkhtmlto* /usr/bin
sudo apt-get install -y openssl build-essential libssl-dev libxrender-dev git-core libx11-dev libxext-dev libfontconfig1-dev libfreetype6-dev fontconfig