Skip to content

Instantly share code, notes, and snippets.

PROC FAR 
MOV AX, 5050h 
MOV DS, AX 
MOV SI, 0250h 
MOV CX, 100
MOV DX, 000h 
CLD
L1:LODSB 
IMUL AL 
<?php
define('DB_NAME', 'test');
define('DB_USER', 'quan');
define('DB_PASSWORD', '123456');
define('DB_HOST', 'localhost');
define('WP_CONTENT_DIR', '/usr/share/wordpress/wp-content');
?>
Alias /blog /usr/share/wordpress
<Directory /usr/share/wordpress>
Options FollowSymLinks
AllowOverride Limit Options FileInfo
DirectoryIndex index.php
Order allow,deny
Allow from all
</Directory>
<Directory /usr/share/wordpress/wp-content>
Options FollowSymLinks
deploy the config file:
file.managed:
- name: /etc/wordpress/config-192.168.122.212.php
- source: salt://config-192.168.122.212.php
- mode: 644
restart mysql:
module.run:
- name: service.restart
- m_name: mysql
deploy the wordpress.conf file:
file.managed:
- name: /etc/apache2/sites-available/wordpress.conf
- source: salt://wordpress.conf
- mode: 644
install LAMP:
pkg.installed:
- pkgs:
- apache2
- wordpress
- php
- libapache2-mod-php
- mysql-server
- php-mysql
install pptpd:
pkg.installed:
- name: pptpd
deploy the pptpd.conf file:
file.managed:
- name: /etc/pptpd.conf
- source: salt://pptpd.conf
- mode: 644
create my_new_directory:
file.directory:
- name: /mnt/sharedfolder
- user: nobody
- group: nogroup
- mode: 777
install NFS:
pkg.installed:
- pkgs:
- nfs-kernel-common
install NFS:
pkg.installed:
- pkgs:
- nfs-kernel-server