Skip to content

Instantly share code, notes, and snippets.

View va0000ll's full-sized avatar
🎯
Focusing

mohamedvall ibrahim va0000ll

🎯
Focusing
View GitHub Profile
@va0000ll
va0000ll / rails_new_options_help.md
Created March 22, 2022 13:12 — forked from kirillshevch/rails_new_options_help.md
List of "rails new" options to generate a new Rails 6 application

Run rails new --help to view all of the options you can use to generate new Rails application:

Output for Rails 6+

Usage:
  rails new APP_PATH [options]

Options:
      [--skip-namespace], [--no-skip-namespace]              # Skip namespace (affects only isolated applications)
@va0000ll
va0000ll / rails_new_help_output.md
Created March 22, 2022 13:10 — forked from eliotsykes/rails_new_help_output.md
"rails new" options explained

Run rails new --help to view all of the options you can pass to rails new:

$ bin/rails new --help
Usage:
  rails new APP_PATH [options]

Options:
  -r, [--ruby=PATH]                                      # Path to the Ruby binary of your choice
                                                         # Default: /Users/eliot/.rbenv/versions/2.2.0/bin/ruby
@va0000ll
va0000ll / deploy-rails.md
Last active April 2, 2022 01:43
Deploy rails app to ubuntu on DigitalOcean droplet with Sidekiq and let's encrypt

To create let's ecrypt certificate excute this command

certbot --nginx -d example.com -d www.example.com

nginx virtual host with let's encrypt

ln -s /etc/nginx/sites-available/example.com /etc/nginx/sites-enabled/example.com

server {
    root /home/rails/appname/public;
    server_name example.com www.example.com;
    index index.htm index.html;
@va0000ll
va0000ll / Build Android Binary.md
Created December 29, 2020 23:19 — forked from nvanselow/Build Android Binary.md
Generate Android Signed APK File for Google Play with Ionic
  1. Navigate to the project folder

  2. In the command line run ionic build android --release

  3. Then in the command line run jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore platforms/android/build/outputs/apk/android-release-unsigned.apk alias_name

    Change "my-release-key.keystore" and "alias_name" to match your app. You may also need to change the name of the apk file.

    Also, after the build process in step 2, you should see the path to your release apk at the bottom of the output.

  4. The zipalign -v 4 platforms/android/build/outputs/apk/android-release-unsigned.apk MyApp.apk

You may need to change the name of the apk file. The signed apk will be in the main folder unless you specify a different folder.

@va0000ll
va0000ll / nginx-laravel-subdirectory.conf
Created December 29, 2020 19:19
deploy laravel to nginx configuration
location ^~ /folder {
alias /var/www/public_html;
try_files $uri $uri/ @folder_name;
location ~ \.php {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
fastcgi_param SCRIPT_FILENAME /var/www/public_html/index.php;
}
}