Skip to content

Instantly share code, notes, and snippets.

@beeyev
beeyev / docker-unlock.md
Last active June 7, 2024 19:07
Прокси сервер для registry-1.docker.io - hub.docker.com / Обход блокировки Docker Registry - зеркало Docker Hub

UPD: 2024-06-03, Docker HUB разблокрирван в росссии, инструкация и данные в ней потеряли актуальность.

Этот прокси можно использовать, если вы получаете ошибку

Error response from daemon: pull access denied for nginx, repository does not exist or may 
require 'docker login': denied: 403 Forbidden Since Docker is a US company, 
we must comply with US export control regulations. In an effort to comply with these, we now block 
all IP addresses that are located in Cuba, Iran, North Korea, Republic of Crimea, Sudan, and Syria. 
If you are not in one of these cities, countries, or regions and are blocked, 
@beeyev
beeyev / BashPromptsCollection.md
Created December 18, 2023 12:26
Bash Prompts

Docker:

PS1='\[\e[38;5;172m\]\u\[\e[0m\]@\[\e[38;5;39m\]FPM🐋\[\e[0m\]:\[\e[38;5;250m\]\w\[\e[0m\]\$ '
@beeyev
beeyev / starship.toml
Last active May 18, 2023 19:16
starship config
# ~/.config/starship.toml
# Get editor completions based on the config schema
"$schema" = 'https://starship.rs/config-schema.json'
# Inserts a blank line between shell prompts
add_newline = true
[directory]
truncation_length = 8
truncation_symbol = '…/'
@beeyev
beeyev / .php-cs-fixer.dist.php
Last active December 7, 2023 08:55
PHP-CS-FIXER rules
<?php
/*
* https://gist.github.com/beeyev/84926af741cdb3ffb099de03a454dbff
*/
$config = new PhpCsFixer\Config();
return $config
->setRiskyAllowed(true)
/* @see https://github.com/kubawerlos/php-cs-fixer-custom-fixers */
->registerCustomFixers(new PhpCsFixerCustomFixers\Fixers())
@beeyev
beeyev / gist:b31362da4a24154b506d7e569ee64531
Last active September 1, 2022 06:28
Ublock origin must have custom sources
https://gitlab.com/magnolia1234/bypass-paywalls-clean-filters/-/raw/main/bpc-paywall-filter.txt
https://easylist-downloads.adblockplus.org/bitblock.txt
https://easylist-downloads.adblockplus.org/cntblock.txt
[wsl2]
memory=16GB
swap=10GB
processors=2
guiApplications=false
@beeyev
beeyev / .editorconfig
Last active October 2, 2023 09:41
editorconfig best practice
# EditorConfig
# https://gist.github.com/beeyev/da5a065d01a506d0b3d42e794f7aadf9
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
charset = utf-8
end_of_line = lf
@beeyev
beeyev / orange-pi-zero-DS18B20-bme280.txt
Last active February 23, 2020 19:32
Orange Pi Zero DS18B20 and I2C bme280
# https://blog.ja-ke.tech/2019/01/21/DS18B20-armbian.html !!
# http://blog.regimov.net/orange-pi-lite2-1-wire/
# http://oleg.milantiev.com/2019/01/27/orangepi-bmp280-weather-sensor/
apt-get install mc htop nano curl wget git python3-pip i2c-tools python3-setuptools
dpkg-reconfigure tzdata
git clone https://github.com/xpertsavenue/WiringOP-Zero.git
cd WiringOP-Zero
chmod +x ./build
@beeyev
beeyev / gist:ce0f77a7b7c7f499a0e94e89cb0977c0
Created February 21, 2019 16:02
ESXI install upgrade maintenance
How to move
mkdir /vmfs/volumes/destination_datastore/SomeVM
vmkfstools -i /vmfs/volumes/source_datastore/SomeVM/SomeVM.vmdk /vmfs/volumes/destination_datastore/SomeVM/SomeVM.vmdk -d thin
Copy any remaining files (avoiding overwriting the .vmdk files)
find /vmfs/volumes/source_datastore/SomeVM -maxdepth 1 -type f -print0 | grep -v ".vmdk" | while read file; do cp "$file" /vmfs/volumes/destination_datastore/SomeVM; done
If the VM boots up fine, you can remove the VM from the old datastore.
rm -rf "/vmfs/volumes/source_datastore/Some VM"
@beeyev
beeyev / tweaks-win10.reg
Last active June 28, 2023 12:31
Windows 10 must have registry tweaks 2018
Windows Registry Editor Version 5.00
;Remove 'Give access to' Context Menu in Windows 10
[-HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers\Sharing]
[-HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers\ModernSharing]
[-HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenuHandlers\Sharing]
[-HKEY_CLASSES_ROOT\Directory\shellex\ContextMenuHandlers\Sharing]
[-HKEY_CLASSES_ROOT\Directory\shellex\CopyHookHandlers\Sharing]
[-HKEY_CLASSES_ROOT\Directory\shellex\PropertySheetHandlers\Sharing]
[-HKEY_CLASSES_ROOT\Drive\shellex\ContextMenuHandlers\Sharing]