This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install rbenv | |
brew install rbenv ruby-build && \ | |
## Install Ruby version 3.3.3 | |
rbenv install 3.3.3 && \ | |
## Activate Ruby version 3.3.3 as the new default | |
rbenv global 3.3.3 | |
## Restart the terminal |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /Users/<user>/.ssh/config | |
Host github.com-<foo> | |
HostName github.com | |
AddKeysToAgent yes | |
UseKeychain yes | |
IdentityFile ~/.ssh/<filename-1> | |
Host github.com-<bar> | |
HostName github.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
/* | |
* Higher order component that passes `getInitialProps` through | |
* to the child component | |
*/ | |
const HOC = function(Child) { | |
return class Higher extends React.Component { | |
static getInitialProps(ctx) { | |
return Child.getInitialProps(ctx) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To list any process listening to the port 8080 | |
lsof -i:8080 | |
# To kill any process listening to the port 8080 | |
kill $(lsof -t -i:8080) | |
# To kill any process more violently | |
kill -9 $(lsof -t -i:8080) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir sass; \ | |
cd sass; \ | |
mkdir base/ components/ layout/ pages/ themes/ utils/ vendors/; \ | |
touch main.scss base/_reset.scss base/_typography.scss utils/_variables.scss; \ | |
echo '@import "base/reset";' > main.scss \ | |
echo '@import "base/typography";' > main.scss \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git config core.fileMode false | |
find . -type d -exec chmod a+rwx {} \; # Make folders traversable and read/write | |
find . -type f -exec chmod a+rw {} \; # Make files read/write | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$config_directories['sync'] = '../config/sync'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$dbopts['scheme'] = 'postgres'; | |
$databases['default']['default'] = array( | |
'database' => 'my_database_name', | |
'username' => 'deltorosalazar', | |
'password' => '', | |
'prefix' => '', | |
'host' => '127.0.0.1', | |
'port' => '5432', | |
'namespace' => 'Drupal\\Core\\Database\\Driver\\pgsql', | |
'driver' => $dbopts['scheme'] === 'postgres' ? 'pgsql' : 'mysql', |