Skip to content

Instantly share code, notes, and snippets.

View Muaath5's full-sized avatar
🎯
Focusing

Muaath Alqarni Muaath5

🎯
Focusing
View GitHub Profile
@Muaath5
Muaath5 / cms_live_submissions.py
Created September 29, 2025 11:13
CMS Live submissions monitoring in Python
import requests
import time
import datetime
import os
ROOT_URL = 'https://ranking.ioi2025.bo/'
session = requests.session()
session.get(ROOT_URL)
def load_user(usr):
@Muaath5
Muaath5 / README.md
Last active August 19, 2024 12:43
WSL ipconfig

WSL ipconfig

Basic IP information command for WSL

Installation

sudo curl https://gist.githubusercontent.com/Muaath5/85022d0063b9842826e43cd9660271f2/raw/0530d123056d30a3c0b25fef8a2ed62390d7403e/ipconfig > ipconfig
sudo chmod +x ./ipconfig
sudo mv ./ipconfig /usr/bin/local
@Muaath5
Muaath5 / SegmentTreeTemplete.cpp
Last active September 29, 2025 11:11
Customizable Segment Tree Template in an STD-similar way
#include <algorithm>
namespace alg {
using std::max;
using std::min;
//using std::cin;
const int maxST = 2e5 + 1;
struct range {
range(int idx) : left(idx), right(idx) {}
@Muaath5
Muaath5 / SudokuSolver.cpp
Created February 3, 2022 21:20
C++ console app that solves sudoku 9x9 via Backtracking (Recursion)
// Copyright 2022 - Muaath Alqarni
#define _CRT_NO_DEPRECATE
#include <iostream>
#include <vector>
#define endl '\n';
#define fast std::ios::sync_with_stdio(0),cin.tie(0),cout.tie(0);
using std::cin;
using std::cout;
@Muaath5
Muaath5 / console_chess.cpp
Created January 22, 2022 14:53
C++ chess game in console, not completed needs kings checks
// Copyright 2022
// Written by: mdubaisi, Muaath_5
// A C++ console app to play chess with a friend offline
#include <bits/stdc++.h>
#define endl '\n'
#define E8 Pos('E', 8)
#define E1 Pos('E', 1)
@Muaath5
Muaath5 / TgPollsBot.cs
Last active June 6, 2021 17:04
Simple Telegram polls bot using long-polling (wiki) in C#
using System;
using System.Threading.Tasks;
using Telegram.Bot;
using Telegram.Bot.Args;
using Telegram.Bot.Types;
using Telegram.Bot.Types.Enums;
namespace ConsoleTgBot
{
static class Program