- Open the command line (Start > Run > cmd).
- Enter
nslookup -type=txt
followed by a space and a domain or hostname, for example,nslookup -type=txt google.com
. - If an SPF record exists, the result will be something like this:
v=spf1 include:_spf.google.com ~all
. - If there are no results or no
v=spf1
, then there is a problem getting the record for the domain, or it doesnβt exist.
from datetime import datetime | |
from dateutil import relativedelta | |
# Assign your birth date and average life expectancy | |
birth_date = input("Enter your birth date (YYYY-MM-DD): ") | |
birth = datetime.strptime(birth_date, "%Y-%m-%d") | |
avg_life = 72 | |
current = datetime.now() |
#!/usr/bin/env python3 | |
# deps: zbar-tools, oathtool | |
# | |
# call it as toptp-token.py <qrimage-filename> | |
# | |
# 1. decodes the qrcode image via zbar-img | |
# 2. parses totp url and extracts parameters (secret, stepping, algo, ...) | |
# 3. calls oathtool to generate the current token | |
import subprocess |
Discord is now slowly rolling out the ability to send colored messages within code blocks. It uses the ANSI color codes, so if you've tried to print colored text in your terminal or console with Python or other languages then it will be easy for you.
To be able to send a colored text, you need to use the ansi
language for your code block and provide a prefix of this format before writing your text:
\u001b[{format};{color}m
Follow these steps below to enable multiple SSH keys on your device with UNIX Based OS (MacOS/ Ubuntu/ Debian etc.). Suppose, you have two different users/ accounts, one is personalAccount
and another is companyAccount
. And you have already a default key configured with personalAccount
. (If you haven't set up your default ssh-key yet, please follow this article before going ahead with these steps described below.)
Generate a new ssh-key for your companyAccount
.
cd ~/.ssh
ssh-keygen -t rsa -C "[email protected]"
A brief example on how to use npx
to run gist based scripts.
Read the article here https://neutrondev.com/npm-vs-npx-whats-the-difference/ or watch it on YouTube https://www.youtube.com/watch?v=fSHWc8RTJug
I created a crude comparison of the syntax of the various common Markdown extensions to have a better view on what are the most common extensions and what is the most widely accepted syntax for them. The list of Markdown flavors that I looked at was based on the list found on CommonMark's GitHub Wiki.
Flavor | Superscript | Subscript | Deletion* Strikethrough |
Insertion* | Highlight* | Footnote | Task list | Table | Abbr | Deflist | Smart typo | TOC | Math | Math Block | Mermaid |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
GFM |
#!/usr/bin/env python | |
# -*- coding:utf-8 -*- | |
# Nginx - Remote Integer Overflow Vulnerability | |
# CVE-2017-7529 | |
import sys | |
import logging | |
import argparse |
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" |