Skip to content

Instantly share code, notes, and snippets.

View luismayta's full-sized avatar
😎
life is fun, so is coding

Lucho Mayta luismayta

😎
life is fun, so is coding
View GitHub Profile
@luismayta
luismayta / git-change-commit-messages.md
Created January 29, 2021 16:41 — forked from nepsilon/git-change-commit-messages.md
How to change your commit messages in Git? — First published in fullweb.io issue #55

How to change your commit messages in Git?

At some point you’ll find yourself in a situation where you need edit a commit message. That commit might already be pushed or not, be the most recent or burried below 10 other commits, but fear not, git has your back 🙂.

Not pushed + most recent commit:

git commit --amend

This will open your $EDITOR and let you change the message. Continue with your usual git push origin master.

#
# See ./CONTRIBUTING.rst
#
yarn.help:
@echo ' yarn:'
@echo ''
@echo ' yarn command=(build|dev|start|export)'
@echo ' yarn.setup Install dependences of project'
@echo ' yarn.install Install dependences'
@echo ' yarn.dev dev project'
## Packer
.PHONY: packer.help
PACKER_VERSION := 1.3.1
PACKER_DIR:=$(PROVISION_DIR)/packer
packer := packer
packer.help:
@echo ' packer:'
@echo ''
@echo ' packer.validate validate by ami=python'
#
# See ./CONTRIBUTING.rst
#
.PHONY: keybase.help
keybase.help:
@echo ' keybase:'
@echo ''
@echo ' keybase help keybase'
@echo ' keybase.environment Enviroment path for keybase'
# python
.PHONY: python.help
python.help:
@echo ' python:'
@echo ''
@echo ' python show help'
@echo ' python.environment make environment for python'
@echo ' python.lint lint python'
## Terragrunt
.PHONY: terragrunt.help
TERRAFORM_DIR:=$(PROVISION_DIR)/terraform
terragrunt := terragrunt
terragrunt.help:
@echo ' terragrunt:'
@echo ''
@echo ' terragrunt show help'
@echo ' terragrunt.setup install dependences'
@luismayta
luismayta / fix-wordpress-permissions.sh
Created January 12, 2021 19:47 — forked from Adirael/fix-wordpress-permissions.sh
Fix wordpress file permissions
#!/bin/bash
#
# This script configures WordPress file permissions based on recommendations
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions
#
# Author: Michael Conigliaro <mike [at] conigliaro [dot] org>
#
WP_OWNER=www-data # <-- wordpress owner
WP_GROUP=www-data # <-- wordpress group
WP_ROOT=$1 # <-- wordpress root directory
{
"keywords": [],
"version": "0.5.0",
"name": "equipindustry-core-front",
"description": "core-front project",
"bugs": {
"url": "https://github.com/equipindustry/core-front/issues"
},
"private": true,
"stylintrc": ".stylintrc",
openssl genrsa -out mykey.pem 1024
openssl rsa -in mykey.pem -pubout > mykey.pub
openssl rsa -in key.pem -pubout -out pubkey.pem