$ apt update
$ apt search awscli
$ apt install curl wget unzip -y
$ curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
$ unzip awscliv2.zip
$ ./aws/install
$ aws --version
aws-cli/2.1.28 Python/3.8.8 Linux/4.19.121-linuxkit exe/x86_64.ubuntu.20 prompt/off
AddOn:
- Go to about:support in your address bar
- Look for your profiles directory and open it:
- Create a file named
chrome/userChrome.css
in your profile directory:
Create the file with the environment variables:
$ cat envs.txt
HOSTNAME=app.domain.com
PASSWORD=foobar
Create the config map:
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
#!/bin/bash | |
# variables | |
LOGFILE="/var/log/nginx/access.log" | |
LOGFILE_GZ="/var/log/nginx/access.log.*" | |
RESPONSE_CODE="200" | |
# functions | |
filters(){ | |
grep $RESPONSE_CODE \ |
Inspired By: grafana/loki#333
- docker-compose.yml
version: "3"
networks:
loki:
My Elasticsearch cheatsheet with example usage via rest api (still a work-in-progress)
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
#!/bin/bash | |
set -ex | |
UBUNTU_VERSION="14.04" | |
mkdirs(){ | |
#lxc delete hadoop-master --force | |
#lxc delete hadoop-slave-1 --force | |
#lxc delete hadoop-slave-2 --force | |
rm -rf /tmp/* |
Start Minio:
docker run --rm --name minio --rm -it -p 9000:9000 minio/minio server /data
> output will display here
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
log-queries | |
log-facility=/var/log/dnsmasq.log | |
no-resolv | |
server=8.8.4.4 | |
server=8.8.8.8 | |
address=/router/10.1.1.1 | |
address=/server/10.1.1.2 |
NewerOlder