This file contains 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
#/usr/bin/bash | |
# strings to look for in our file | |
# Note: you could just parse the whole file. But if you put in a bad password your IP | |
# could end up on the bad guy list | |
declare -a badstrings=("Failed password for invalid user" | |
"input_userauth_request: invalid user" | |
"pam_unix(sshd:auth): check pass; user unknown" | |
"input_userauth_request: invalid user" | |
"does not map back to the address" | |
"pam_unix(sshd:auth): authentication failure" |
This file contains 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 unittest | |
""" | |
This is a function to extract numbers from the string. | |
It is implemented in my main script that reads the entire input file and runs | |
this function against each line. | |
""" | |
from [YOURSCRIPT] import extract_numbers | |
class TestExtract(unittest.TestCase): |
This file contains 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
CREATE TABLE [state]( | |
[stateID] [int] IDENTITY(1,1) NOT NULL, | |
[stateCode] [nchar](2) NOT NULL, | |
[stateName] [nvarchar](128) NOT NULL, | |
CONSTRAINT [PK_state] PRIMARY KEY CLUSTERED | |
( [stateID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]) | |
ON [PRIMARY] |
This file contains 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
export OPENCV_DOWNLOAD_PATH=/tmp/opencv-cache | |
cmake -D CMAKE_C_COMPILER=/usr/bin/clang-15 -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D CMAKE_PREFIX_PATH=/usr/lib -D OPENCV_EXTRA_MODULES_PATH=../opencv_contrib/modules -D WITH_CUDA=ON -D CUDA_ARCH_BIN=8.9 -D ARCH=sm_89 -D gencode=arch=compute_89,code=sm_89 -D ENABLE_FAST_MATH=ON -D CUDA_FAST_MATH=ON -D WITH_CUBLAS=ON -D WITH_CUFFT=ON -D WITH_NVCUVID=ON -D WITH_OPENMP=ON -D BUILD_EXAMPLES=ON -D BUILD_DOCS=OFF -D BUILD_PERF_TESTS=OFF -D BUILD_TESTS=OFF -D WITH_TBB=ON -D WITH_IPP=ON -D WITH_NVCUVID=ON -D WITH_CSTRIPES=ON -D WITH_OPENCL=ON -D WITH_FFMPEG=ON -D BUILD_opencv_apps=ON -D OPENCV_DOWNLOAD_PATH=/tmp/opencv-cache -D WITH_PNG=ON -D WITH_JPEG=ON -D WITH_WEBP=ON -D WITH_V4L=ON -D WITH_GTK=ON -D WITH_QT=ON -D WITH_GPHOTO2=ON -D WITH_GSTREAMER=ON -D WITH_PROTOBUF=ON -D OPENCV_DNN_CUDA=ON -D CMAKE_PREFIX_PATH=/usr/lib -D CMAKE_CXX_FLAGS="-Ofast" ../opencv |
This file contains 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
Jeremy: Who is the better superhero? Batman or Ironman? | |
ChatGPT: As an AI language model, I do not have personal opinions or preferences. However, I can provide you with a comparison between Batman and Iron Man to help you decide for yourself. | |
Batman, also known as Bruce Wayne, is a DC Comics superhero created by artist Bob Kane and writer Bill Finger in 1939. Batman is a highly skilled martial artist and detective, utilizing his intellect, technology, and wealth to fight crime in Gotham City. He does not possess any superhuman abilities but relies on his physical prowess, gadgets, and vehicles. Batman's motivation stems from witnessing the murder of his parents, which drives him to protect innocent people and bring justice to criminals. | |
Iron Man, or Tony Stark, is a Marvel Comics superhero created by writer Stan Lee, artist Don Heck, and scripter Larry Lieber in 1963. Tony Stark is a billionaire inventor, engineer, and philanthropist who created the Iron Man suit to save his own life after being injured a |
This file contains 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
#politics | |
#election | |
#government | |
#policy | |
#vote | |
#democracy | |
#republican | |
#democrat | |
#conservative | |
#liberal |
This file contains 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 may be runnable as a script, but keep in mind -y is not always acknowledged. | |
# These are the drop dead basics | |
pkg -y install vim | |
pkg -y install git | |
pkg -y install chromium | |
pkg -y install gimp | |
pkg -y install sudo | |
# Install Rust |
This file contains 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
package main | |
import ( | |
"fmt"; | |
) | |
func loopit(phrase string, repeat int)(string){ | |
var outputphrase string = ""; |
This file contains 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
<meta itemprop="name" content="[ TITLE ]" /> | |
<meta itemprop="image" content="[ LISTING IMAGE ]" /> | |
<meta itemprop="description" content="[ ARTICLE DESCRIPTION ]" /> | |
<meta name="description" content="[ ARTICLE DESCRIPTION ]" /> | |
<meta name="author" content="[ AUTHOR FULL NAME ]" /> | |
<meta property="article:author" content="[ GOOGLE+ AUTHOR URL ]" /> | |
<meta property="article:published_time" content="[ PUBLISHED TIMESTAMP ]" /> | |
<meta property="article:section" content="[ CATEGORY ]" /> |
This file contains 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
#!/bin/bash | |
sudo apt update | |
### Visual Studio Code | |
sudo apt install wget | |
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg | |
sudo install -o root -g root -m 644 packages.microsoft.gpg /etc/apt/trusted.gpg.d/ |
NewerOlder