Skip to content

Instantly share code, notes, and snippets.

View dmarov's full-sized avatar
:shipit:

Dmitry Marov dmarov

:shipit:
  • Russian Federation
View GitHub Profile
@dmarov
dmarov / DVR
Last active May 11, 2024 14:55
#!/usr/bin/zsh
for file in ./h265x/*(.);
do
echo $file;
newfile="${file%.*}.h265"
if [[ ! -a $newfile ]]; then
mv "${file%.*}.h265x" $newfile;
fi
@dmarov
dmarov / my-brand-colors.txt
Last active February 5, 2024 17:40
set of colors i like
0x151515 - dark background
0x9ed700 - bright green
0x1d99f3 - sky blue
0xfbb02d - orange orange
0xe0e0e0 - light grey
@dmarov
dmarov / dmarov-features-dev.json
Last active March 15, 2024 16:54
enabled development features for dmarov.github.io
{
}
@dmarov
dmarov / dmarov-features.json
Last active March 15, 2024 16:54
enabled features for dmarov.github.io
{
}
@dmarov
dmarov / alacritty.toml
Created January 3, 2024 08:02
Alacritty config
[colors.bright]
black = "0x7f8c8d"
blue = "0x3daee9"
cyan = "0x16a085"
green = "0x1cdc9a"
magenta = "0x8e44ad"
red = "0xc0392b"
white = "0xffffff"
yellow = "0xfdbc4b"
@dmarov
dmarov / arch-restore.sh
Last active October 28, 2023 16:38
Restore commands for arch linux
mount -o subvol=@ /dev/nvme1n1p2 /mnt
mount -o subvol=@home /dev/nvme1n1p2 /mnt/home
mount -o subvol=@var /dev/nvme1n1p2 /mnt/var
mount -o subvol=@tmp /dev/nvme1n1p2 /mnt/tmp
mount /dev/nvme1n1p1 /mnt/boot
arch-chroot /mnt
pacman -Syu grub efibootmgr os-prober
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB [--removable]
# mount windows efi
@dmarov
dmarov / .zprofile
Created September 27, 2023 16:33
.zprofile
export PATH=$PATH:~/bin
@dmarov
dmarov / switch-lang-v2.ahk
Last active September 24, 2023 16:26
switch-lang-v2.ahk
SetCapsLockState "AlwaysOff"
+CapsLock::CapsLock
CapsLock::
{
Send "{Ctrl down}{Shift down}{Shift up}{Ctrl up}"
return
}
CREATE USER 'yii_demo'@'%' IDENTIFIED BY 'yii_demo_passwd1234';
CREATE DATABASE yii_demo;
GRANT CREATE, ALTER, DROP, INSERT, UPDATE, DELETE, SELECT ON yii_demo.* TO 'yii_demo'@'%';
version: "3.7"
services:
ng:
build:
dockerfile: ./Dockerfile
context: .
args:
HOST_USER_ID: ${HOST_USER_ID:-1000}
HOST_GROUP_ID: ${HOST_GROUP_ID:-1000}
command: /bin/sh -c "npm install && ng serve --host=0.0.0.0 --configuration=en --disable-host-check"