Posts

Showing posts from August, 2024

WSL IP Address and vise versa

WSL IP Address and vise versa WSL IP:  wsl -d <DistributionName> hostname -I Windows IP from WSL: ip route show | grep -i default | awk '{ print $3}' additional useful docs here:   https://learn.microsoft.com/en-us/windows/wsl/networking if you have backend service on your windows side for example Apache server with many virtual hosts and you want to address it from WSL just refer to it on your WSL side just as localhost (without naming the virtual host name or its 127.0.0.x address) , windows will make the rest and you will get access to your windows backend

Схема проезда 59, 60 61 автобусов, Киев

31 августа с платформы «Троещина» в 2 км от жилмассива поедет городская электричка на Петровку - 22 Августа 2009 - Kolizey Shopping, Киев: "Отправлено через панель инструментов Google:" 59, 61 автобуси

Time Is the Enemy, Quantic (music from spotify)

Time Is the Enemy, Quantic

Is json_decode() dangerous?

Image
Is json_decode() dangerous? The line of PHP code $response_decoded = json_decode($response); itself isn't inherently dangerous, but the context in which it is used can determine whether it poses security risks. Potential Risks: Untrusted Input : If $response contains data from an untrusted or user-controlled source (like an API response or user input), there could be risks associated with deserializing malicious JSON data. Error Handling : If the JSON string is malformed, json_decode will return null . If this isn't handled properly, it could lead to unintended behavior in your application. Data Injection : Maliciously crafted JSON could potentially be used to inject unwanted data or exploit vulnerabilities in the application, especially if the decoded data is used directly in further processing without proper validation or sanitization. Recommendations: Validate Input : Always validate and sani

Happinezz (feat. Ginger) [Edit]

Image

Hiding some changings from git without .gitIgnore

Image
Hiding some changings from git without .gitIgnore Here is the link from this guy with full description, thanks to him 👏, he saved my day! ✨💖 https://henrebotha.github.io/2017/08/30/hiding-local-file-changes-from-git.html#:~:text=Tips&text=Then%20you%20can%20do%20ghide,forgotten%20about%20a%20hidden%20file. If you plan on using these, I recommend you add some aliases to your .zshrc/.bashrc file: alias ghide = 'git update-index --skip-worktree' alias gunhide = 'git update-index --no-skip-worktree' alias ghidden = 'git ls-files -v . | grep ^S' Then you can do ghide path/to/file to hide, gunhide path/to/file to unhide, and ghidden to list all hidden files. some helpful links:  https://automationpanda.com/2018/09/19/ignoring-files-with-git/