Skip to content

Instantly share code, notes, and snippets.

View Free-Radical's full-sized avatar
🎯
Focusing

Saqib Ali Khan Free-Radical

🎯
Focusing
View GitHub Profile
@kenjyco
kenjyco / 01-Learning-Python3.md
Last active January 7, 2026 09:07
Learn Python 3 with Jupyter Notebook
@keithweaver
keithweaver / get-wifi.py
Last active March 20, 2023 18:01
Get Wifi information on Mac OSx using Python
# I tried to use the pip install wifi but it really didn't work.
# So created this
import subprocess
process = subprocess.Popen(['/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport','-I'], stdout=subprocess.PIPE)
out, err = process.communicate()
process.wait()
print(out)
'''
@nikhilkumarsingh
nikhilkumarsingh / real_time.ipynb
Created August 19, 2018 20:04
Plotting real time data using Python
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sundowndev
sundowndev / GoogleDorking.md
Last active February 2, 2026 05:53
Google dork cheatsheet

Google dork cheatsheet

Search filters

Filter Description Example
allintext Searches for occurrences of all the keywords given. allintext:"keyword"
intext Searches for the occurrences of keywords all at once or one at a time. intext:"keyword"
inurl Searches for a URL matching one of the keywords. inurl:"keyword"
allinurl Searches for a URL matching all the keywords in the query. allinurl:"keyword"
intitle Searches for occurrences of keywords in title all or one. intitle:"keyword"
@insightsbees
insightsbees / sidebar.py
Last active January 27, 2023 05:04
Import libraries and add widgets to sidebar
import streamlit as st
import pandas as pd
import numpy as np
import networkx as nx
import plotly.graph_objs as go
from PIL import Image
#Add a logo (optional) in the sidebar
logo = Image.open(r'C:\Users\13525\Desktop\Insights_Bees_logo.png')
st.sidebar.image(logo, width=120)
@insightsbees
insightsbees / networkx.py
Created September 1, 2022 20:21
Create network graph using networkx
#Create the network graph using networkx
if uploaded_file is not None:
df=pd.read_csv(uploaded_file)
A = list(df["Source"].unique())
B = list(df["Target"].unique())
node_list = set(A+B)
G = nx.Graph() #Use the Graph API to create an empty network graph object
#Add nodes and edges to the graph object
for i in node_list:
@insightsbees
insightsbees / plotly_network.py
Created September 1, 2022 20:33
Use Plotly to visualize the network graph
#Use plotly to visualize the network graph created using NetworkX
#Adding edges to plotly scatter plot and specify mode='lines'
edge_trace = go.Scatter(
x=[],
y=[],
line=dict(width=1,color='#888'),
hoverinfo='none',
mode='lines')
for edge in G.edges():
@camullen
camullen / installation.md
Created December 10, 2022 23:52
KDE Install on WSL2
@psychemedia
psychemedia / GPT4all-langchain-demo.ipynb
Last active December 21, 2023 17:30
Example of running GPT4all local LLM via langchain in a Jupyter notebook (Python)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import openai
import streamlit as st
from streamlit_chat import message
from dotenv import load_dotenv
import os
from langchain.embeddings.openai import OpenAIEmbeddings
from langchain.vectorstores import Chroma
import openai
from langchain.document_loaders import UnstructuredMarkdownLoader
from langchain.chains.question_answering import load_qa_chain