- Font Forge https://fontforge.org
- เปิดโปรแกรม Font Forge แล้วเลือกฟอนต์ที่ต้องการ
<?php | |
namespace App\Console\Commands; | |
use App\Models\User; | |
use Illuminate\Console\Command; | |
class UserBlockCommand extends Command | |
{ | |
/** |
import 'dart:convert'; | |
import 'dart:io'; | |
Future getToken() async { | |
var context = SecurityContext.defaultContext; | |
var filepath = './file.p12'; | |
var password = ''; | |
context.useCertificateChain(filepath, password: password); | |
context.usePrivateKey(filepath, password: password); |
# $ create_mysql_database_and_user dbname [username [password]] | |
function create_mysql_database_and_user() { | |
DB=$1 | |
USR=$1 | |
if [[ $2 ]]; then | |
USR=$2 | |
fi | |
PWD=$USR | |
if [[ $3 ]]; then | |
PWD=$3 |
server { | |
listen 80; | |
server_name localhost; | |
root /var/www/html; | |
index index.php index.html; | |
location / { | |
try_files $uri $uri/ /index.php?$args; | |
} |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^\/(.*)-(anteroexternal)([0-9]+)\/slum([0-9]+)\/(.*)$ ?anteroexternal$3=$4&%{QUERY_STRING}[L] | |
RewriteRule ^index\.php$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /index.php [L] | |
RewriteCond %{REQUEST_URI} ^/$ [NC] |
<?php | |
/** | |
* Check page is category. | |
*/ | |
if ( is_category() && $term = get_queried_object() ) { | |
print_r($term); | |
} |
/var/lib/docker/containers/*/*.log { | |
rotate 7 | |
daily | |
compress | |
size=1M | |
missingok | |
delaycompress | |
copytruncate | |
} |
FROM php:7.1-apache | |
# Update apache document root. | |
ENV APACHE_DOCUMENT_ROOT /var/www/html/public | |
RUN sed -ri -e 's!/var/www/html!/var/www/html/public!g' /etc/apache2/sites-available/*.conf | |
RUN sed -ri -e 's!/var/www/!/var/www/html/public!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf | |
# Enable mod write. | |
RUN a2enmod rewrite |