Posts

Showing posts from 2024

Remote admin, RDP, VNC alternative Apache Guacamole

Image
 Apache Guacamole is a clientless remote desktop gateway. Perks: it supports standard protocols like VNC, RDP, and SSH. no plugins or client software are required. only a web browser needed fully html5 https://guacamole.apache.org/

Create Screenshot of an scrollable iframe (repost)

 https://www.ask-sheldon.com/screenshot-scrollable-iframe/

Ping command statistics hot key for windows without interruption command run

Ping command statistics hotkey for windows without interruption command run CTRL+Break/pause or CTRL+B (CTRL+Fn +B)

7 Japanese concepts

 7 Japanese concepts View this post on Instagram A post shared by F A R U T A (@faruta.kimono)

What to do if the input element outline css property doesn't fit form element

What to do if the input element outline css property doesn't fit form element add to your css class definition next property:   outline-offset : inherit ;

If your public key is not working from .env variable file (frontend)

If your public key is not working from .env variable file It depends from your framework  you should prepend your variable in the code with prefix : for example for the NextJS frontend  part it is NEXT_PUBLIC_ for other React based frontend frameworks it could be  REACT_APP_

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/

Git - moving commits from one project to another using patches

Do this in the source project (you want to move): git format-patch <hash_fist_commit> HEAD -o <folder_where_all_pathces_will_be_saved> Do this in the destination project (which you want new changes should appear): <folder_where_new_changes_should_appear>  -->      - ->  it can be the folder with another project in the monorepo project structure git am --directory= <folder_where_new_changes_should_appear>  --commit  <folder_with_patches>/<patch_file .patch > Attention : If you had errors like file still in index or file still in working tree your steps are: git rm --cached <file_name> rm <file_name> P.S.: before doing any manipulations like I described, you should make a back_up_copy of your repository. Author doesn't take any responsibility for your repo damage. Happy coding🤗

Web based instances of VSCode

Web-based instances of VSCode github.dev vscode.dev Github codespaces

ДЛЯ ПОДКЛЮЧЕНИЯ К ИНТЕНЕТУ ПО Bluetooth ЧЕРЕЗ МОБИЛУ в ASUS A696 WM6

ДЛЯ ПОДКЛЮЧЕНИЯ К ИНТЕНЕТУ ПО Bluetooth ЧЕРЕЗ МОБИЛУ в ASUS A696 WM6 Поборол отсутствие поля строки инициализации!!!  Думаю кому-то это пригодится, наверняка не только у меня такой прикол)) Берем любой редактор реестра и заходим в раздел HKLM\Drivers\Unimodem\Init там уже присутствуют: 1 - AT 2 - ATE0V1&C1&D2 создаём строковый параметр c именем в данном случае 3 и значением AT+CGDCONT=1,"ip","ваша точка доступа GPRS" после этого в подключениях обычным способом создать подключение через Bluetooth Dialup Modem и номером *99#, потом звоним как обычно.