Skip to content

Instantly share code, notes, and snippets.

View thanhdevapp's full-sized avatar

thanhdevapp thanhdevapp

  • Ha Noi, Viet Nam
  • 22:48 (UTC +07:00)
View GitHub Profile
@thanhdevapp
thanhdevapp / ecosystem.config.js
Created November 13, 2024 02:03
strapi 4, 5 typescript + pm2 script
module.exports = {
apps: [
{
name: "strapi-app-backend-crawler",
script: 'server.js', // Điểm khởi động là server.js
watch: false,
env: {
NODE_ENV: "development"
},
env_production: {
Bên mình build IOS thì gặp lỗi sau:
dyld[1887]: Symbol not found: _$s9Alamofire11RetryResultO05doNotB0yA2CmFWC
Referenced from: <A9C2D6D3-D89A-33FD-90DB-FCDDC4FD4122> /private/var/containers/Bundle/Application/CBB8B2A4-10D2-4D1D-BBB5-2C1F3D3DD3D3/maxQ.app/Frameworks/PVCBeKYC.framework/PVCBeKYC
Expected in: <0FBD319F-3398-30E7-B4EF-08CFF7CE53B4> /private/var/containers/Bundle/Application/CBB8B2A4-10D2-4D1D-BBB5-2C1F3D3DD3D3/maxQ.app/Frameworks/Alamofire.framework/Alamofire
Message from debugger: killed
PUT /api/Customer/username HTTP/1.1
Host: api2.pronexus.com.vn
Content-Type: application/json
Cookie: .AspNet.Cookies=ALTb5ZeOsGf8umWsYpBG_ljdn4gjNNdjdksBgsYTUMy95cq2KWAdK2FDWooUw7lZVTvo26O_q_bJgti1A--HjWwl0C5O1v1-9a04YHgUfklRa-qIt8jo3VL2mAhVxI0i6NkU01mdEgwamWwJKajwbcXVAcZk6TQj2hEvUDriYnRaU2xE2NWVOcOA92D1INwEY1TsMwbvHMk8PyHH0Ovw2rpNf-YVPj4dwPIbsxT04KgwXsZSZM4UXXR47ibgNf76QQSCRCY2zxrzBaxfZ9aNbY_SwJ5ujno7IeXqCBX7CuH-7vyDl4Kko83w2QjiJWiGsWtEgblm8nieh7yXFAWLZqsyaQElZ-fekiOcJbi8cuzhZUTZ1sls1Fq3A61Rwm2tdmVmwgklwfTLbkEHLiws2YOaQPWpxgHa832E0iSqas4xHpxcqd7eyCDM8bykOQGToOke8GfaqIK2fI9hRC48FHnwTGZxOwZ_J1bNUcXSyrA
User-Agent: ProNexus/79 CFNetwork/1312 Darwin/21.1.0
Connection: keep-alive
Accept: application/json
Accept-Language: en-US,en;q=0.9
Authorization: Bearer tO8zcWD-eZi3Nmbu21XlL82vu3TfOo9JboAT-LdxS8oY2px3WlRGAN_rIMYIfFI9ZODISvJJRxtCwG-DXs3-g1Z3bPlewqKui3L82aUz3yui4VPjhrgKz28zU6dOtWke2dAEU_3ZvKz99ZYC7gaoyN50dMRQjTFeCPL0CJQ4CDLF5kJlrycEZULzZ9hXOSV0gH2MIqB7KQH_z-92y8gLrRX7FCUGBsktKIUV0tM7gXDPWR8JMYugSBwvTFQq8EQU1SO
@thanhdevapp
thanhdevapp / docker-compose-backup.sh
Created March 16, 2021 06:24 — forked from pirate/docker-compose-backup.sh
Backup a docker-compose project, including all images, named and unnamed volumes, container filesystems, config, logs, and databases.
#!/usr/bin/env bash
### Bash Environment Setup
# http://redsymbol.net/articles/unofficial-bash-strict-mode/
# https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html
# set -o xtrace
set -o errexit
set -o errtrace
set -o nounset
set -o pipefail
@thanhdevapp
thanhdevapp / idea-reset-evaluation.sh
Created November 5, 2020 02:10 — forked from lzhoucs/idea-reset-evaluation.sh
reset intellij idea 14 evaluation
#!/bin/bash
echo "removing evaluation key"
rm ~/.IntelliJIdea15/config/eval/idea15.evaluation.key
# for mac go to: /Users/username/Library/Preferences/IntelliJIdea2016.3/eval/idea163.evaluation.key
echo "resetting evalsprt in options.xml"
sed -i '/evlsprt/d' ~/.IntelliJIdea15/config/options/options.xml
# for mac go to: /Users/lzhoucs/Library/Preferences/IntelliJIdea2016.3/options/options.xml
@thanhdevapp
thanhdevapp / gist:03184ea440d77c1e0001f13ef519f6e6
Created March 7, 2019 16:47
Create service dotnet core linux hosting
1: run command
sudo vi /etc/systemd/system/yourservice.service
2. copy paste to file
[Unit]
Description=Example .NET Web API App running on Ubuntu
[Service]
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.net>
<defaultProxy>
<proxy usesystemdefault="true" proxyaddress="http://45.117.171.21:6868" bypassonlocal="true" />
</defaultProxy>
</system.net>
<system.webServer>
<rewrite>
<outboundRules>
@thanhdevapp
thanhdevapp / cloudSettings
Last active August 13, 2018 08:59
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-08-13T08:55:14.737Z","extensionVersion":"v3.0.0"}
try {
function getNextSequenceValue(sequenceName){
var sequenceDocument = db.getCollection('counters').findAndModify({
query:{_id: sequenceName },
update: {$inc:{sequence_value:1}},
new:true
});
@thanhdevapp
thanhdevapp / cloudSettings
Created December 11, 2017 03:01
Visual Studio Code Settings Sync Gist
{"lastUpload":"2017-12-11T03:01:50.945Z","extensionVersion":"v2.8.7"}