Skip to content

Instantly share code, notes, and snippets.

View professormahi's full-sized avatar
😀
Happy!

Mahdi Fooladgar professormahi

😀
Happy!
View GitHub Profile
@alirezaomidi
alirezaomidi / openconnect.sh
Last active November 28, 2023 12:04
Script to connect and disconnect to/from openconnect without pain
#!/bin/bash
# This script connects the computer to a vpn server using openconnect without pain
prog_name=$(basename $0)
# CHANGE YOUR_VPN_SERVER_DOMAIN to the VPN server you know like example.com
domain=YOUR_VPN_SERVER_DOMAIN
function help {
@alirezaomidi
alirezaomidi / acm-icpc-tehran-ranking.py
Created November 26, 2016 14:59
ACM ICPC Tehran Site University Ranking Extractor
from bs4 import BeautifulSoup
import requests
import re
import ast
import sys
URL = 'http://icpc.sharif.edu/acmicpc%s/scoreboard/' % sys.argv[1][-2:]
r = requests.get(URL)
soup = BeautifulSoup(r.text, 'html5lib')