Skip to content

Instantly share code, notes, and snippets.

View imanimanyara's full-sized avatar
👋
I may be slow to respond.

Imani Manyara imanimanyara

👋
I may be slow to respond.
View GitHub Profile
@imanimanyara
imanimanyara / country-code-to-currency-code-mapping.csv
Created May 22, 2024 23:38 — forked from HarishChaudhari/country-code-to-currency-code-mapping.csv
Country, Country Code, Currency code mapping in CSV format Taken from https://gist.github.com/304261 Contains 249 countries.
Country CountryCode Currency Code
New Zealand NZ New Zealand Dollars NZD
Cook Islands CK New Zealand Dollars NZD
Niue NU New Zealand Dollars NZD
Pitcairn PN New Zealand Dollars NZD
Tokelau TK New Zealand Dollars NZD
Australian AU Australian Dollars AUD
Christmas Island CX Australian Dollars AUD
Cocos (Keeling) Islands CC Australian Dollars AUD
Heard and Mc Donald Islands HM Australian Dollars AUD

If .DS_Store was never added to your git repository, simply add it to your .gitignore file.

If you don't have one, create a file called

.gitignore

In your the root directory of your app and simply write

@imanimanyara
imanimanyara / makefile
Created February 18, 2024 19:13 — forked from allebb/makefile
Laravel makefile for projects with Git and MySQL
# == Git repo ==
repo=my_awesome_repo
# === Artisan ====
p=8000
# ===== DB =======
db_username=user
db_password=password
db_name=laravel
db_file=my_db.sql
# === Server connection =====
@imanimanyara
imanimanyara / commit-message-template.txt
Created February 18, 2024 19:03 — forked from jatubio/commit-message-template.txt
Git commit template for laravel projects
# Type(<scope>): <subject>
# Type: core, feat, fix, docs, style, refactor, test, chore, git, merge, composer
# Git Operations (Prefix with): Cherry-Pick To Develop: <cpd!>, Squash|Fixup|Skip|Split: <squash!|fixup!|skip!|split!>, Temp: <tmp!|temp!>
# For Cherry-Pick (Prefix with): cpick(<branch>)
# Scope: controllers, models, repositories
# Subject: (This commit) <verb: 'add, fix, delete, modify'> subject
# <body>
@imanimanyara
imanimanyara / .env.github
Created January 28, 2024 18:34 — forked from hofmannsven/.env.github
Notes on working with GitHub Actions and Laravel Nova.
APP_ENV=ci
APP_KEY=
APP_DEBUG=true
APP_URL=https://localhost
LOG_CHANNEL=stack
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=33306
@imanimanyara
imanimanyara / command.sh
Created January 28, 2024 02:11 — forked from kresnasatya/command.sh
Deploy Laravel with Deployer in Github Actions
# Create user deployer with root account
adduser deployer
# Append (-a) a secondary group (-G) "www-data" to user "deployer"
usermod -a -G www-data deployer
# See groups assigned to user "deployer"
groups deployer
# Add ACL permission in /var/www
@imanimanyara
imanimanyara / Turn off the CRLF will be replaced by LF.md
Created January 28, 2024 00:38 — forked from NateWeiler/Turn off the CRLF will be replaced by LF.md
How to turn off the “CRLF will be replaced by LF” warning

How to turn off the “CRLF will be replaced by LF” warning

CRLF: Line breaks in windows environment

LF : Line breaks in linux environment

The meaning of this error is that there are two newline characters in the file, git will automatically replace CRLF with LF, so a warning is given.

warning: CRLF will be replaced by LF in [File] . The file will have its original line endings in your working directory.

Turn the auto-conversion feature off in the settings

@imanimanyara
imanimanyara / deploy.sh
Created January 27, 2024 22:16 — forked from BenSampo/deploy.sh
Laravel deploy script
# Change to the project directory
cd $FORGE_SITE_PATH
# Turn on maintenance mode
php artisan down || true
# Pull the latest changes from the git repository
# git reset --hard
# git clean -df
git pull origin $FORGE_SITE_BRANCH
@imanimanyara
imanimanyara / guidelines.md
Created January 27, 2024 21:18 — forked from mindfullsilence/guidelines.md
Theme Developers Guide

Theming Rules:

The following guidelines have been written to provide optimal performance, scalability, maintainability, and flexibility within a CMS system.

This document uses the following conventions to express intent:

  • SHALL: The statement that follows must always be followed.
  • SHALL NOT: The statement that follows must never happen.
  • SHOULD: If the statement that follows can happen, then it must happen.
  • SHOULD NOT: If the statement that follows doesn't need to happen, then it must not happen.
@imanimanyara
imanimanyara / README.md
Created January 27, 2024 21:17 — forked from mindfullsilence/README.md
Deployment scripts for atomic deployment of laravel applications in runcloud

Runcloud Automic Deployment Script For Laravel Applications

These scripts can be used to set up automic deployments in runcloud for laravel applications