Skip to content

Instantly share code, notes, and snippets.

@777777miSSU7777777
777777miSSU7777777 / txt
Created October 11, 2020 22:27
postgres_connection_string_example
User ID=root;Password=myPassword;Host=localhost;Port=5432;Database=myDataBase;Pooling=true;Min Pool Size=0;Max Pool Size=100;Connection Lifetime=0;
xrandr --output VGA-1 --scale 1x1
@777777miSSU7777777
777777miSSU7777777 / mp3_to_hls.sh
Last active October 9, 2025 04:23
Transcode mp3 to hls stream via ffmpeg.
ffmpeg \
-i audio_name.mp3 \
-vn -ac 2 -acodec aac \
-f segment -segment_format mpegts -segment_time 10 \
-segment_list audio_pl.m3u8 \
audio_segment%05d.ts
{
"editor.formatOnSave": true,
"go.formatTool": "goimports",
"go.lintTool":"golangci-lint",
"go.lintFlags": [
"--fast"
]
}
// Stop mysql server.
sudo systemctl stop mysql
// Run mysql server w/o privileges and networking.
sudo mysqld_safe --skip-grant-tables --skip-networking &
// If appears: "mysqld_safe Directory '/var/run/mysqld' for UNIX socket file don't exists", then run following commands:
sudo mkdir -p /var/run/mysqld
sudo chown mysql:mysql /var/run/mysqld
@777777miSSU7777777
777777miSSU7777777 / box-shadow.css
Created July 22, 2019 21:13
Value for box-shadow css property.
* {
box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.2);
}
@777777miSSU7777777
777777miSSU7777777 / react_app_with_webpack_guide_link.txt
Created June 25, 2019 17:51
Link on guide how to create react app with webpack on russian language.
@777777miSSU7777777
777777miSSU7777777 / fan_in_example.go
Created May 28, 2019 17:55
Fan in example which merges all producers channels in single goroutine.
package main
import (
"fmt"
"time"
)
// Multiply simple function which returns channel with multiplied on m numbers in range (1, n).
func Multiply(n, m int) <-chan int{
ch := make(chan int, n)
@777777miSSU7777777
777777miSSU7777777 / dep_graph.sh
Last active May 17, 2019 12:20
Build dependency graph from golang dep
dep status -dot | dot -T png | display
@777777miSSU7777777
777777miSSU7777777 / validate_codecov.sh
Created May 3, 2019 00:22
Bash script for codecov configuration validation
curl --data-binary @codecov.yml https://codecov.io/validate