var jqry = document.createElement('script');
jqry.src = "https://code.jquery.com/jquery-3.7.0.min.js";
document.getElementsByTagName('head')[0].appendChild(jqry);
// jQuery.noConflict();
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
https://www.simplilearn.com/tutorials/docker-tutorial/how-to-install-docker-on-ubuntu#steps_for_installing_docker_on_ubuntu |
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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Ts-Node Debug", | |
"type": "node", | |
"request": "launch", | |
"runtimeExecutable": "node", | |
"runtimeArgs": ["-r", "ts-node/register"], |
We can now add a user to handle the exporting of our metrics.
-r
This user will be a system user (-r)-s
/bin/false who will be unable to get a shell (-s /bin/false)
sudo useradd -rs /bin/false node_exporter
- Go to contract WETH
- Use contract call to mint some token (with 18 decimals)
create user dbuser with encrypted password '<your_pwd>';
grant all privileges on database yourdb to dbuser;
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
How I cleanup about 150 Gb storage of my macbook. | |
- Currently, I used mac book that have 256Gb SSD. On an beautiful day, I opened the Storage check, and see that I only have 30Gb left. That's quite shocking. This is my working laptop, shouldn't have any thing that too heavily effect on volumn. | |
After some check I found that 2 big monster that eaten my volume: | |
- Docker: When you used docker, after a while, you would have tons of images, containers, volume, those things are very big on size. So, I use `prune` to clean up all my obsoleted images, containers, volumes. | |
- The Cache: The mother of monster is here: `/Users/<your_username>/Library/Caches/`. So, I run: `rm -rf /Users/taynguyen/Library/Caches/`, it takes about 15mins to completed. | |
Boom, I recovered about 140Gb of my SSD. | |
What's fun thing. :D |
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
https://devopscube.com/mount-ebs-volume-ec2-instance/ |
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
``` | |
server { | |
server_name taynguyen.dev; | |
location / { | |
proxy_pass http://127.0.0.1:8080; | |
} | |
} |
NewerOlder