I hereby claim:
- I am spicydog on github.
- I am spicydog (https://keybase.io/spicydog) on keybase.
- I have a public key whose fingerprint is 7F92 B174 29D3 8BAE 25D5 A98B 6EFF 2366 9E52 EDC1
To claim this, I am signing this object:
<?php | |
namespace App\Http\Middleware; | |
use Closure; | |
use Illuminate\Support\Facades\Auth; | |
class Authenticate | |
{ | |
/** |
I hereby claim:
To claim this, I am signing this object:
location ^~ /.well-known/acme-challenge/ { | |
alias /var/www/acme-challenge/; | |
} |
On Caldera Forms, when you export entries as CSV.
It cannot be open perfectly with excel because it missing BOM in file prefix.
Therefore, we have to intercept the process and here is how to.
At the file wp-content/plugins/caldera-forms/classes/admin.php
.
There is a function to export the CSV here.
#!/usr/bin/env python | |
# # -*- coding: utf-8 -*- | |
""" | |
__project__ = "MAQE Bot" | |
__reference__ = "https://maqe.github.io/maqe-bot.html" | |
__author__ = "Spicydog Proxy" | |
""" | |
def translate(input): |
หากวาง = หา|กวาง / หาก|วาง | |
ปีกว่า = ปี|กว่า / ปีก|ว่า | |
เกษตรกรอบกรอบ = เกษตรกร|อบ|กรอบ / เกษตร|กรอบ|กรอบ |
/* | |
Theme Name: Twenty Eleven | |
Description: Used to style the TinyMCE editor. | |
*/ | |
@import url("https://cdn.spicydog.org/fonts/th-sarabun-new/th-sarabun-new.css"); | |
@import url("https://cdn.spicydog.org/fonts/thaisans-neue/thaisans-neue.css"); | |
body { | |
color: #333; |
/** | |
* Validate Thai national ID | |
* @param string $nationalId | |
* @link https://th.wikipedia.org/wiki/เลขประจำตัวประชาชนไทย | |
* @return bool | |
*/ | |
public function isValidNationalId(string $nationalId) | |
{ | |
if (strlen($nationalId) === 13) { | |
$digits = str_split($nationalId); |
const times = 20; | |
const n = 5 | |
const set = { | |
1: 1, | |
2: 5, | |
3: 7, | |
4: 5, | |
5: 1, |
#!/bin/sh | |
# exit with error | |
set -e | |
# Generate an application key. Re-cache. | |
php artisan config:cache | |
php artisan config:clear | |
php artisan cache:clear |