- Create a file in
C:\bin\toast.ps1
from source https://gist.github.com/dend/5ae8a70678e3a35d02ecd39c12f99110:curl https://gist.githubusercontent.com/dend/5ae8a70678e3a35d02ecd39c12f99110/raw -o /mnt/c/bin/toast.ps1
- Create
~/.local/bin/notify-send
from the following source:like this:powershell.exe "& { . C:\\bin\\toast.ps1; Show-Notification -ToastTitle \"$1\" -ToastText \"$2\" }"
Below you can see the full work example for logstash.conf file
There are grok patterns for:
Nginx:
* access.log
* error.log
Tomcat:
* site.log
* localhost.log
- site_access_log.txt
#!/usr/bin/env bash | |
#: Your comments here. | |
set -o errexit | |
set -o nounset | |
set -o pipefail | |
work_dir=$(dirname "$(readlink --canonicalize-existing "${0}" 2> /dev/null)") | |
readonly conf_file="${work_dir}/script.conf" | |
readonly error_reading_conf_file=80 | |
readonly error_parsing_options=81 | |
readonly script_name="${0##*/}" |
This guide is for those who want to use their XPS 17 in dual boot with their (preinstalled) Windows 10 and a new Pop!_OS installation, without giving up Bitlocker Encryption in Windows nor LUKS encryption in Linux.
The only guides that I could find were for Ubuntu, which it should be identical to, but I found the ommission of a few steps to resolve issues that I encountered in my first install attempt. Hoping to save you some trouble, I am sharing the steps that worked for me, linking the original guides that I found useful.
- 1.1 Of course: Backup all your data! You always do this when people tell you to, right? Maybe this time better be safe than sorry.
- 1.2 Safely note your Bitlocker recovery key somewhere off your XPS. Where to find it
function Show-Notification { | |
[cmdletbinding()] | |
Param ( | |
[string] | |
$ToastTitle, | |
[string] | |
[parameter(ValueFromPipeline)] | |
$ToastText | |
) |
docker run --rm -it -v $PWD:/tmp debian:10-slim /bin/bash | |
# --rm : remove after exit | |
# -it : interactive TTY | |
# -v : mount folder : current folder to /tmp folder of the container | |
# debian:10-slim : docker image https://git.io/JJzfy | |
# /bin/bash : run bash in this container |
This document was created back in 2020 and might not be actual nowadays. It is not supported anymore, so use thise information at your own risk.
- Download WSL2 Kernel
- run
wsl --set-default-version 2
in windows command line, so that all future WSL machine will use WSL2.
Ansible Vault passwords and ansible_become_pass variable stored in pass https://www.passwordstore.org or gopass https://www.gopass.pw
Create encrypted password file with pass or gopass
pass insert ansible/test
or gopass insert ansible/test
Now you can access become password stored in ansible/test using lookup plugin passwordstore
version: '3' | |
services: | |
s1: | |
image: postgres:12 | |
container_name: ${prefix}_compose_anonymous | |
ports: | |
- $pg_port:5432 |
- A Pen is worth a thousand docs.
- Be the developer your linter thinks you are.
- How do you comfort a JavaScript bug? You console it!
- How would you React if I said I love Vue?
- If a groundhog inspects their Web Component, do they see their Shadow DOM?
- If you get tired, be like an AJAX request and REST.
- If you want to
flex
your skills and go off thegrid
, try coding a layout withfloat
. - Keep friends close and formatters closer.
- Keep the
<main>
thing the<main>
thing. - Knock knock! Race condition. Who's there?