<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Linux]]></title><description><![CDATA[Ref to various commands, detailed instructions and guidance on the process of managing Linux OS.]]></description><link>https://bb.aizu.my/category/6</link><generator>RSS for Node</generator><lastBuildDate>Wed, 20 May 2026 06:44:30 GMT</lastBuildDate><atom:link href="https://bb.aizu.my/category/6.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 10 Mar 2026 14:40:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[impit - curl_cffi - browser - web scraping]]></title><description><![CDATA[<h3>Tier 1 — Lightweight (no browser)</h3>
<p dir="auto"><strong>impit</strong> - browser impersonation made simple <a href="https://github.com/apify/impit" rel="nofollow ugc">https://github.com/apify/impit</a></p>
<p dir="auto"><strong>curl_cffi</strong> — TLS fingerprint spoofing. Popular in Python scraping community. Relatively new (2023+), growing fast.</p>
<p dir="auto"><strong>tls-client</strong> — similar concept, Go-based TLS client with Python bindings. Used a lot in sneaker bots and ticket scalping.</p>
<p dir="auto"><strong>got-scraping</strong> — Node.js equivalent, spoofs TLS fingerprints. Used by Apify (major scraping platform).</p>
<hr />
<h3>Tier 2 — Headless browsers (real browser engine)</h3>
<p dir="auto"><strong>Puppeteer</strong> — Chrome/Chromium via DevTools protocol. The OG.</p>
<p dir="auto"><strong>Playwright</strong> — Microsoft's answer to Puppeteer. Supports Chrome, Firefox, Safari. Becoming the standard.</p>
<p dir="auto"><strong>Selenium</strong> — older, slower, but still widely used.</p>
]]></description><link>https://bb.aizu.my/topic/94/impit-curl_cffi-browser-web-scraping</link><guid isPermaLink="true">https://bb.aizu.my/topic/94/impit-curl_cffi-browser-web-scraping</guid><dc:creator><![CDATA[aizu]]></dc:creator><pubDate>Tue, 10 Mar 2026 14:40:55 GMT</pubDate></item><item><title><![CDATA[PM2 - ecosystem file - (interpreter &amp; fork)]]></title><description><![CDATA[<p dir="auto">ecosystem.config.js</p>
<pre><code class="language-javascript">module.exports = {
  apps: [
    // Next.js Web Dashboard
    {
      name: 'domain-web-5800',
      cwd: './web',
      script: 'npm',
      args: 'start -- -p 5800',
      env: {
        NODE_ENV: 'production',
      },
      instances: 1,
      autorestart: true,
      watch: true,
      exec_mode: 'fork',
      max_memory_restart: '500M',
      error_file: '/var/www/domain/web-error.log',
      out_file: '/var/www/domain/web-out.log',
      merge_logs: true,
      time: true,
    },

    // Telegram Bot Service (Express)
    {
      name: 'domain-bot-5801',
      cwd: './bot',
      script: 'src/index.js',
      env: {
        NODE_ENV: 'production',
        PORT: 5801,
      },
      interpreter: '/root/.nvm/versions/node/v20.20.0/bin/node',
      instances: 1,
      autorestart: true,
      watch: true,
      exec_mode: 'fork',
      max_memory_restart: '300M',
      error_file: '/var/www/domain/bot-error.log',
      out_file: '/var/www/domain/bot-out.log',
      merge_logs: true,
      time: true,
    },
  ],
}

</code></pre>
]]></description><link>https://bb.aizu.my/topic/88/pm2-ecosystem-file-interpreter-fork</link><guid isPermaLink="true">https://bb.aizu.my/topic/88/pm2-ecosystem-file-interpreter-fork</guid><dc:creator><![CDATA[aizu]]></dc:creator><pubDate>Sat, 24 Jan 2026 17:00:22 GMT</pubDate></item><item><title><![CDATA[NodeJS - ERR_OSSL_EVP_UNSUPPORTED error]]></title><description><![CDATA[<pre><code>export NODE_OPTIONS=--openssl-legacy-provider
</code></pre>
<p dir="auto">Ref: <a href="https://stackoverflow.com/questions/69394632/webpack-build-failing-with-err-ossl-evp-unsupported" rel="nofollow ugc">https://stackoverflow.com/questions/69394632/webpack-build-failing-with-err-ossl-evp-unsupported</a></p>
]]></description><link>https://bb.aizu.my/topic/76/nodejs-err_ossl_evp_unsupported-error</link><guid isPermaLink="true">https://bb.aizu.my/topic/76/nodejs-err_ossl_evp_unsupported-error</guid><dc:creator><![CDATA[aizu]]></dc:creator><pubDate>Mon, 18 Nov 2024 07:21:31 GMT</pubDate></item><item><title><![CDATA[Linode - disable ipv6]]></title><description><![CDATA[<p dir="auto">Check IP</p>
<pre><code>ip a
</code></pre>
<p dir="auto">File: /etc/sysctl.conf</p>
<pre><code>net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
</code></pre>
<p dir="auto">Reload sysctl</p>
<pre><code>sysctl -p /etc/sysctl.conf
</code></pre>
]]></description><link>https://bb.aizu.my/topic/75/linode-disable-ipv6</link><guid isPermaLink="true">https://bb.aizu.my/topic/75/linode-disable-ipv6</guid><dc:creator><![CDATA[aizu]]></dc:creator><pubDate>Sun, 10 Nov 2024 09:50:20 GMT</pubDate></item><item><title><![CDATA[Softether - Linux]]></title><description><![CDATA[<p dir="auto">Install server</p>
<p dir="auto">Download here: <a href="https://www.softether-download.com/en.aspx?product=softether" rel="nofollow ugc">https://www.softether-download.com/en.aspx?product=softether</a></p>
<pre><code class="language-bash">apt-get update
apt-get upgrade
apt-get install build-essential

wget "https://www.softether-download.com/files/softether/v4.43-9799-beta-2023.08.31-tree/Linux/SoftEther_VPN_Server/64bit_-_Intel_x64_or_AMD64/softether-vpnserver-v4.43-9799-beta-2023.08.31-linux-x64-64bit.tar.gz"

tar -zxvf softether-vpnserver-v4.43-9799-beta-2023.08.31-linux-x64-64bit.tar.gz
cd vncserver
make main
</code></pre>
]]></description><link>https://bb.aizu.my/topic/74/softether-linux</link><guid isPermaLink="true">https://bb.aizu.my/topic/74/softether-linux</guid><dc:creator><![CDATA[aizu]]></dc:creator><pubDate>Thu, 31 Oct 2024 05:27:56 GMT</pubDate></item><item><title><![CDATA[docker build for ECR]]></title><description><![CDATA[<p dir="auto"><strong>1. build</strong></p>
<pre><code>docker build -t nextjs-app .
</code></pre>
<pre><code>aws ecr get-login-password --region ap-southeast-1
</code></pre>
<p dir="auto">Then it will come out the password</p>
<p dir="auto"><strong>2. login</strong></p>
<pre><code>docker login -u AWS -p somePassword 123456789012.dkr.ecr.us-east-1.amazonaws.com
</code></pre>
<p dir="auto"><strong>3. tag</strong></p>
<pre><code>docker tag nextjs-app:latest 123456789012.dkr.ecr.us-east-1.amazonaws.com/nextjs-app:latest
</code></pre>
<p dir="auto"><strong>4. push</strong></p>
<pre><code>docker push 123456789012.dkr.ecr.us-east-1.amazonaws.com/nextjs-app:latest
</code></pre>
<hr />
<p dir="auto">Below example for docker login stdin with aws get password</p>
<pre><code>aws ecr get-login-password --region ap-southeast-1 | docker login -u AWS --password-stdin 123456789012.dkr.ecr.us-east-1.amazonaws.com</code></pre>
]]></description><link>https://bb.aizu.my/topic/72/docker-build-for-ecr</link><guid isPermaLink="true">https://bb.aizu.my/topic/72/docker-build-for-ecr</guid><dc:creator><![CDATA[aizu]]></dc:creator><pubDate>Mon, 23 Sep 2024 14:36:29 GMT</pubDate></item><item><title><![CDATA[EC2 - increase storage without turn off instance]]></title><description><![CDATA[<p dir="auto">To increase the space on your AWS instance, follow these steps:</p>
<p dir="auto"><strong>1. Check the Available Storage:</strong><br />
Before expanding, verify the disk space:</p>
<pre><code class="language-bash">df -h
</code></pre>
<p dir="auto"><strong>2. Identify the Volume:</strong><br />
Find the attached volumes for your EC2 instance:</p>
<p dir="auto">Go to the EC2 Console.<br />
Under Elastic Block Store (EBS), select Volumes.<br />
Identify the volume attached to your instance.</p>
<p dir="auto"><strong>3. Modify the EBS Volume:</strong><br />
Select the volume you want to expand.<br />
Click on Actions → Modify Volume.<br />
Increase the size of the volume (e.g., from 8 GB to 20 GB).<br />
Click Modify.</p>
<p dir="auto"><strong>4. Extend the Partition on the EC2 Instance:</strong><br />
After the volume is resized, you'll need to extend the file system to use the new space.</p>
<p dir="auto">For ext4 file system:<br />
Verify the volume size:</p>
<pre><code class="language-bash">lsblk
</code></pre>
<p dir="auto">Make sure the resized volume reflects the correct size.<br />
Extend the file system:</p>
<pre><code class="language-bash">sudo growpart /dev/nvme0n1 1
sudo resize2fs /dev/nvme0n1p1
</code></pre>
<p dir="auto">For xfs file system:<br />
Extend the file system:</p>
<pre><code class="language-bash">sudo xfs_growfs -d /
</code></pre>
<p dir="auto"><strong>5. Verify the Increased Space:</strong><br />
Check the disk space again:</p>
<pre><code class="language-bash">df -h
</code></pre>
<p dir="auto">This process will allow you to increase the disk space without stopping the instance.</p>
<p dir="auto"><strong>To check partition type</strong></p>
<pre><code class="language-bash">lsblk -f
</code></pre>
]]></description><link>https://bb.aizu.my/topic/71/ec2-increase-storage-without-turn-off-instance</link><guid isPermaLink="true">https://bb.aizu.my/topic/71/ec2-increase-storage-without-turn-off-instance</guid><dc:creator><![CDATA[aizu]]></dc:creator><pubDate>Sat, 21 Sep 2024 21:21:32 GMT</pubDate></item><item><title><![CDATA[Multiple PHP 8.3 and 7.4 - Ubuntu 24]]></title><description><![CDATA[<p dir="auto">To run multiple PHP versions (8.3 and 7.4) on Ubuntu 24, you can install PHP 7.4 alongside PHP 8.3 and configure PHP-FPM to handle both versions. Here’s a step-by-step guide:</p>
<p dir="auto">Step 1: Add PHP 7.4 Repository<br />
First, you need to add the ondrej/php PPA, which allows you to install older PHP versions like 7.4.</p>
<pre><code class="language-bash">sudo apt update
sudo apt install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt update
</code></pre>
<p dir="auto">Step 2: Install PHP 7.4 and PHP 7.4-FPM<br />
Now, install PHP 7.4 along with its FPM package and any required extensions.</p>
<pre><code class="language-bash">sudo apt install php7.4 php7.4-fpm php7.4-cli php7.4-common php7.4-mysql php7.4-xml php7.4-mbstring php7.4-curl
</code></pre>
<p dir="auto">Step 3: Ensure PHP 8.3 FPM is Installed<br />
Make sure you also have PHP 8.3 FPM installed (if not already):</p>
<pre><code class="language-bash">sudo apt install php8.3-fpm
</code></pre>
<p dir="auto">Step 4: Configure Nginx to Use Different PHP-FPM Versions<br />
Now, you need to modify your Nginx configuration to point to the correct PHP-FPM socket for each site or location.</p>
<p dir="auto">For PHP 8.3 (default):<br />
In your Nginx config file (e.g., /etc/nginx/sites-available/default), set the fastcgi_pass directive to PHP 8.3:</p>
<p dir="auto">nginx<br />
Copy code<br />
location ~ .php$ {<br />
fastcgi_pass unix:/run/php/php8.3-fpm.sock;<br />
include fastcgi_params;<br />
}</p>
<p dir="auto">For PHP 7.4 (for specific locations or sites):<br />
For specific sites or locations where you want to use PHP 7.4, you can point to the PHP 7.4 FPM socket:</p>
<pre><code class="language-nginx">location ~ \.php$ {
    fastcgi_pass unix:/run/php/php7.4-fpm.sock;
    include fastcgi_params;
}
</code></pre>
<p dir="auto">Step 5: Enable and Restart PHP-FPM Services<br />
Enable both PHP-FPM services to ensure they start on boot:</p>
<pre><code class="language-bash">sudo systemctl enable php8.3-fpm
sudo systemctl enable php7.4-fpm
</code></pre>
<p dir="auto">Then restart both services:</p>
<pre><code class="language-bash">sudo systemctl restart php8.3-fpm
sudo systemctl restart php7.4-fpm
</code></pre>
<p dir="auto">Step 6: Set PHP 8.3 as the Default CLI Version (Optional)<br />
If you want to keep PHP 8.3 as the default for the CLI, use the update-alternatives command:</p>
<pre><code class="language-bash">sudo update-alternatives --set php /usr/bin/php8.3
</code></pre>
<p dir="auto">To switch to PHP 7.4 for the CLI:</p>
<pre><code class="language-bash">sudo update-alternatives --set php /usr/bin/php7.4
</code></pre>
<p dir="auto">Step 7: Verify Installation<br />
To check the installed versions of PHP-FPM, run:</p>
<pre><code class="language-bash">php -v          # To check the default CLI version
sudo systemctl status php7.4-fpm
sudo systemctl status php8.3-fpm
</code></pre>
<p dir="auto">Conclusion<br />
Now you have both PHP 8.3 and PHP 7.4 running on your Ubuntu 24 system, with PHP 8.3 as the default and the ability to use PHP 7.4 for specific locations or virtual hosts.</p>
]]></description><link>https://bb.aizu.my/topic/70/multiple-php-8-3-and-7-4-ubuntu-24</link><guid isPermaLink="true">https://bb.aizu.my/topic/70/multiple-php-8-3-and-7-4-ubuntu-24</guid><dc:creator><![CDATA[aizu]]></dc:creator><pubDate>Tue, 17 Sep 2024 09:49:29 GMT</pubDate></item><item><title><![CDATA[rsync]]></title><description><![CDATA[<pre><code>/usr/bin/rsync -varuzP -e "ssh -p 12345" html root@202.188.0.133:/root/
</code></pre>
]]></description><link>https://bb.aizu.my/topic/69/rsync</link><guid isPermaLink="true">https://bb.aizu.my/topic/69/rsync</guid><dc:creator><![CDATA[aizu]]></dc:creator><pubDate>Tue, 17 Sep 2024 09:13:51 GMT</pubDate></item><item><title><![CDATA[PDF using gotenberg - docker]]></title><description><![CDATA[<p dir="auto">install gotenberg</p>
<pre><code>docker run -d --rm -p 5000:5000 gotenberg/gotenberg:8 gotenberg --api-port=5000 --api-timeout=10s --libreoffice-disable-routes --log-level=debug
</code></pre>
<pre><code>docker ps
docker ls
</code></pre>
<p dir="auto">request</p>
<pre><code>curl --request POST http://localhost:5000/forms/chromium/convert/url --form url=https://sparksuite.github.io/simple-html-invoice-template/ -o my.pdf
</code></pre>
]]></description><link>https://bb.aizu.my/topic/67/pdf-using-gotenberg-docker</link><guid isPermaLink="true">https://bb.aizu.my/topic/67/pdf-using-gotenberg-docker</guid><dc:creator><![CDATA[aizu]]></dc:creator><pubDate>Mon, 16 Sep 2024 07:24:21 GMT</pubDate></item><item><title><![CDATA[PM2 for Strapi CMS]]></title><description><![CDATA[<p dir="auto">ecosystem.config.cjs</p>
<pre><code class="language-javascript">module.exports = {
  apps: [
    {
      name: "sirehpark-cms",
      script: "npm",
      args: "start",
      cwd: "/var/www/sirehpark-cms",
      env: {
        NODE_ENV: "production",
        PORT: 1337,
      },
    },
  ],
};
</code></pre>
]]></description><link>https://bb.aizu.my/topic/66/pm2-for-strapi-cms</link><guid isPermaLink="true">https://bb.aizu.my/topic/66/pm2-for-strapi-cms</guid><dc:creator><![CDATA[aizu]]></dc:creator><pubDate>Mon, 16 Sep 2024 07:18:47 GMT</pubDate></item><item><title><![CDATA[PM2 for NextJS - (without ecosystem file)]]></title><description><![CDATA[<pre><code>pm2 start 'node_modules/next/dist/bin/next start -p 3000' --name 'index-3000' --watch
</code></pre>
]]></description><link>https://bb.aizu.my/topic/64/pm2-for-nextjs-without-ecosystem-file</link><guid isPermaLink="true">https://bb.aizu.my/topic/64/pm2-for-nextjs-without-ecosystem-file</guid><dc:creator><![CDATA[aizu]]></dc:creator><pubDate>Thu, 05 Sep 2024 14:21:35 GMT</pubDate></item><item><title><![CDATA[Change SSH Port - Ubuntu]]></title><description><![CDATA[<pre><code>vim /etc/ssh/sshd_config
</code></pre>
<p dir="auto">Modify the Port to new port number (i.e: 23)</p>
<pre><code>Port 23
</code></pre>
<p dir="auto">Restart ssh service</p>
<pre><code>/etc/init.d/ssh restart
</code></pre>
<hr />
<p dir="auto">If not working, modify file below;</p>
<pre><code>vim /etc/systemd/system/sockets.target.wants/ssh.socket
</code></pre>
<p dir="auto">Modify the "ListenStream" value to target (i.e: 23)</p>
<p dir="auto">Restart systemctl daemon &amp; ssh service</p>
<pre><code>systemctl daemon-reload
/etc/init.d/ssh restart
</code></pre>
<p dir="auto">Ref: <a href="https://askubuntu.com/questions/1483893/unable-to-change-ssh-port-on-ubuntu" rel="nofollow ugc">https://askubuntu.com/questions/1483893/unable-to-change-ssh-port-on-ubuntu</a></p>
]]></description><link>https://bb.aizu.my/topic/63/change-ssh-port-ubuntu</link><guid isPermaLink="true">https://bb.aizu.my/topic/63/change-ssh-port-ubuntu</guid><dc:creator><![CDATA[aizu]]></dc:creator><pubDate>Thu, 05 Sep 2024 13:27:05 GMT</pubDate></item><item><title><![CDATA[SSH Tunnel Port]]></title><description><![CDATA[<p dir="auto">Tunnel the port using SSH</p>
<pre><code>ssh -v -N -L 3001:TARGET_INTERNAL_IP:3000 -i PEM_KEY_FILE ubuntu@202.188.x.x

ssh -v -N -L 3001:TARGET_INTERNAL_IP:3000 ubuntu@202.188.x.x

3001 : local port (127.0.0.1:3001)
3000 : remote port (TARGET_INTERNAL_IP:3000)

-v : verbose
-N : non-interactive
-L : tunnel
-f : non-foreground
</code></pre>
]]></description><link>https://bb.aizu.my/topic/61/ssh-tunnel-port</link><guid isPermaLink="true">https://bb.aizu.my/topic/61/ssh-tunnel-port</guid><dc:creator><![CDATA[aizu]]></dc:creator><pubDate>Sun, 25 Aug 2024 08:48:08 GMT</pubDate></item><item><title><![CDATA[Convert ssh key ppk to pem]]></title><description><![CDATA[<p dir="auto">Using Mac</p>
<pre><code class="language-bash"># brew install putty
</code></pre>
<p dir="auto">Then,</p>
<pre><code class="language-bash"># puttygen key.ppk -O private-openssh -o key.pem
</code></pre>
<p dir="auto">Ref: <a href="https://servicehub.ucdavis.edu/servicehub?id=ucd_kb_article&amp;sys_id=623e3d4e1b4e9d100e0b2068b04bcb21" rel="nofollow ugc">https://servicehub.ucdavis.edu/servicehub?id=ucd_kb_article&amp;sys_id=623e3d4e1b4e9d100e0b2068b04bcb21</a></p>
]]></description><link>https://bb.aizu.my/topic/54/convert-ssh-key-ppk-to-pem</link><guid isPermaLink="true">https://bb.aizu.my/topic/54/convert-ssh-key-ppk-to-pem</guid><dc:creator><![CDATA[aizu]]></dc:creator><pubDate>Thu, 27 Jun 2024 15:43:20 GMT</pubDate></item><item><title><![CDATA[Sample bitbucket pipeline for deploy to Linux]]></title><description><![CDATA[<p dir="auto">File: bitbucket-pipelines.yml</p>
<pre><code>image: node:20

pipelines:
  branches:
    main:
      - step:
          name: Deploy to Linux
          script:
            - ssh root@127.0.0.1 "cd /var/www &amp;&amp; git pull &amp;&amp; npm i &amp;&amp; npm run build &amp;&amp; pm2 restart 1"
</code></pre>
<p dir="auto">Need to copy Bitbucket's id_rsa key to server's authorised_keys.</p>
<ol>
<li>Go to Repository Settings (of the particular repo)</li>
<li>Pipeline &gt; SSH Keys</li>
</ol>
<p dir="auto">Generate key.</p>
<p dir="auto"><img src="/assets/uploads/files/1718966496851-ff7d9e1c-1431-498d-a9d9-a53b8a5639e8-image.png" alt="ff7d9e1c-1431-498d-a9d9-a53b8a5639e8-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Copy the generated key to authorised_keys in target server.</p>
<ol start="3">
<li>Get the server's fingerprint, so Bitbucket can keep it. - enter the server IP, and click "Fetch"</li>
</ol>
<p dir="auto"><img src="/assets/uploads/files/1718966609041-ceae856d-4353-480b-81b3-7459795ea85a-image.png" alt="ceae856d-4353-480b-81b3-7459795ea85a-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://bb.aizu.my/topic/52/sample-bitbucket-pipeline-for-deploy-to-linux</link><guid isPermaLink="true">https://bb.aizu.my/topic/52/sample-bitbucket-pipeline-for-deploy-to-linux</guid><dc:creator><![CDATA[aizu]]></dc:creator><pubDate>Fri, 21 Jun 2024 10:17:48 GMT</pubDate></item><item><title><![CDATA[git using different ssh key]]></title><description><![CDATA[<p dir="auto">File: ~/.ssh/config</p>
Host github.com
    IdentityFile ~/.ssh/id_rsa_custom_key
    IdentitiesOnly yes

<p dir="auto">Create this file in the server, so it always execute this by default.</p>
]]></description><link>https://bb.aizu.my/topic/50/git-using-different-ssh-key</link><guid isPermaLink="true">https://bb.aizu.my/topic/50/git-using-different-ssh-key</guid><dc:creator><![CDATA[aizu]]></dc:creator><pubDate>Wed, 19 Jun 2024 10:28:21 GMT</pubDate></item><item><title><![CDATA[PM2 - Sveltekit ecosystem]]></title><description><![CDATA[<p dir="auto">NodeJS Build</p>
npm i -D @sveltejs/adapter-node

<p dir="auto">File: svelte.config.js</p>
import adapter from '@sveltejs/adapter-node';

<p dir="auto">Then</p>
# npm run build

<p dir="auto">The output files will in "./build" directory.</p>
<p dir="auto">Ref: <a href="https://kit.svelte.dev/docs/adapter-node" rel="nofollow ugc">https://kit.svelte.dev/docs/adapter-node</a></p>
]]></description><link>https://bb.aizu.my/topic/43/pm2-sveltekit-ecosystem</link><guid isPermaLink="true">https://bb.aizu.my/topic/43/pm2-sveltekit-ecosystem</guid><dc:creator><![CDATA[aizu]]></dc:creator><pubDate>Wed, 03 Apr 2024 14:31:31 GMT</pubDate></item><item><title><![CDATA[pull.sh script]]></title><description><![CDATA[<pre><code>cd "/var/www/domain.com/www/source"
git reset --hard
git pull
npm i
npm run build
pm2 reload "project_name" 
</code></pre>
]]></description><link>https://bb.aizu.my/topic/42/pull-sh-script</link><guid isPermaLink="true">https://bb.aizu.my/topic/42/pull-sh-script</guid><dc:creator><![CDATA[aizu]]></dc:creator><pubDate>Thu, 28 Mar 2024 22:33:06 GMT</pubDate></item><item><title><![CDATA[NextJS 14.0.2 - package.json]]></title><description><![CDATA[<p dir="auto">Compatible with Node v21.6.1 (web52)</p>
<pre><code>{
  "name": "something project name",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "dev": "next dev",
    "build": "next build",
    "start": "next start -p 3000",
    "lint": "next lint"
  },
  "dependencies": {
    "autoprefixer": "10.4.16",
    "axios": "^1.6.2",
    "dayjs": "^1.11.10",
    "get-youtube-id": "^1.0.1",
    "googleapis": "^128.0.0",
    "md5": "^2.3.0",
    "nanoid": "^5.0.3",
    "next": "14.0.2",
    "next-auth": "^4.24.5",
    "nookies": "^2.5.2",
    "postcss": "8.4.31",
    "react": "18.2.0",
    "react-dom": "18.2.0",
    "react-icons": "^4.12.0",
    "react-lottie": "^1.2.3",
    "react-simple-snackbar": "^1.1.11",
    "react-youtube": "^10.1.0",
    "sweetalert2": "^11.10.0",
    "tailwindcss": "3.3.5",
    "ua-parser-js": "^1.0.37",
    "youtube-player": "^5.6.0"
  },
  "devDependencies": {
    "autoprefixer": "^10.0.1",
    "postcss": "^8",
    "tailwindcss": "^3.3.0"
  }
}
</code></pre>
]]></description><link>https://bb.aizu.my/topic/41/nextjs-14-0-2-package-json</link><guid isPermaLink="true">https://bb.aizu.my/topic/41/nextjs-14-0-2-package-json</guid><dc:creator><![CDATA[aizu]]></dc:creator><pubDate>Thu, 28 Mar 2024 22:28:29 GMT</pubDate></item><item><title><![CDATA[mongodb backup &amp; restore]]></title><description><![CDATA[<p dir="auto">Backup to folder "databasename-DATE"</p>
<pre><code>mongodump --db databasename --out databasename-$(date +'%m-%d-%y')
</code></pre>
<p dir="auto">Restore</p>
<pre><code>mongorestore --db databasename --drop databasename-DATE/databasename

mongorestore --db databasename databasename-DATE/databasename
</code></pre>
<p dir="auto">--drop : we’ll make sure that the target database is first dropped so that the backup is restored in a clean database</p>
<p dir="auto">Ref: <a href="https://www.digitalocean.com/community/tutorials/how-to-back-up-restore-and-migrate-a-mongodb-database-on-ubuntu-20-04" rel="nofollow ugc">https://www.digitalocean.com/community/tutorials/how-to-back-up-restore-and-migrate-a-mongodb-database-on-ubuntu-20-04</a></p>
]]></description><link>https://bb.aizu.my/topic/40/mongodb-backup-restore</link><guid isPermaLink="true">https://bb.aizu.my/topic/40/mongodb-backup-restore</guid><dc:creator><![CDATA[aizu]]></dc:creator><pubDate>Sun, 24 Mar 2024 15:45:56 GMT</pubDate></item><item><title><![CDATA[grep - find files]]></title><description><![CDATA[<pre><code>grep -Ril "text-to-find-here" /
</code></pre>
]]></description><link>https://bb.aizu.my/topic/39/grep-find-files</link><guid isPermaLink="true">https://bb.aizu.my/topic/39/grep-find-files</guid><dc:creator><![CDATA[aizu]]></dc:creator><pubDate>Sun, 03 Mar 2024 12:58:19 GMT</pubDate></item><item><title><![CDATA[Generate SSL cert Let&#x27;s Encrypt - certbot]]></title><description><![CDATA[<pre><code class="language-bash"># apt install certbot python3-certbot-nginx
# certbot --nginx -d example.com -d www.example.com
</code></pre>
<p dir="auto">Certbot will modify nginx <strong>/site-available/default</strong> file, and append the 443 entry.</p>
<p dir="auto">It also will install certbot's service for auto renew.</p>
<pre><code># systemctl status certbot.timer
</code></pre>
<p dir="auto">To test the auto-renew.</p>
<pre><code>certbot renew --dry-run
</code></pre>
<p dir="auto">Ref: <a href="https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-20-04" rel="nofollow ugc">https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-20-04</a></p>
]]></description><link>https://bb.aizu.my/topic/31/generate-ssl-cert-let-s-encrypt-certbot</link><guid isPermaLink="true">https://bb.aizu.my/topic/31/generate-ssl-cert-let-s-encrypt-certbot</guid><dc:creator><![CDATA[aizu]]></dc:creator><pubDate>Mon, 18 Sep 2023 08:28:30 GMT</pubDate></item><item><title><![CDATA[nginx conf - cloudflare - get real IP]]></title><description><![CDATA[<pre><code>#Cloudflare

# - IPv4
set_real_ip_from 173.245.48.0/20;
set_real_ip_from 103.21.244.0/22;
set_real_ip_from 103.22.200.0/22;
set_real_ip_from 103.31.4.0/22;
set_real_ip_from 141.101.64.0/18;
set_real_ip_from 108.162.192.0/18;
set_real_ip_from 190.93.240.0/20;
set_real_ip_from 188.114.96.0/20;
set_real_ip_from 197.234.240.0/22;
set_real_ip_from 198.41.128.0/17;
set_real_ip_from 162.158.0.0/15;
set_real_ip_from 104.16.0.0/13;
set_real_ip_from 104.24.0.0/14;
set_real_ip_from 172.64.0.0/13;
set_real_ip_from 131.0.72.0/22;

# - IPv6
set_real_ip_from 2400:cb00::/32;
set_real_ip_from 2606:4700::/32;
set_real_ip_from 2803:f800::/32;
set_real_ip_from 2405:b500::/32;
set_real_ip_from 2405:8100::/32;
set_real_ip_from 2a06:98c0::/29;
set_real_ip_from 2c0f:f248::/32;

real_ip_header CF-Connecting-IP;
</code></pre>
]]></description><link>https://bb.aizu.my/topic/30/nginx-conf-cloudflare-get-real-ip</link><guid isPermaLink="true">https://bb.aizu.my/topic/30/nginx-conf-cloudflare-get-real-ip</guid><dc:creator><![CDATA[aizu]]></dc:creator><pubDate>Fri, 08 Sep 2023 08:45:55 GMT</pubDate></item></channel></rss>