Skip to content

Instantly share code, notes, and snippets.

View AndreSlim's full-sized avatar
Free software is a matter of liberty, not price.

Andrés Domínguez AndreSlim

Free software is a matter of liberty, not price.
  • Tehuacán, Puebla, México
  • 06:36 (UTC -06:00)
View GitHub Profile
@claudiosanches
claudiosanches / changing-php-version.md
Last active January 23, 2023 02:19
Changing PHP version on Ubuntu

Apache

sudo a2dismod php8.0
sudo a2enmod php7.4
sudo service apache2 restart

Command line

@pokisin
pokisin / instalacion.md
Last active June 29, 2023 21:23
Instalar LAMP en arch linux (Manjaro)

Pasos para instalar LAMP en Manjaro

  1. Abrimos la terminal y ejecutamos la siguiente linea para actualizar la base de datos de los paquetes
  sudo pacman -Syu
  1. Instalamos el apache y ejecutamos lo siguiente
  sudo pacman -S apache
@dario2994
dario2994 / mod_rewrite_guide.md
Last active April 6, 2024 18:18
Enable mod_rewrite in apache
  • Apache configuration file

    • ubuntu -> /etc/apache2/apache2.conf
    • arch -> /etc/httpd/conf/httpd.conf
  • Add mod_rewrite and .htaccess support for your site At the end of the configuration files add these lines:

    #My site mod_rewrite configuration
    <Directory "/ABSOLUTE/PATH/YourSite">
      AllowOverride All
    
@jelcaf
jelcaf / Operaciones-Git
Last active May 15, 2024 15:31
Git Tips - Mini-trucos de Git para facilitarme la tarea
#############################################
# Push de la rama actual
git push origin $rama_actual
#############################################
# Volver a un commit anterior, descartando los cambios
git reset --HARD $SHA1
#############################################
# Ver y descargar Ramas remotas