Skip to content

Instantly share code, notes, and snippets.

@claudioovp
claudioovp / volta-node-ref.md
Created July 28, 2021 12:15
Volta to install and manage Node / Yarn / Npm versions

Volta

Para instalar node y manejar versiones, es crossplatform funciona en windows/linux/mac

(Getting started)[https://docs.volta.sh/guide/getting-started]

# Install latest LTS release
volta install node

# Install specific version
@claudioovp
claudioovp / gist:804bfe7e5e2d5d6f7da12218cbf398a9
Last active June 21, 2018 17:15
Dreamhost Git Deployment
- https://help.dreamhost.com/hc/en-us/articles/216445197-Pushing-your-local-Git-repository-to-a-DreamHost-server-Linux-Mac-OS-X
- https://help.dreamhost.com/hc/en-us/articles/115000684492-Using-Git-for-web-development
- http://ankitahuja.com/blog/2011/05/06/deploying-on-dreamhost-using-git/
- https://gist.github.com/nissicreative/33e2b20fa5f02efa2e134cffd5fd32c0
@claudioovp
claudioovp / wp-cli-migrate-db.md
Created June 15, 2018 19:21 — forked from harryfinn/wp-cli-migrate-db.md
WP-CLI DB migrate instructions

Instructions for using WP-CLI to migrate a WordPress DB

# Export current (local) DB
wp db export db.sql

# Copy file from local to server (may need to amend server path if not in html folder)
# The example below is for local to remote, simply swap these 2 around for remote to local
scp -r db.sql www-data@IP_ADDRESS:/var/www/html

# SSH onto box (should be same connection details as above)
@claudioovp
claudioovp / config-existing-repo-unix-group.md
Last active April 24, 2018 18:44
Configure an existing git repo to be shared by a UNIX group

It is for bare repos and non-bare repos. There are only little differences between them, but in this way is clearer.

BARE REPOSITORY

cd <repo.git>/                            # Enter inside the git repo
git config core.sharedRepository group    # Update the git's config
chgrp -R <group-name> .                   # Change files and directories' group
chmod -R g+w .                            # Change permissions
chmod g-w objects/pack/*                  # Git pack files should be immutable
find -type d -exec chmod g+s {} +         # New files get directory's group id
@claudioovp
claudioovp / hackintosh-2018.md
Last active October 1, 2021 15:35 — forked from anonymous/hackintosh-2018.md
Hackintosh 2018 - GA-Z270-HD3

Actualmente WINDOWS.

listado componentes:

  • Micro: Intel Core i5-7400 3.0Ghz (3.5Ghz Turbo Boost) Kabylake
  • Mother: Gigabyte GA-Z270-HD3
  • Chipset Z270
  • Video GeForce GT 240
  • Memoria: 1x16Gb DDR4 2400Mhz Mushkin Blackline
  • Disco SSD: Samsung 850 EVO 250GB Sata3
  • Gabinete: RaidMax EXO
  • Fuente: Thermaltake 600W TR2-600
@claudioovp
claudioovp / javascript.md
Last active November 29, 2017 21:02
Research CMS options
@claudioovp
claudioovp / share-in-whatsapp-from-html.md
Created November 7, 2017 20:46
share-in-whatsapp-from-html
@claudioovp
claudioovp / Spanish-LatinAmerica.keylayout
Last active July 20, 2017 20:41
Keyboard Layout LatinAmerican (español latino) - Logitech k120
<?xml version="1.1" encoding="UTF-8"?>
<!DOCTYPE keyboard SYSTEM "file://localhost/System/Library/DTDs/KeyboardLayout.dtd">
<!-- Fri, 24 Feb 2006 Generated from KCHR: "Spanish - ISO" -->
<!-- 20 Jul 2017 Updated from Claudio Posado -->
<!--Last edited by Ukelele version 3.2.5.180 on 2017-07-20 at 17:39 (GMT-3)-->
<keyboard group="0" id="87" name="Spanish - LatinAmerica" maxout="1">
<layouts>
<layout first="0" last="0" mapSet="ANSI" modifiers="commonModifiers"/>
</layouts>
<modifierMap id="commonModifiers" defaultIndex="0">