Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Alessandra Bilardi bilardi

🏠
Working from home
View GitHub Profile
@bilardi
bilardi / when-the-mysql-monitoring-is-not-enabled
Created Jul 6, 2020
When the MySQL monitoring is not enabled
View when-the-mysql-monitoring-is-not-enabled
# do you have cpu utilization 100% and don't you have any logging and don't you know that MySQL instance?
For understanding who is connected, what queries they have executed and how long queries are running
* check the client connections
* and check the queries are running for a long time
The system works fine for months and only now there is a problem?
* check the last changes with the developers
* and check the size of datadir or run these queries
```
@bilardi
bilardi / how-to-changing-email-addresses-globally
Last active Jan 16, 2021
How to changing email addresses globally
View how-to-changing-email-addresses-globally
## If you want to use different git configuration
I use different email for my personal project and my work, so I use to set up user and email into .git/config
```
git config user.name "Alessandra Bilardi"
git config user.email "your@email.ext"
```
And when I forget..
## If you want to change email or author name in the last commit
```
@bilardi
bilardi / how-to-develop-with-serverless-and-aws-on-docker
Last active Dec 5, 2019
How to develop with serverless and AWS on docker
View how-to-develop-with-serverless-and-aws-on-docker
# Develop with the Serverless Framework and AWS on a Docker container
Don't you want to download all dependencies on your client? Use a docker container!
You can develop on your client and a *Dockerfile* with all dependencies that you need for your code.
Below you can find the steps for creating your work environment and an example of a *Dockerfile*.
## Usage
Build the docker image
```
View windows-cli
cd C:\Users\$env:UserName\Code
start notepad .\00-local.sh
more .\00-local.sh
copy .\00-local.sh .\00-local.bat
md bat
move .\00-local.bat .\bat\
View how-to-update-a-fork
# Clone your fork
```
$ git clone https://github.com/your-username/your-repository-name.git
```
# Create a remote upstream with the original repository
```
$ cd your-repository-name
$ git remote add upstream git://github.com/original-username/repository-name-forked.git
```
@bilardi
bilardi / how-to-convert-site-to-jekyll
Last active Sep 3, 2021
how to convert site to jekyll without install jekyll
View how-to-convert-site-to-jekyll
# Convert an HTML site to Jekyll
When your site is already a static web site, is simple:
- you can download your site by https://github.com/bilardi/siteclone
- you can follow the guide on https://jekyllrb.com/tutorials/convert-site-to-jekyll/
## If you don't want to install jekyll on your client
I prefer to install only what is necessary on my client, so I use docker for everything else.
In this case, I add the docker-compose.yml file on the git repository and I use it with:
```