Skip to content

Instantly share code, notes, and snippets.

View bryanisimo's full-sized avatar

Bryan González Alcíbar bryanisimo

View GitHub Profile
@bryanisimo
bryanisimo / creating-user.sh
Last active December 24, 2019 09:29
Medium - Creating passwordless user and adding it to www-data group
# Creating passwordless user
sudo adduser --home '/home/bry' --disabled-login --gecos 'Bryan' bry
# Making user's default group www-data
sudo usermod -g www-data bry
# We shoud generate a deploy key
sudo su - bry
ssh-keygen -t rsa -b 4096 -C "bry@server"
cat .ssh/id_rsa.pub
@bryanisimo
bryanisimo / php72_installation.sh
Last active March 7, 2018 02:25
unlock repositories in RHEL PHP, Redhat "Security"
# Reenabling blocked repos
vim /etc/yum/pluginconf.d/search-disabled-repos.conf
# set notify_only to zero
# notify_only=0
# So now you can install all the dependencies for laravel
yum --enablerepo=remi,remi-php72 install php-pecl-apcu php-cli php-pear php-pdo php-mysqlnd php-pgsql php-pecl-mongodb php-pecl-memcache php-pecl-memcached
yum --enablerepo=remi,remi-php72 install php-gd php-mbstring php-mcrypt php-xml php-pecl-imagick
yum --enablerepo=remi,remi-php72 install php-pecl-zip
@bryanisimo
bryanisimo / no-active-boder.css
Created May 25, 2017 16:52
Removing on focus active border
a:focus,
a:active,
button:focus,
button:active,
div:focus,
div:active,
select:focus,
select:active,
video:focus,
video:active
@bryanisimo
bryanisimo / development-setup-el-capitan
Last active September 26, 2024 02:52
Installing NGINX+PHP+MYSQL+DNSMASQ in OSX "El Capitan"
#!bash
# Removing apache from autostart
sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist
brew tap homebrew/services
# Installing NGINX
brew install nginx
# Adding NGINX to autostart
ln -sfv /usr/local/opt/nginx/*.plist ~/Library/LaunchAgents