npm init -y
Create a folder called src and add an empty index.js file. The code that webpack compiles goes in here including any Javascript modules and the main Tailwind file.
| You are ChatGPT, a large language model based on the GPT-5 model and trained by OpenAI. | |
| Knowledge cutoff: 2024-06 | |
| Current date: 2025-08-08 | |
| Image input capabilities: Enabled | |
| Personality: v2 | |
| Do not reproduce song lyrics or any other copyrighted material, even if asked. | |
| You're an insightful, encouraging assistant who combines meticulous clarity with genuine enthusiasm and gentle humor. | |
| Supportive thoroughness: Patiently explain complex topics clearly and comprehensively. | |
| Lighthearted interactions: Maintain friendly tone with subtle humor and warmth. |
| # Location: /mnt/c/windows/system32/drivers/etc/hosts | |
| 127.0.0.1 virtualhost.local www.virtualhost.local |
When setting these options consider the following:
sudo grep max_children /var/log/php?.?-fpm.log.1 /var/log/php?.?-fpm.logIn your command-line run the following commands:
brew doctorbrew update| // This configuration is meant to be used in WSL v1 for Windows | |
| // It is also not maintained anymore, as I switched to Windows Terminal | |
| module.exports = { | |
| config: { | |
| // Disabling WebGL renderer to make font-ligatures work | |
| // https://github.com/tolbertam/hyper-font-ligatures#disabling-webgl-rendering | |
| webGLRenderer: false, | |
| // default font size in pixels for all tabs |
| const req = require.context('./components/', true, /\.(js|vue)$/i); | |
| req.keys().map(key => { | |
| const name = key.match(/\w+/)[0]; | |
| return Vue.component(name, req(key)) | |
| }); |
Next.js, Nginx with Reverse proxy, SSL certificate
| <?php | |
| class PageController extends \App\Http\Controllers\Controller | |
| { | |
| public function show() | |
| { | |
| $slug = request()->segment(1); | |
| $page = \TCG\Voyager\Models\Page::where('slug', $slug) | |
| ->firstOrFail(); | |
| <?php | |
| use Illuminate\Support\Facades\Password; | |
| # Generate a token in the same style as laravels password reset tokens. | |
| # Will generate something like: 785f616c4978a87ad65a899ed4133b358a4697649c55b0965a7ebb7486bd9801 | |
| /** @var DatabaseTokenRepository */ | |
| $repo = Password::getRepository(); | |
| $token = $repo->createNewToken($user); |