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/local/bin/python | |
import os | |
import subprocess | |
import yaml | |
import re | |
import datetime | |
alert_to_be_deleted = {} |
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
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 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 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 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 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 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 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://digitz.org/blog/install-gui-ubuntu-server/ | |
http://en.ig.ma/notebook/2012/virtualbox-guest-additions-on-ubuntu-server | |
https://linuxconfig.org/how-to-install-gui-desktop-environment-on-ubuntu-linux-14-04-lts-trusty-thar | |
# Install lxde in server | |
sudo apt-get install --no-install-recommends lxde lxdm -y | |
# Install virtualbox_guest_edition | |
# Install necessary build tools and build dependencies: | |
sudo apt-get install -y dkms xorg build-essential linux-headers-generic |
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
https://bbs.archlinux.org/viewtopic.php?id=148038 | |
https://www.youtube.com/watch?v=mHX9UIll014 | |
###################################################### | |
######### Arch Linux Installation #################### | |
###################################################### |
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
# script for setting up pip and virtualenv on Ubuntu 16.04 | |
# Details can be found below | |
#!/usr/bin/env bash | |
sudo apt-get install virtualenv python3-pip -y | |
pip3 install --upgrade pip | |
# Installs virtualenvwrapper in ~/.local/bin/ | |
sudo pip3 install --user virtualenvwrapper |
NewerOlder