Skip to content

Instantly share code, notes, and snippets.

View POMXARK's full-sized avatar
🏠
Нет предела совершенству.

Бушуев Роман POMXARK

🏠
Нет предела совершенству.
View GitHub Profile
@POMXARK
POMXARK / .env
Created May 21, 2024 04:02
sms authentication
NUTNET_SMS_PROVIDER=log
#NUTNET_SMS_PROVIDER=smsru
@POMXARK
POMXARK / instructions.txt
Created May 15, 2024 18:29 — forked from zachbrowne/instructions.txt
Create MYSQL database
mysql -u root -p
CREATE DATABASE testing;
GRANT ALL PRIVILEGES ON testing.* TO test_user@localhost IDENTIFIED BY 'test_pass';
FLUSH PRIVILEGES;
Используйте sortable() для столбцов, указывающих на отношение "один ко многим"
https://v2.filamentphp.com/tricks/use-sortable-on-columns-pointing-to-one-to-many-relationship
Создание макроса всплывающей подсказки
https://v2.filamentphp.com/tricks/create-a-tooltip-macro
@POMXARK
POMXARK / Education. Development tools. Practices
Last active April 20, 2024 15:08
Education. Development tools. Practices
Лекторий ФПМИ:
Highload (4 курс, весна 2022) - Бунин О. В.
https://www.youtube.com/playlist?list=PL4_hYwCyhAva6-f-YxobKju-6ltmn-jNC
HighLoad Channel:
Паттерны отказоустойчивой архитектуры – Александр Кривощёков
https://www.youtube.com/watch?v=YlXJMCdssAI
@POMXARK
POMXARK / laravel-mix.md
Created October 24, 2023 04:35 — forked from huzaifa-a/laravel-mix.md
Stand alone Laravel mix with Apache2

Configure browserSync

webpack.mix.js

mix.browserSync({
    proxy: 'localhost:8080',
    files: [
        'index.html',
    ]
@POMXARK
POMXARK / php.ini
Created October 20, 2023 06:20 — forked from dhimasanb/php.ini
My PHP Config for Laravel
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
@POMXARK
POMXARK / mysql_secure.sh
Created October 20, 2023 02:32 — forked from Mins/mysql_secure.sh
Automating mysql_secure_installation
#!/bin/bash
aptitude -y install expect
// Not required in actual script
MYSQL_ROOT_PASSWORD=abcd1234
SECURE_MYSQL=$(expect -c "
set timeout 10
@POMXARK
POMXARK / install_mysql8_silent.sh
Created October 20, 2023 02:18 — forked from soubrunorocha/install_mysql8_silent.sh
Installing MySQL 8 in silent mode on Ubuntu ( Without prompting )
#update and install some dependencies
sudo apt-get update && apt-get upgrade -y;
sudo apt-get install -y debconf-utils zsh htop libaio1;
#set the root password
DEFAULTPASS="rootpass"
#set some config to avoid prompting
sudo debconf-set-selections <<EOF
mysql-apt-config mysql-apt-config/select-server select mysql-8.0
@POMXARK
POMXARK / Dockerfile
Created June 30, 2023 19:08 — forked from 771991673/Dockerfile
Python VirtualEnv Dockerfile
FROM python:3.7.4-buster
ADD . /app
WORKDIR /app
RUN python -m venv venv
RUN venv/bin/pip install --upgrade pip
RUN venv/bin/pip install -r requirements.txt
@POMXARK
POMXARK / no_body_scroll.js
Created May 5, 2023 20:26 — forked from kevsimpson/no_body_scroll.js
Prevent body scroll while scrolling sidebar
var body = document.getElementsByTagName('body')[0],
sidebar = document.getElementById('sidebar');
// sidebar overflow hide
sidebar.onmouseover = function() {
body.style.overflow = 'hidden';
}
sidebar.onmouseout = function() {
body.style.overflow = 'auto';