Skip to content

Instantly share code, notes, and snippets.

View ra7bi's full-sized avatar
🔨
Try Harder

Fahad ra7bi

🔨
Try Harder
  • Freelancer
  • Muscat Oman
View GitHub Profile
@ra7bi
ra7bi / apache-nginx-ftp
Created March 21, 2021 06:35 — forked from solancer/apache-nginx-ftp
Correct permissions for /var/www/html
// Adding current user to www-data
sudo adduser $USER www-data
//change ownership to user:www-data and
sudo chown $USER:www-data -R /var/www/html
sudo chmod u=rwX,g=srX,o=rX -R /var/www/html
// change file permissions of existing files and folders to 755/644
sudo find /var/www/html -type d -exec chmod g=rwxs "{}" \;
@ra7bi
ra7bi / rPi3-ap-setup.sh
Created November 17, 2018 18:30 — forked from Lewiscowles1986/rPi3-ap-setup.sh
Raspberry Pi 3 access-point-setup
#!/bin/bash
#
# This version uses September 2017 august stretch image, please use this image
#
if [ "$EUID" -ne 0 ]
then echo "Must be root"
exit
fi
@ra7bi
ra7bi / ubuntu-webserver-setup.md
Created October 24, 2018 06:36
Ubuntu Webserver Setup
@ra7bi
ra7bi / AppDelegate.cs
Last active September 19, 2017 21:04 — forked from gfosco/AppDelegate.cs
Parse Push on Xamarin iOS
using System;
using System.Collections.Generic;
using System.Linq;
using Foundation;
using Parse;
using UIKit;
namespace x2coder.iOS
{
[Register("AppDelegate")]
@ra7bi
ra7bi / vagrant-cheat-sheet.md
Created May 13, 2017 21:13 — forked from wpscholar/vagrant-cheat-sheet.md
Vagrant Cheat Sheet

Typing vagrant from the command line will display a list of all available commands.

Be sure that you are in the same directory as the Vagrantfile when running these commands!

Common Vagrant Commands

  • vagrant up -- starts vagrant environment (also provisions only on the FIRST vagrant up)
  • vagrant status -- outputs status of the vagrant machine
  • vagrant halt -- stops the vagrant machine
  • vagrant reload -- restarts vagrant machine, loads new Vagrantfile configuration
  • vagrant provision -- forces reprovisioning of the vagrant machine