Add path to .bash_profile
export PATH="/usr/local/mysql/bin:$PATH"
You need to Change password before it starts
$ login - mysql -u root -p
<html> | |
<head> | |
<style> | |
.paylease-widget { | |
background: #fff; | |
direction: rtl; | |
border: 4px solid transparent; | |
border-radius: 5px; | |
box-shadow: 0px 6px 23px -6px rgb(0 0 0 / 75%); |
def limit_5(): | |
remaining = 5 | |
def hello(name): | |
nonlocal remaining | |
if remaining <= 0: | |
raise TypeError("No more runs left!") | |
else: | |
remaining -= 1 | |
return f"Hello, {name}" | |
return hello |
# Run this first | |
USE INFORMATION_SCHEMA; | |
# Check the transactions section in: | |
SHOW ENGINE INNODB STATUS; | |
# To check about all the locks transactions are waiting for: | |
SELECT * FROM INNODB_LOCK_WAITS; | |
# A list of blocking transactions: |
#!/bin/bash | |
export PATH=/usr/local/bin:$PATH | |
export AWS_ACCESS_KEY_ID=XXXXXX | |
export AWS_SECRET_ACCESS_KEY=XXXXXX | |
export AWS_DEFAULT_REGION=us-west-2 | |
URL=$(aws sagemaker create-presigned-notebook-instance-url --notebook-instance-name <NODEBOOK_NAME> | grep AuthorizedUrl | head -1 | awk -F:\ \" '{ print $2 }' | sed 's/[",]//g') | |
open $URL |
List all processes including the name firefox
pgrep -f firefox
Kill all processes including the name firefox
pkill -f firefox
Load test using ab
The docker system prune command will remove all stopped containers, all dangling images and all unused networks sudo docker system prune
docker rm -f CONTAINER_ID
kubectl exec -it airflow-scheduler-86cb5dbc4f-cgrtd - /bin/bash |