Skip to content

Instantly share code, notes, and snippets.

View thexavier666's full-sized avatar

Sumitro Bhaumik thexavier666

View GitHub Profile
@thexavier666
thexavier666 / alliance_autologin.sh
Last active August 31, 2020 19:26
A simple script which allows you to automatically login if it detects a connection to the local gateway
#!/bin/bash
#-- CONFIGURATION AREA ----------------------------
# Please fill the following details, which is just
# after this comment section, before running this
# script. Otherwise, you can't login
#
# 1. GATEWAY_IP
# 2. USER (Your Alliance login username)
# 3. PASSWD (Your Alliance login password)
@thexavier666
thexavier666 / install-polybar.md
Last active May 20, 2020 04:49
Install polybar on Ubuntu 18.03

Installation of Polybar for i3 in Ubuntu 20.04

Install all dependancies

Note : I'm assuming you have a working i3 install

sudo apt-get install \
  cmake cmake-data libcairo2-dev libxcb1-dev libxcb-ewmh-dev \
 libxcb-icccm4-dev libxcb-image0-dev libxcb-randr0-dev \
#!/bin/bash
# path of your alacritty config file
# this should be the default path
FILE_LOC="/home/$USER/.config/alacritty/alacritty.yml"
def_change_opacity ()
{
delta_val="0.05"
METRIC_ID="background_opacity"
@thexavier666
thexavier666 / chk_season_reset.py
Last active September 5, 2019 19:34
Small py code to check if the season in Skidstorm has been reset or not
#!/usr/bin/env python3
import time
import json
import requests
from datetime import datetime
url_str = 'http://api.skidstorm.cmcm.com/v2/rank/list/1-1/ALL'
sleep_val = 30
rank_threshold = 20000
@thexavier666
thexavier666 / kgp_net_checker.py
Created June 25, 2017 16:59
Checking if Intenet is working or not
import subprocess as sp
import time
def main():
sleep_dur = 5
test_website = 'stw.com'
cmd_timeout = '5'
cmd_positive_resp = 'HREF'
cmd_str = 'curl %s -m %s -s' % (test_website, cmd_timeout)