Skip to content

Instantly share code, notes, and snippets.

#Yii2 basic htaccess

Demo

Video Demo

Video Demo

a. Automatic setting index.php

This method created .htaccess files automatically and clear self.

<?php
namespace App\Traits;
trait FullTextSearch
{
/**
* Replaces spaces with full text search wildcards
*
* @param string $term
before_script:
- echo 'Before script'
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
- eval $(ssh-agent -s)
- mkdir -p ~/.ssh
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
- chmod 700 ~/.ssh
- ssh-keyscan -H 'domain.com' >> ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts
building:
@fixable11
fixable11 / gist:3831c6d698cb2b6e49e4e0ccdfbf455f
Created October 14, 2020 14:54
Laravel supervisor conf horizon /etc/supervisor/conf.d/horizon.conf
[program:horizon]
process_name=%(program_name)s_%(process_num)02d
command=php /var/www/ub-admin-client/artisan horizon
autostart=true
autorestart=true
user=fixable
startsecs = 0
redirect_stderr=true
stdout_logfile=/var/www/ub-admin-client/storage/logs/horizon.log
stopwaitsecs=3600
@fixable11
fixable11 / comment-example.js
Created November 27, 2021 13:54 — forked from nikes/comment-example.js
Dynamoose range and hash key example
var commentSchema = new Schema({
postId: {
type: String,
hashKey: true
},
id: {
type: String,
rangeKey: true,
default: shortId.generate