Skip to content

Instantly share code, notes, and snippets.

@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]
@beeyev
beeyev / gist:dec2fd77b45bee577452
Created April 10, 2015 12:47
Change pc name according to its MAC
SET NAME_PREFIX=PC
chcp 1251
@echo off
setlocal
Reg.exe query "HKU\S-1-5-19\Environment"
If Not %ERRORLEVEL% EQU 0 (
Cls & Echo Необходимо запустить файл с правами администратора!
Pause & Exit