Skip to content

Instantly share code, notes, and snippets.

View dalthonmh's full-sized avatar
🔥
Code code code

Dalthon dalthonmh

🔥
Code code code
View GitHub Profile
@dalthonmh
dalthonmh / MacOS-Xampp-Instalation-Guide.md
Created July 21, 2024 18:04 — forked from Udara-Dananjaya/MacOS-Xampp-Instalation-Guide.md
macOS XAMPP Installation and Composer Setup Guide

Step-by-step instructions for installing XAMPP, configuring paths, and installing Composer on macOS:

Install XAMPP:

  1. Go to XAMPP download page and download the DMG file.
  2. Open the downloaded DMG file.
  3. Press F4 and search for "Privacy and Security."
  4. In the "Security" section, you'll find the blocked app. Click "Open Anyway" to continue with the installation.
  5. Start the XAMPP services.
#/bin/bash
#cambiar nombre archivos
#sirve para cambiar el nombre de carpetas de punto a guión: 2024.05.02 a 2024-05-02
#autor: [email protected] fecha: 24/05/2024
# Años a considerar
years=("2022" "2023" "2024")
# Iterar sobre cada año definido
for year in "${years[@]}"; do
server {
listen 80;
listen [::]:80;
server_name _;
root D:\APP\dist\velzon;
index index.html;
location / {
try_files $uri $uri/ /index.html;
@dalthonmh
dalthonmh / install.nginx.sh
Created February 26, 2024 11:05
Bash to install nginx in linux server
#!/bin/bash
# Programa para instalar nginx en un servidor linux
# Autor: Dalthon [email protected]
echo "Instalando nginx"
sudo apt update
sudo apt install nginx -y
sudo systemctl restart nginx
sudo systemctl enable nginx
echo "DONE"
@dalthonmh
dalthonmh / sleep-demo.sh
Created April 30, 2023 23:33
Ejemplo de documentar script, comando sleep unix
#!/bin/bash
# Name: sleep-demo.sh
# Purpose: bash script examples that demos sleep command
# Author: Vivek Gite {https://www.cyberciti.biz}
# -----------------------------------------------------------
SLEEP_TIME="10"
echo "Current time: $(date +%T)"
echo "Hi, I'm sleeping for ${SLEEP_TIME} seconds ..."
sleep ${SLEEP_TIME}
echo "All done and current time: $(date +%T)"
@dalthonmh
dalthonmh / tailwidncss-background-linear-gradient.jsx
Created August 30, 2022 18:34
Tailwindcss background linear gradient image
/**
* Tailwindcss background linear gradient image
* "tailwindcss": "^3.1.8"
* dalthonmh
*/
function MyCard({ grupo }) {
const { number, name, numberOfPrograms, image, color } = grupo;
return (
<div
className="w-full h-96 bg-no-repeat bg-cover relative rounded-lg"
@dalthonmh
dalthonmh / gist:aba62d853dcaceb294e2080d2517de51
Created March 26, 2022 13:16
Install Docker on Windows (WSL) without Docker Desktop...Easy steps!!!
wsl -l -v
wsl --set-version Ubuntu 2
sudo apt-get update
sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common libssl-dev libffi-dev git wget nano
sudo groupadd docker
server {
listen 80;
listen [::]:80;
server_name _;
root /var/www/dist;
index index.html;
location / {
#!/bin/bash
# must enable execution permission with:
# sudo chmod 774 deploy.sh
echo Deploying app...
git pull origin dev
yarn build
rm -r ../build
cp -r build ../
#!/bin/bash
# must enable execution permission with:
# sudo chmod 774 deploy.sh
echo Deploying app...
git pull origin dev
yarn build
rm -r ../dist
cp -r dist ../