- 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\" }"
public static function check($checking_key, $data) { | |
try { | |
serialize($data); | |
} | |
catch (\Throwable $e) { | |
// The data fucked up. Go into it to see where. | |
ddm("CATCH $checking_key"); | |
if (is_array($data)) { | |
foreach ($data as $key => $val) { | |
static::check($key, $val); |
Moved to https://api.fmhy.net
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