Skip to content

Instantly share code, notes, and snippets.

View sergixnet's full-sized avatar

Sergio Peña sergixnet

View GitHub Profile
@erikyuzwa
erikyuzwa / wordpress-6-2-2-docker-compose.yml
Last active April 28, 2024 16:25
Wordpress 6.2.2 Docker Compose for Local Development
# create a local .env file with the following 4 properties:
#
# MYSQL_DATABASE=<something>
# MYSQL_USER=<something>
# MYSQL_PASSWORD=<something>
# MYSQL_ROOT_PASSWORD=<something>
#
# Note: I have had a LOT of issues working with anything newer then Docker Desktop v4.26.1
# If you're on something newer, then double check against this release.
#
@DavidWells
DavidWells / github-proxy-client.js
Last active March 15, 2024 08:28
Full Github REST api in 34 lines of code
/* Ultra lightweight Github REST Client */
// original inspiration via https://gist.github.com/v1vendi/75d5e5dad7a2d1ef3fcb48234e4528cb
const token = 'github-token-here'
const githubClient = generateAPI('https://api.github.com', {
headers: {
'User-Agent': 'xyz',
'Authorization': `bearer ${token}`
}
})
@soup-bowl
soup-bowl / docker-compose.yml
Last active September 7, 2022 21:09
Docker-compose LAMP dev stack
version: '3.6'
services:
db:
image: mysql:latest
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: e9w86036f78sd9
volumes:
- "./database:/var/lib/mysql"
db_pma:
@davidpelayo
davidpelayo / agnoster.zsh-theme
Created November 29, 2017 07:53 — forked from elijahmanor/agnoster.zsh-theme
Custom Agnoster Zsh Theme to Add Node & Npm Versions
# vim:ft=zsh ts=2 sw=2 sts=2
#
# agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for ZSH
#
# # README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts).
# Make sure you have a recent version: the code points that Powerline
@maugelves
maugelves / email-con-preguntas-para-presupuesto-web.txt
Last active March 31, 2023 22:39
Correo electrónico con preguntas básicas para la elaboración del presupuesto de un proyecto web.
Hola <nombre del cliente>:
Ante todo muchas gracias por ponerte en contacto y por confiar en nuestros servicios para el desarrollo de tu web.
Necesitaría que por favor respondas las siguientes preguntas para realizar un presupuesto acorde a las necesidades de tu proyecto.
====================
Sobre su negocio:
- ¿A qué se dedica tu empresa/proyecto/emprendimiento?
@bradtraversy
bradtraversy / pdocrash.php
Last active September 25, 2023 16:37
PDO & Prepared Statements Snippets
<?php
$host = 'localhost';
$user = 'root';
$password = '123456';
$dbname = 'pdoposts';
// Set DSN
$dsn = 'mysql:host='. $host .';dbname='. $dbname;
// Create a PDO instance

Libros de la charla iniciación al diseño

Sistema de retículas por Josef Muller-Brockmann

Manual de tipografía por John Kane

Interacción del color por Josef Albers

Design for Hackers: Reverse Engineering Beauty por David Kadavy

@dreamorosi
dreamorosi / standardJS-in-CRA.md
Last active August 16, 2022 17:33
Add Standard JS to create-react-app project

Standard JS in create-react-app

I've been using create-react-app lately as I find it very useful to kick things off while starting a project. I almost always follow JavaScript Standard Style and I found myself googling it so I figured out I should write it down.

Get Standard JS

I really like keeping dependencies as local as possible but if you prefer you can install it globally.

yarn add standard --dev

or

@phuongtailtranminh
phuongtailtranminh / Backup and Restore Linux Server
Last active August 5, 2019 14:47
Backup and Restore Ubuntu Server
Backup: sudo tar -cvpzf backup.tar.gz --exclude=/backup.tar.gz --exclude=/boot --one-file-system /
Restore: sudo tar -xvpzf /path/to/tar/file -C / --numeric-owner