Skip to content

Instantly share code, notes, and snippets.

View Anas-jaf's full-sized avatar
🎯
Focusing

Anas Mahmoud Anas-jaf

🎯
Focusing
View GitHub Profile
import mysql.connector
mydb = mysql.connector.connect(
host="localhost",
user="root",
password="",
database="fuad_project"
)
def sort_stu () :
<?php
include('includes/dbconnection.php');
function sort(){
$query=mysqli_query($con, "SELECT avg , sec FROM request");
$row=mysqli_fetch_array($query);
if ($row['sec'] == 'علمي'){
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
driver = webdriver.Firefox()
driver.get("https://github.com/search?q=python%2Fcpython&type=")
elem = driver.find_element_by_name("q")
elem.click()
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
driver = webdriver.Firefox()
driver.get("https://github.com/search?q=python%2Fcpython&type=")
elem = driver.find_element_by_name("q")
elem.click()
@Anas-jaf
Anas-jaf / nmap_examples.md
Created July 20, 2022 16:41 — forked from rsperl/nmap_examples.md
nmap examples
@Anas-jaf
Anas-jaf / .nanorc
Created July 22, 2022 18:21 — forked from ShyftXero/.nanorc
A good nanorc file
# Options
set tabsize 4
set tabstospaces
set indicator # side-bar for indicating cur position
set linenumbers
#set numbercolor green,normal
set suspendable # allow nano be suspended
set smarthome # home jumps to line start first
set zap # delete selected text as a whole
@Anas-jaf
Anas-jaf / install.md
Created August 5, 2022 21:20 — forked from ZoomQuiet/install.md
Install SIP and PyQT4 (pyenv, pyenv-virtualenv)

Download

pyenv virtualenv

Switch to the Python version you want to use:

@Anas-jaf
Anas-jaf / install_qt4.md
Last active August 5, 2022 21:47
install qt4

install sip

wget https://sourceforge.net/projects/pyqt/files/sip/sip-4.19.13/sip-4.19.13.tar.gz
tar xzvf-sip-4.19.13.tar.gz 
cd sip-4.19.13.tar.gz 
python configure.py -b $HOME/local/bin -d $HOME/local/lib/python2.7/site-packages -e $HOME/local/include
make 
make install
@Anas-jaf
Anas-jaf / comment.sh
Created August 6, 2022 07:48
comment source.list file
sed -e 's/^/#/' -i