| 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" |
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
| import re | |
| from typing import List | |
| import spacy | |
| from spacy.tokens import Doc | |
| from tqdm import tqdm | |
| class SpacyPreprocessor: | |
| def __init__( |
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
| # 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 |
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
| 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() | |
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
| 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 = [ |
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 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 |
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
| # 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:") |
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
| ' 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 |
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 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 |
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
| # 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 |
NewerOlder