mix.browserSync({
proxy: 'localhost:8080',
files: [
'index.html',
]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
aptitude -y install expect | |
// Not required in actual script | |
MYSQL_ROOT_PASSWORD=abcd1234 | |
SECURE_MYSQL=$(expect -c " | |
set timeout 10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql -u root -p | |
CREATE DATABASE testing; | |
GRANT ALL PRIVILEGES ON testing.* TO test_user@localhost IDENTIFIED BY 'test_pass'; | |
FLUSH PRIVILEGES; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script src="qrc:///qtwebchannel/qwebchannel.js"></script> | |
<style> | |
::selection { | |
background: transparent; | |
} | |
</style> | |
</head> |
OlderNewer