Skip to content

Instantly share code, notes, and snippets.

View mgmgpyaesonewin's full-sized avatar
🐒
coding

Pyae Sone Win mgmgpyaesonewin

🐒
coding
View GitHub Profile
$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
before_script:
- echo "Before script"
- cd /var/www/html/{your-project-name} #your project path
building:
stage: build
script:
- git reset --hard
- git pull origin develop
- composer install
- cp .env.example .env
How to set SSH key for multiple users?
Switch to the user:
su a
Generate SSH keys:
ssh-keygen
{hit enter a few times}
Create/edit authorized keys file: