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
List user: | |
SELECT user, host FROM mysql.user; | |
Delete user: | |
DROP USER 'USER'@'host'; | |
Create user: | |
CREATE USER 'USER'@'10.%' IDENTIFIED BY 'PASSWORD' ; | |
GRANT SELECT ON *.* TO 'USER'@'host' ; | |
flush privileges; |
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 manifest deploys the OpenEBS control plane components, with associated CRs & RBAC rules | |
# NOTE: On GKE, deploy the openebs-operator.yaml in admin context | |
# Create the OpenEBS namespace | |
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: openebs | |
--- | |
# Create Maya Service Account |
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
source: | |
Docker API V2: https://docs.docker.com/registry/spec/api/ | |
Artifactory docker registry commands: https://www.jfrog.com/confluence/display/RTF/Docker+Registry | |
REGISTRY_NAME=https://my-docker-registry.com |
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
aws-cli: | |
========== | |
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: aws-cli | |
labels: | |
name: aws-cli | |
annotations: | |
iam.amazonaws.com/role: $IAM_ROLE |
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
Update ~/.profile file as below | |
# change monitor resolution to 21:9 | |
RESOLUTION_MODE="2560x1080-60.00" | |
CURRENT_MODE=$(xrandr --current | grep "\*" | awk '{print $1}') | |
if [ "${CURRENT_MODE}" != "${RESOLUTION_MODE}" ]; then | |
xrandr --newmode "2560x1080-60.00" 230.76 2560 2728 3000 3440 1080 1081 1084 1118 -HSync +Vsync | |
xrandr --addmode HDMI-2 "2560x1080-60.00" | |
fi |
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
Source: https://opensource.com/article/18/10/introduction-tcpdump | |
# Install tcpdump | |
sudo apt install -y tcpdump | |
# Check available interfaces | |
sudo tcpdump -D | |
# Capture packets for all interfaces | |
sudo tcpdump -i any | |
sudo tcpdump -i eth0 |
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
#!/usr/local/bin/python | |
import os | |
import subprocess | |
import yaml | |
import re | |
import datetime | |
alert_to_be_deleted = {} |
OlderNewer