Skip to content

Instantly share code, notes, and snippets.

@blacknoob20
blacknoob20 / javascript.json
Created December 21, 2021 20:41 — forked from Klerith/javascript.json
Snippets de React - Redux
{
// Place your snippets for javascript here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
@blacknoob20
blacknoob20 / git-alias.md
Last active December 16, 2024 16:36 — forked from Klerith/git-alias.md
GIT

Comandos GIT

GIT Log

git config --global alias.lg "log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all"

Status

git config --global alias.s "status --short -b"

Alternativa útil de status

@blacknoob20
blacknoob20 / .htaccess
Created August 27, 2021 20:59 — forked from ardani/.htaccess
CORS htaccess support lumen and framework
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]