Skip to content

Instantly share code, notes, and snippets.

View imrashed's full-sized avatar

MD RASHEDUL HASAN imrashed

View GitHub Profile
curl -d "api_token=luobgye&sid=UTIONS&msisdn=8801610145632&sms=4545&csms_id=65565456" -X POST https://smsplus.sslwireless.com/api/v3/send-sms
async def fetch(session, url):
async with session.get(url) as response:
return await response.text()
async with aiohttp.ClientSession() as session:
html = await fetch(session, 'http://python.org')
print(html)
git checkout -b new_branch from_branch_or_tag
git checkout -b features/job_admin_apr2020 end_of_sprint_10
git apply patch_files/contact_us_07.patch
git diff 8bd195acd0157f095438edab130c3b156ce7f425 2c1db599c80849fd4bcb9dee179c38345068af7c
git diff 8bd195acd0157f095438edab130c3b156ce7f425 2c1db599c80849fd4bcb9dee179c38345068af7c -- . ":(exclude)test_ui" > patch_files/contact_us_07.patch
git log --oneline --graph
git log -n1
git push --force
git reset --hard 8bd195a
git reset --hard HEAD~1
git log --format="%H" -n 1
or
git log --format="%h" -n 1
fetch("http://p7.ishraak.com/api/job_list/?page=1&q=dd&location=&category=&location_from_homepage=&keyword_from_homepage=&skill=&salaryMin=&salaryMax=&experienceMin=&experienceMax=null&datePosted=&gender=&qualification=&sort=&page_size=10", {
"headers": {
"accept": "*/*",
"accept-language": "en-US,en;q=0.9",
"api-key": "96d56aceeb9049debeab628ac760aa11",
"x-requested-with": "XMLHttpRequest"
},
"referrer": "http://p7.ishraak.com/api/jobs/",
"referrerPolicy": "no-referrer-when-downgrade",
"body": null,
pip freeze
sudo apt-get install python-mysqldb
sudo apt-get install python3-dev
sudo apt-get install python3-dev libmysqlclient-dev
pip install mysqlclient
django-admin startproject try_django .
python manage.py startapp posts
python manage.py runserver
@imrashed
imrashed / ubuntu-18.04.sh
Last active May 3, 2020 00:55
How To Install Linux, Apache, MySQL, PHP (LAMP) stack on Ubuntu 18.04
#!/bin/sh
#cd /home/aa/Documents
#cat ERPNEXT.sql
fiveminute=5
echo "--------------------Stat Updaing All Packages------------------------"
sudo apt-get update
sleep $fiveminute
echo "--------------------End Of Updaing All Packages------------------------"
echo "----------------------Intalling Basic Packages--------------------------"
### Login MariaDB server
sudo mysql -u root -p
### SHOW DATABASES
->SHOW DATABASES;
### Show Table from db
-> SHOW TABLES FROM [db];
### CREATE USER IN MYSQL DEFAULT USER TABLE FOR ACCESSING MYSQL/MARIA DB DATABASE
-> CREATE USER 'root'@'%' IDENTIFIED BY '123456';
### FLUSH PRIVILEGES;
FLUSH PRIVILEGES;
addCommand("/ppp/secret/add");
addCommand("/ppp/secret/disable")
addCommand("/ppp/secret/enable");
addCommand("/ppp/secret/set");
addCommand("/ppp/secret/remove");
fromCommand("/ppp/secret/getall");
fromCommand("/ppp/secret/print"); [getting of single customer details]
@imrashed
imrashed / mac shorcut
Created March 1, 2018 13:51
Mac Shortcut
sleep = option+command+power