Skip to content

Instantly share code, notes, and snippets.

View mgmgpyaesonewin's full-sized avatar
πŸ’
coding

Pyae Sone Win mgmgpyaesonewin

πŸ’
coding
View GitHub Profile
@mgmgpyaesonewin
mgmgpyaesonewin / nginx.conf
Created February 23, 2022 03:28
Enable Gzip compression in Laravel assets #laravel #php #nginx
In order to enable Gzip compression on your NGINX web server,
first open your NGINX's default configuration file: sudo vim /etc/nginx/nginx.conf,
and replace the existing Gzip settings with the following:
nginx.conf (you can modify the settings below according to your needs)
# Enable Gzip
gzip on;
gzip_http_version 1.0;
gzip_comp_level 2;
https://marc.vos.net/howto/oracle-oci8/
$data = [
// string - Merchant Name for Payment Screen
'merchant_name' => "Wave Merchant",
// string - Merchant id provided by Wave Money
'merchant_id' => "wavemerchant",
// unsigned integer - Time to live for Transaction (seconds)
'timeToLiveSeconds' => 300,
Java 4 hrs 15 mins β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Œβ–‘β–‘β–‘ 83.9%
PHP 37 mins β–ˆβ–ˆβ–Œβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 12.4%
YAML 5 mins β–Žβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 1.7%
Bash 4 mins β–Žβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 1.3%
.env file 2 mins ▏░░░░░░░░░░░░░░░░░░░░ 0.7%
@mgmgpyaesonewin
mgmgpyaesonewin / backup.sh
Created January 23, 2021 04:38
Backup Mongodb Database Archive in gzip format according to date
mongodump --db <db-name> --gzip --archive > dump_`date +"%d-%m-%Y"`.gz
@mgmgpyaesonewin
mgmgpyaesonewin / downloadFile.md
Last active December 4, 2020 02:51
Download HTTP directory with all files and sub-directories files/folders list.
wget -r -np -nH -w --cut-dirs=2 -R index.html https://www.jobmedia.com.mm/files/cv/
  • -r : recursively
  • -np : not going to upper directories, like ccc/…
  • -nH : not saving files to hostname folder
  • --cut-dirs=2 : but saving it to ddd by omitting first 3 folders files, cv
  • -R index.html : excluding index.html files
// extract from TELENOR https://ecaf.telenor.com.mm/?orcf=1&lang=my
const townships = [
[
"AhGaYa",
"BaMaNa",
"DaHpaYa",
"HaPaNa",
"HpaKaNa",
"KaMaNa",
sudo chown -R $USER:$USER .
https://github.com/jeroennoten/Laravel-AdminLTE
https://www.larablocks.com/package/jeroennoten/laravel-adminlte
oldquestion_tag table
password_resets table
telescope_entries_tags table
telescope_monitoring table