Check this out on Dev.to
- How to handle SSH keys with ec2-github actions https://zellwk.com/blog/github-actions-deploy/
- SSH_PRIVATE_KEY
- HOST_NAME / IP_ADDRESS
[PHP] | |
;;;;;;;;;;;;;;;;;;; | |
; About php.ini ; | |
;;;;;;;;;;;;;;;;;;; | |
; PHP's initialization file, generally called php.ini, is responsible for | |
; configuring many of the aspects of PHP's behavior. | |
; PHP attempts to find and load this configuration from a number of locations. | |
; The following is a summary of its search order: |
LEMP Stack Setup - Ubuntu | |
=================================Install Nginx ========================== | |
sudo apt update | |
sudo apt install nginx | |
sudo ufw status | |
sudo ufw app list | |
i. sudo ufw allow 'Nginx Full' | |
ii. sudo ufw allow 'OpenSSH' |
#!/bin/bash | |
# Get the dictionary data file... run it just once... | |
# put those 3 files at ~/bin directory and give execution permission | |
cd ~/bin | |
wget https://www.mit.edu/~ecprice/wordlist.10000 -o wordlist.10000.txt |
# Nginx.conf | |
# Project 1(Path: /var/www/msdsl/shipment, Url: http://192.168.0.132) | |
# Project 2(Path: /var/www/msdsl/restora, Url: http://192.168.0.132/restora) | |
# Project 3(Path: /var/www/msdsl/tposreport, Url: http://192.168.0.132/tposreport) | |
server { | |
# Listing port and host address | |
# If 443, make sure to include ssl configuration for the same. | |
listen 80; | |
listen [::]:80; |
on: | |
push: | |
branches: [ production ] | |
name: Phpdark.com Deployment | |
jobs: | |
FTP-Deploy-Action: | |
name: FTP-Deploy-Action | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master |
Check this out on Dev.to
#!/bin/sh | |
set -e | |
vendor/bin/phpunit | |
npm run prod | |
git add . | |
(git commit -m "Build frontend assets for deployment to production") || true | |
(git push) || true |
<?php | |
class Bengali | |
{ | |
// Numbers | |
public static $bn_numbers = ["১", "২", "৩", "৪", "৫", "৬", "৭", "৮", "৯", "০"]; | |
public static $en_numbers = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "0"]; | |
// Months | |
public static $en_months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']; | |
public static $en_short_months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'June', 'July', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; |
#protonmail #centos #fedora #linux
Currently protonmail bridge for linux is distributed as part of an open beta program, but soon it will be made public (https://protonmail.com/bridge/install).
Consider that the bridge linux client requires a paid protonmail account to work.