Posts

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#, потом звоним как обычно.

Git tips, tricks and some explanations

Image
Git tips, tricks and some explanations Полезные встроенные графические инструменты (для винды): gitk - Графический просмотрщик для коммитов git gui - Чё-то наподобие среды для GIT (ну GUI есть гуй :-) Создаём Псевдонимы: $ git config --global alias. ch checkout $ git config --global alias. br branch $ git config --global alias. co commit $ git config --global alias. st status $ git config --global alias. visual '!gitk'  Пример использования: $ git st Чтобы создать ветку и сразу же перейти на неё, вы можете выполнить команду: $ git checkout -b имя_ветки Допустим, вы разобрались с проблемой  hotfix   и готовы объединить эту ветку и свой master . Чтобы сделать это, мы сольём ветку имя_ветки в ветку master . Всё, что вам нужно сделать, — перейти на ту ветку, в которую вы хотите слить свои изменения, и выполнить команду git merge : $ git checkout master (переход в master) $ git merge имя_ветки (сливание[объединение]) Вы можете удалить ветк...

Cleaning the Docker (Чистим докер или тотальная нехватка места на жестком диске)

Image
  Чистим докер или тотальная нехватка места на жестком диске Удаление образов, контейнеров и томов Docker Prune unused Docker objects How To Remove Docker Containers, Images, Volumes, and Networks для тех кто не любит много читать - рецептик: (Docker - How to cleanup (unused) resources Все операции по чистке докера должны быть обдуманными, автор не несет ответственности за Ваши потерянные данные в докер контейнерах )).

Linux tips and tricks for web-dev

Image
Linux tips and tricks for web-dev's show file/folders rights in drxr & 777 formats :     stat -c '%A %a %n' /<your_folder>/ monitor changing file :   tail -f -n 10 var/log/dev.log download big file with cURL :   curl --location 'https://<your_url>' \ --header 'Authorization: Token <token>' -o file.name curl response with the following redirects : curl -iL --max-redirs 1 http://example.com monitor folder recursively for changes : inotifywait -m -e create,delete -r /<your_folder>       6. removing all files in the folder except some needed                        in zsh :         setopt extended_glob         rm -rv -- ^(.git|.idea)(D) -r:   Recursively delete directories and their contents. -v : Display what is being deleted. -- :  Denotes the end of options to prevent issues with filenames...

Docker tips & tricks

Image
Docker tips & tricks 1. one-line command for build & run container at once      docker-compose up -d --build -d means in background (daemon)  2.  speedup docker builds 3.  Rebuild containers using docker compose when dockerfile changes           docker-compose up --force-recreate 4.   If I have a bad deploy this may help      docker-compose build --no-cache 5. R emove all images      docker-compose down --rmi ("local"|"all") 6. Automatically update services with file watch  in Docker Compose ( experimental,  Docker Desktop 4.24.0 said that this feature is now open for all )             docker-compos up --watch 7. Removing containers with the data ( be careful, you will lose all your data for the containers that are in docker-compose )     docker-compose down -v 8. Doker 3.5+: network section changes instead...

How to run Warhammer 40k Dawn of War on modern devices

Image
 How to run Warhammer 40k Dawn of War on modern devices SpaceMarine If you are having problems with launching your game. And you get an error saying that it cannot find a graphics card. You are most likely having problems with resolution. To solve this problem I've had to change one file in the Drivers folder in your game folder. Then head to spdx9_config.txt. Then head to this link  https://shootfirstthenjump.blogspot.com/2012/12/dawn-of-war-configuration-woes-and.html . And change the text in the file to the one on the post. After that, you will most likely be able to run the game and change the resolution to the desired in the game settings. P.S: If there is a GraphicsConfig.exe file in the game folder, do not run it after changing the contents of the spdx9_config.txt.

Ion

Image
  Ion Did you know that an ion is an atom or molecule that has a net electrical charge? This is because the charge of an electron is negative and is equal and opposite to the charge of a proton, which is positive. As a result, the net charge of an ion is not zero since its total number of electrons is different from its total number of protons. Cations are positively charged ions that have fewer electrons than protons, whereas anions are negatively charged ions that have more electrons than protons. Opposite electric charges attract each other by electrostatic force, so cations and anions readily form ionic compounds. Ions can be atomic or monatomic if they consist of only one atom, or molecular or polyatomic if they are made up of two or more atoms. In a fluid, such as gas or liquid, ion pairs are formed by spontaneous molecule collisions, where each generated pair consists of a free electron and a positive ion. Ions can also be created by chemical interactions, such as the dissol...

Amazing retro car exhibition in Mississauga, ON, Canada was held near the FoodBasic grocery shop

Image
Amazing retro car exhibition in Mississauga, ON, Canada was held near the FoodBasic grocery shop If you know the car make & model let me know please in the comments. Thank you in advance!