Skip to content

Instantly share code, notes, and snippets.

View rescenic's full-sized avatar
:electron:
AI Engineer

Muhammad Ridwan Hakim, S.T., CPITA, ITPMCP rescenic

:electron:
AI Engineer
View GitHub Profile
@rescenic
rescenic / centos7-set-drupal8-permissions.sh
Created November 12, 2021 17:33 — forked from merolhack/centos7-set-drupal8-permissions.sh
Set SELinux, ACL and common permissions to Drupal 8 over CentOs 7
#!/usr/bin/env bash
set -o errexit
set -o pipefail
set -o nounset
# set -o xtrace
echo "0.- Reestablecer el contexto"
sudo restorecon -Rv /var/www/html
echo "1.- Cambiar propietario del webroot de Apache"
@rescenic
rescenic / .bash_profile
Last active June 9, 2020 10:30 — forked from n-st/.bash_profile
Start zsh from bashrc. Useful when you can't use chsh or when the same LDAP account is used both on systems with zsh installed and ones without.
# .bash_profile is executed for login shells,
# .bashrc is executed for interactive non-login shells.
# We want the same behaviour for both, so we source .bashrc from .bash_profile.
# Also, when .bash_profile exists, bash ignores .profile, so we have to source
# it explicitly.
if [ -f "$HOME/.profile" ]; then
. "$HOME/.profile"
fi
@rescenic
rescenic / configuire.cmd
Created May 28, 2020 16:46 — forked from snallami/configuire.cmd
Reconfigure cygwin
rem This script reconfigures the Cygwin sshd service.
rem It regenerates the computer's host keys. This is necessary
rem when Sysprep is run and a new SID is generated.
@echo off
echo Stopping the Cygwin sshd service...
net stop sshd
echo ERRORLEVEL: %ERRORLEVEL%