Skip to content

Instantly share code, notes, and snippets.

View nwaweru's full-sized avatar
🤙
Available

Ndirangu Waweru nwaweru

🤙
Available
View GitHub Profile
@nwaweru
nwaweru / switching-php-from-8.1-to-8.2.txt
Last active December 15, 2022 04:37
Switching from php8.1 to php8.2
- Install php 8.2 and some extensions (varies by project/use)
sudo apt install -y php8.2 php8.2-{mysql,curl,zip,xml,gd,mbstring}
- Switch to the new php 8.2
sudo update-alternatives --config php

MySQL Cheat Sheet

Help with SQL commands to interact with a MySQL database

MySQL Locations

  • Mac /usr/local/mysql/bin
  • Windows /Program Files/MySQL/MySQL version/bin
  • Xampp /xampp/mysql/bin

Add mysql to your PATH

@nwaweru
nwaweru / deploy.php
Created March 11, 2020 07:37 — forked from mtwalsh/deploy.php
Deployer recipe for Laravel projects.
<?php
namespace Deployer;
require 'recipe/common.php';
// Project name
set('application', 'enovate.co.uk');
// Project repository
set('repository', 'git@githosting.com:enovatedesign/project.git');
@nwaweru
nwaweru / virtualHost.conf
Created March 11, 2020 00:05 — forked from bvipul/virtualHost.conf
For Adding virtual hosts file for Laravel projects
<VirtualHost *:80>
ServerAdmin admin@server.in
ServerName server.in
ServerAlias server.in
<Directory /var/www/html/project/public>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
DocumentRoot /var/www/html/project/public/