Skip to content

Instantly share code, notes, and snippets.

@omri374
omri374 / spacy_preprocessor.py
Created May 13, 2020 10:39
Text preprocessing using spaCy
import re
from typing import List
import spacy
from spacy.tokens import Doc
from tqdm import tqdm
class SpacyPreprocessor:
def __init__(
@johnnypea
johnnypea / useful-one-liners.sh
Last active October 24, 2025 11:36
Useful one liners
# Run the last command as root
sudo !!
# Serve current directory tree at http://$HOSTNAME:8000/
python -m SimpleHTTPServer
# Save a file you edited in vim without the needed permissions
:w !sudo tee %
# change to the previous working directory
cd -
# Runs previous command but replacing
^foo^bar
@w00tc
w00tc / 1) Active Directory One Liners
Last active August 19, 2024 22:56
Some Pentesting Notes
Retrieves all of the trust relationships for this domain - Does not Grab Forest Trusts
([System.DirectoryServices.ActiveDirectory.Domain]::GetCurrentDomain()).GetAllTrustRelationships()
Grab Forest Trusts.
([System.DirectoryServices.ActiveDirectory.Forest]::GetCurrentForest()).GetAllTrustRelationships()
@amitbisht511
amitbisht511 / setup.py
Last active November 20, 2020 14:06
Python Script to write and move cursor around open some tab in browser and write some files
import pyautogui
import time
import webbrowser
import random
import os
import urllib.request as urllib
import sys
# this determine how much time it will take to end this script
links = [
@sai-prasanna
sai-prasanna / install.sh
Last active April 10, 2020 23:14
Reverse Engineer SpaCy Patterns - Pattern Matching
pip install git+https://github.com/sai-prasanna/spacy-pattern-builder.git
pip install streamlit
python -m spacy download en # Or any other model you wish to use.
streamlit run streamlit_pattern_builder.py
@AO8
AO8 / sentiment_analyzer.py
Created October 30, 2019 20:05
This tiny Python app, powered by TextBlob, quickly measures the polarity and subjectiviy of a piece of text.
# This Python program quickly measures the polarity and subjectivity of a piece of text.
from time import sleep
from textblob import TextBlob
def print_header():
print("*"*67)
print("PYTHON SENTIMENT TESTER (Powered by TextBlob)")
print()
print("POLARITY:")
@Plazmaz
Plazmaz / annotated-vbs-dropper.vbs
Last active January 2, 2021 09:37
Annotate/formatted VBS malware dropper. Don't execute this unless you know what you're doing (duh!)
' If these checks fail, this dropper will die in a recursive loop
' Checks if files exist in tmp
SKXSwgvzc
' Checks RAM >= 1024
uOCNREVZV
' Checks for debuggers, AVs, dev tools, and sniffing tools. Fails if any are present.
MHtrCHZpL
' Checks CPU cores >= 3
XWKtvlOt
' Checks disk space >= 60 GB
@ines
ines / Install
Last active September 21, 2023 17:14
Streamlit + spaCy
pip install streamlit
pip install spacy
python -m spacy download en_core_web_sm
python -m spacy download en_core_web_md
python -m spacy download de_core_news_sm
@mdossett204
mdossett204 / polarity_score_class.py
Last active November 18, 2020 05:27
polarity_score
# import libraries
import nltk
import string
from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer
from textblob.wordnet import VERB
from textblob import Word
from textblob.sentiments import NaiveBayesAnalyzer
from textblob import TextBlob
from nltk.corpus import stopwords
@sundowndev
sundowndev / GoogleDorking.md
Last active October 25, 2025 07:57
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"