yum install -y keepalived
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 tweepy | |
consumer_key = "" | |
consumer_secret = "" | |
access_token = "" | |
access_token_secret = "" | |
try: | |
auth = tweepy.OAuthHandler(consumer_key, consumer_secret) | |
auth.set_access_token(access_token, access_token_secret) |
dnf config-manager --add-repo http://developer.download.nvidia.com/compute/cuda/repos/rhel8/x86_64/cuda-rhel8.repo
dnf install -y cuda
cat <<EOF > /etc/profile.d/cuda.sh
export PATH=/usr/local/cuda/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
EOF
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
{ | |
"data-root": "/mnt/disk1/docker", | |
"storage-driver": "overlay2", | |
"insecure-registries" : [ | |
"192.168.1.200:5000" | |
], | |
"dns": [ | |
"192.168.1.1" | |
], | |
"registry-mirrors" : [ |
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/env bash | |
MONGO_URL="mongodb://192.168.1.100/" | |
BACKUP_PARENT_DIR="/tmp/mongo-backups" | |
BACKUP_DIR="mongobackup-`date +%Y-%m-%d-%H-%M-%S`" | |
BACKUP_COLLECTION_PARALLELISM="4" | |
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
dist | |
Configurations | |
Marlin | |
BIGTREETECH-TouchScreenFirmware |
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/env bash | |
PROFILE_NAME="$1" | |
CONFIG_FILE="$HOME/.gitconfig-$PROFILE_NAME" | |
function show_usage() { | |
echo "Usage:" | |
echo -e "\tset-git-config-profile.sh <profile-name> : Sets the profile for current directory" | |
echo -e "\tset-git-config-profile.sh -r : Unsets any profile for current directory" | |
} |
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 smtplib | |
from email.mime.multipart import MIMEMultipart | |
from email.mime.text import MIMEText | |
s = smtplib.SMTP(host="localhost", port=25) | |
# s.starttls() # Enable if your mail server uses TLS | |
# s.login("[email protected]", "mysupersecretpassword") # Enable if using user authentication |