Advanced Search
Search Results
95 total results found
Docker
oracle
postgresql
python
Misc
UI/UX
ckeditor 5
https://www.jsdelivr.com/package/npm/ckeditor5-classic-free-full-feature https://cdn.jsdelivr.net/npm/ckeditor5-classic-free-full-feature@35.4.1/build/ckeditor.min.js ClassicEditor.create(document.querySelector('#editor')) .then(editor => { ...
composer 1 memory limit
## issuecomposer will run into memory limit due to memory leak when checking lot of package. ## solution: ### temporary usage unlimited memory php -d memory\_limit=-1 /usr/local/bin/composer require prettus/l5-repository /usr/bin/composer php -d memory\_l...
Connection Refused MySQL
https://chatgpt.com/share/67b548c2-8cc8-8013-ab45-89a4457eed65 1. sudo nano /etc/my.cnf> ensure bind address = 0.0.0.0 > sudo systemctl restart mysql ensure # skip-networking is commentedensure #block_encryption_mode and check ssl version compatible ...
Curl
simple curl GET ``shcurl "https://api.onesignal.com"`` simple curl POST ``shcurl -X "POST" "https://api.onesignal.com"`` curl with json request and header ``shcurl -X "POST" "https://iems.kpdn.gov.my/oauth/token" \ -H 'Content-Type: application/json; ...
Docker
```$ docker run --name test-mysql -e MYSQL_ROOT_PASSWORD=strong_password -d mysql```
Email relay mygovuc
# check ip tu ada akses atau tak ```curl https://postmaster.mygovuc.gov.my/cgi-bin/myip``` # telnet (windows / linux) using CMD * ``telnet postmaster.mygovuc.gov.my 25``* ``EHLO bmt.mampu.gov.my``* ``MAIL FROM: shaiful@mampu.gov.my``* ``RCPT TO: mampu2288@...
git assume unchange
git update-index --no-assume-unchanged <> git update-index --assume-unchanged <>
basic guide with git
1) Copy .env.example to .env: cp .env.example .env ATAU Copy-Item .env.example -Destination .env Kalau env.example takdak, manual ja buat file pastu copy content dari project lain 2) Install dependencies: composer install **In case kalau problem gak, ru...
install in centos
# Centos 8 Stream ``sudo dnf upgrade --refresh -y`` EPEL ``sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm`` REMI ``sudo dnf install dnf-utils http://rpms.remirepo.net/enterprise/remi-release-8.rpm`` ## if old php ...
limit keyin by number only
pada input, gunakan onkeypress 'onkeypress' => 'return isNumber(event)' tambah function pada javascript ```jsfunction isNumber(evt) { evt = (evt) ? evt : window.event var charCode = (evt.which) ? evt.which : evt.keyCode if (charCode === 46) { // fo...
Laragon to Open 2 Different System with different PHP version
Terminal Project with PHP7.4```cmd.exe /k "set PATH=C:\laragon\bin\php\php-7.4.33-nts-Win32-vc15-x64;%PATH%"```Terminal Project with PHP8.3```cmd.exe /k "set PATH=C:\laragon\bin\php\php-8.3.7-nts-Win32-vs16-x64;%PATH%"``` After run that command, you can use c...
laravel cron setting
```shvi /etc/crontab``` jangan guna crontab -e, cron tak jalan betul nanti. ```sh* * * * * root cd /var/www/html/<namaprojek> && php artisan schedule:run >> /dev/null 2>&1```
session expired
1. check ``SESSION_SECURE_COOKIE`` setting in ``.env`` or ``config/session`` if its true, then ssl is needed. if open webapp using ip without https. make it false 2. force https in ``AppServiceProvider`` if its true, then ssl is needed. 3. low ``output_buf...
nginx basic ssl config
```server { listen 80 default_server; listen [::]:80 default_server; location / { return 301 https://$host$request_uri; }} server { listen 443 ssl http2; listen [::]:443 ssl http2; ssl_certificate /path/to/signed_cert_plus_inte...
NPT
# Centos 7 ```install: yum install ntp -y``` ``vi /etc/ntp.conf`` ``server 192.168.1.100 iburst`` ``systemctl restart ntp`` ``check ntp: ntpq -p`` # Centos 8 ``install: dnf install chrony`` ``vi /etc/chrony.conf`` ``server 192.168.1.100 iburst`` ``sy...
NuxtJS install
versi node terkini yang disokong adalah 12-16 (sila pastikan versi node adalah LTS yang disokong pada masa semasa) untuk macos, digalakkan pasang node menggunakan nvm [pasang node guna NVM](https://www.newline.co/@Adele/how-to-install-nodejs-and-npm-on-macos-...
opengraph OG
# sago v2 ```html<link rel="icon" type="image/png" href="{{asset('build/assets/img/logo-sago-rumbia-xs.png')}}" /><link rel="icon" type="image/png" href="{{asset('build/assets/img/logo-sago-rumbia-xs.png')}}"><link rel="icon" href="{{asset('build/assets/img/l...
Oracle Sample Connection String
```ORCL = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = hostname)(PORT = port)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl) ) )```
oracle setting
ORA-12518, TNS:listener could not hand off client connection Services required to run oracle in windows OracleOraDB19Home1TNSListenerOracleServiceorcl If one of the services is down, create it manually :Open command promptcd C:\Users\blue_\Downloads\orac...
linux permission
# chown ``chown user directory`` > chown ali /var/www/html/project/index.php> chown ali /var/www/html/project - this will assign user of the target directory or file to ali. ``chown -R user directory`` - this will assign user of target directory and all i...