Skip to content

Instantly share code, notes, and snippets.

@gmhafiz
gmhafiz / gist:8fbee58508bcd8c30ecd24f7018d0aa6
Last active December 23, 2024 07:50
reverse proxy vue using nginx
1. Add a custom DNS entry
# File: /etc/hosts
127.0.0.1 site.test
2. In nginx conf file, tell it to reverse proxy all requests from site.test to http://localhost:3000
# File: /etc/nginx/sites-enabled/site.conf
server {
<?php
/*
* Fluent Forms Extra Smartcodes on form integration feeds
* This code will add a new item on the smartcode dropdown.
* if you don't want to show the smartcode then you may skip this.
*/
add_filter('fluentform_form_settings_smartcodes', function ($groups) {
$groups[0]['shortcodes']['{my_custom_smartcode}'] = 'Custom All Data';
@nasrulhazim
nasrulhazim / helpers.php
Created December 19, 2017 11:51
MoneyPHP Wrapper Helper
<?php
/*
* Money PHP Helper
*/
if (!function_exists('money')) {
function money()
{
return \CLNQCDRS\Utilities\Money::make();
}