Skip to content

Instantly share code, notes, and snippets.

View UbuntuEvangelist's full-sized avatar
🏠
Working from home

Masum UbuntuEvangelist

🏠
Working from home
View GitHub Profile
@UbuntuEvangelist
UbuntuEvangelist / How To Install PHP (8.2, 8.1, 7.4) on Ubuntu 22.04
Last active November 2, 2023 12:30
Install PHP (8.2, 8.1, 7.4) on Ubuntu 22.04
View How To Install PHP (8.2, 8.1, 7.4) on Ubuntu 22.04
sudo apt update && sudo apt upgrade
sudo apt install software-properties-common ca-certificates lsb-release apt-transport-https
LC_ALL=C.UTF-8 sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt install php8.1
# Check active php version php -v
php -v
# Check system php version
php --version
# To install another php version same machine
@UbuntuEvangelist
UbuntuEvangelist / ecosystem.config.json
Created October 2, 2023 19:50 — forked from WebSofter/ecosystem.config.json
Run laravel artisian serve script via pm2
View ecosystem.config.json
{
"apps": [{
"name": "laravel-app",
"script": "artisan",
"args": ["serve", "--host=0.0.0.0", "--port=3333"],
"instances": "1",
"wait_ready": true,
"autorestart": false,
"max_restarts": 1,
"interpreter" : "php",
@UbuntuEvangelist
UbuntuEvangelist / github_desktop_ubuntu.sh
Created September 13, 2023 17:52 — forked from berkorbay/github_desktop_ubuntu.sh
To install Github Desktop for Ubuntu
View github_desktop_ubuntu.sh
## Follow this link for further updates to Github Desktop for Ubuntu https://github.com/shiftkey/desktop/releases/latest
# UPDATE (2022-11-07): Thanks to Sxvxgee's message, the updated code is as follows
sudo wget https://github.com/shiftkey/desktop/releases/download/release-3.1.1-linux1/GitHubDesktop-linux-3.1.1-linux1.deb
### Uncomment below line if you have not installed gdebi-core before
# sudo apt-get install gdebi-core
sudo gdebi GitHubDesktop-linux-3.1.1-linux1.deb
# UPDATE (2021-10-18): Thanks to Amin Yahyaabadi's message, the updated code is as follows
@UbuntuEvangelist
UbuntuEvangelist / Expert Git Support Available
Last active September 12, 2023 17:57
Anything Git Support
View Expert Git Support Available
Are you encountering challenges with Git, the industry-standard version control system? Whether you're a solo developer, a
small team, or a large organization, mastering Git is crucial for efficient code management and collaboration.
Our team of Git experts is here to provide you with the support you need to overcome any Git-related hurdles and ensure
your projects run smoothly.
Contact Telegram @LinuxGin
Our Git Support Services:
Git Troubleshooting: We can quickly diagnose and resolve any Git issues you encounter, such as merge conflicts, repository problems, or performance bottlenecks.
@UbuntuEvangelist
UbuntuEvangelist / How to Install Doxygen on Ubuntu
Created September 5, 2023 21:40
How to Install Doxygen on Ubuntu 22.04.3 LTS (jammy)
View How to Install Doxygen on Ubuntu
Doxygen is the de facto standard tool for generating documentation from annotated C++ sources, but it also supports other popular programming languages such as C, Objective-C, C#, PHP, Java, Python, IDL (Corba, Microsoft, and UNO/OpenOffice flavors), Fortran, and to some extent D. Doxygen also supports the hardware description language VHDL.
sudo apt-get install flex
sudo apt-get install bison
git clone https://github.com/doxygen/doxygen.git
cd doxygen
@UbuntuEvangelist
UbuntuEvangelist / How to install theHarvester on Ubuntu 20.04 LTS
Last active August 18, 2023 04:47
How to install theHarvester on Ubuntu
View How to install theHarvester on Ubuntu 20.04 LTS
apt update && apt upgrade -y
apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev wget libbz2-dev
apt install build-essential checkinstall
apt autoremove
apt install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev zlib1g-dev
cd /opt
wget https://www.python.org/ftp/python/3.11.0/Python-3.11.0.tgz
tar xzf Python-3.11.0.tgz
rm -f Python-3.11.0.tgz
cd Python-3.11.0
View running_app_in_production_locally.markdown
  1. Add gem 'rails_12factor' to your Gemfile. This will add error logging and the ability for your app to serve static assets.
  2. bundle
  3. Run RAILS_ENV=production rake db:create db:migrate db:seed
  4. Run rake secret and copy the output
  5. From the command line: export SECRET_KEY_BASE=output-of-rake-secret
  6. To precompile your assets, run rake assets:precompile. This will create a folder public/assets that contains all of your assets.
  7. Run RAILS_ENV=production rails s and you should see your app.

Remember to clobber your assets (rake assets:clobber) and re-precompile (rake assets:precompile) if you make changes.

@UbuntuEvangelist
UbuntuEvangelist / PHP Installation Commands For Ubuntu Linux
Last active July 18, 2023 11:26
PHP Installation Commands For Ubuntu
View PHP Installation Commands For Ubuntu Linux
sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt install php8.2 -y
View Install Android Studio in Ubuntu
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 libbz2-1.0:i386
sudo apt install openjdk-11-jdk
sudo add-apt-repository ppa:maarten-fonville/android-studio
sudo apt update
sudo apt install android-studio
@UbuntuEvangelist
UbuntuEvangelist / integrating issabel to flexisip
Created May 5, 2023 16:15
integrating issabel to flexisip
View integrating issabel to flexisip
Integrating Issabel with Flexisip involves configuring the two systems to work together so that you can make and receive calls using Issabel and Flexisip. Here are the steps to integrate Issabel with Flexisip:
Install and configure Issabel: Install Issabel on your server and configure it to work with your SIP trunk provider. This involves setting up your SIP credentials and configuring your inbound and outbound routes.
Install and configure Flexisip: Install Flexisip on your server and configure it to work with Issabel. This involves setting up your SIP account and configuring the SIP domain.
Configure Issabel to use Flexisip: In the Issabel GUI, go to PBX > PBX Configuration and click on Trunks. Add a new SIP trunk and enter the following details:
Trunk name: Enter a name for the trunk
Outbound Caller ID: Enter your phone number