Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Mubashshir ahmubashshir

🎯
Focusing
View GitHub Profile
View batstat.sh
#!/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
@ahmubashshir
ahmubashshir / epic-claim.py
Last active Nov 30, 2020
Epic auto claim with python, selenium webdriver and chromium. for the lazy linux users and gamers out there... https://git.io/JUI55
View epic-claim.py
#!/bin/env python3
from os import environ, devnull, path, makedirs, symlink, remove
import logging as log
import sys
from subprocess import run, Popen
TMOUT=False
try:
@ahmubashshir
ahmubashshir / .alacritty.yml
Created Jun 16, 2020 — forked from audacioustux/.alacritty.yml
dot.rc @audacioustux - #starship #alacritty #asdf #vim #kitty #zsh
View .alacritty.yml
window:
dynamic_padding: true
decorations: none
startup_mode: Fullscreen
font:
normal:
family: Source Code Pro
style: SemiBold
bold:
family: Source Code Pro
View error.html
<!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>
View ascii2int.c
#include<stdio.h>
int main()
{
char ch='\0';
scanf("%c",&ch);
printf("%d\n",(int)ch);
return 0;
}
View pybrowser2
#!/usr/bin/python3
##### sync_to_async def
import os
import sys
import threading
import gi, platform, subprocess
gi.require_version('WebKit', '3.0')
gi.require_version('Gtk', '3.0')
View sort.c
/*
*
* Copyright Ahmad Hasan Mubashshir <ahmubashshir@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
@ahmubashshir
ahmubashshir / gist:a5148de8fb3a09ee40f43eb25abee6b2
Last active Apr 7, 2020
পোস্টমডার্ন কবর কবিতা(covid19)
View gist:a5148de8fb3a09ee40f43eb25abee6b2
'কবর'
এইখানে তোর দাদির কবর ডালিম- গাছের তলে,
তিরিশটা দিন হাত ধোঁয়নি সাবান মেশানো জলে।
এতোটুকু তারে ঘরে এনেছিনু গোবর ভর্তি মাথা,
ভোর রাতে উঠে চুপচাপ খেতো তিন থানকুনি পাতা।
এখানে ওখানে ঘুরিয়া ফিরিয়া ভেবে হইতাম সারা;
সারা বাড়ি ভরি এতো ভাইরাস ছড়াইয়া দিল কারা!
এমনি করিয়া জানি না কখন হাত থেকে মুখে মিশে
করোনা তাহার বাসা বেধেছিলো সরাসরি ফুসফুসে।
View mines.vala
/*
*
* Copyright 2019 Ahmad Hasan Mubashshir <ahmubashshir@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
View gist:26b8be23128abee8f684309e2caea284
"Aoi" - Hikaru ga Chikyuu ni Itakoro......
10 Years after saying “Leave this to me and go”, I Became a Legend.
10 Years in the Friend Zone
2.5 Dimensional Seduction
A Boy Who Has Been Reincarnated Twice Spends Peacefully as an S-Rank Adventurer
A Fool and a Girl
A Pretty's Super Zombie
A Story About A Totally Straightforward Girlfriend
A Story About Treating a Female Knight Who Has Never Been Treated as a Woman as a Woman
Aida ni Hatachi
You can’t perform that action at this time.