This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -d "api_token=luobgye&sid=UTIONS&msisdn=8801610145632&sms=4545&csms_id=65565456" -X POST https://smsplus.sslwireless.com/api/v3/send-sms |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git log --format="%H" -n 1 | |
or | |
git log --format="%h" -n 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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--------------------------" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sleep = option+command+power |
NewerOlder