Skip to content

Instantly share code, notes, and snippets.

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

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

🏠
Нет предела совершенству.
View GitHub Profile
@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';
@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 / 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 / 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 / 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 / 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 / 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;
@POMXARK
POMXARK / qwebchannel-client.html
Created June 2, 2024 09:32 — forked from gencer/qwebchannel-client.html
QWebChannel Javascript Connector
<!DOCTYPE html>
<html>
<head>
<title>QWebChannel Client</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script type="text/javascript" src="qwebchannel.js"></script>
@POMXARK
POMXARK / qwebchannelexample.py
Created June 2, 2024 09:52 — forked from vidjuheffex/qwebchannelexample.py
QWebChannel Example Script
"""create a remote connection to a webapp."""
import sys
import json
from PySide6.QtWidgets import QApplication, QMainWindow
from PySide6.QtNetwork import QHostAddress, QSslSocket
from PySide6.QtWebChannel import QWebChannel, QWebChannelAbstractTransport
from PySide6.QtWebSockets import QWebSocketServer
from PySide6.QtWebEngineWidgets import QWebEngineView
@POMXARK
POMXARK / index.html
Last active June 2, 2024 16:01 — forked from mphuie/index.html
pyqt webview javascript -> python example qtwebchannel PySide6 QWebChannel QWebEngineView
<html>
<head>
<script src="qrc:///qtwebchannel/qwebchannel.js"></script>
<style>
::selection {
background: transparent;
}
</style>
</head>