Skip to content

Instantly share code, notes, and snippets.

View alexrdz's full-sized avatar
🎥
working

alex rodriguez alexrdz

🎥
working
View GitHub Profile
@alexrdz
alexrdz / multiple_ssh_setting.md
Last active July 29, 2017 21:02 — forked from RichardBronosky/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@alexrdz
alexrdz / gh-pages-deploy.md
Created June 17, 2016 03:20 — forked from cobyism/gh-pages-deploy.md
Deploy to `gh-pages` from a `dist` folder on the master branch. Useful for use with [yeoman](http://yeoman.io).

Deploying a subfolder to GitHub Pages

Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.

For the sake of this example, let’s pretend the subfolder containing your site is named dist.

Step 1

Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).

@alexrdz
alexrdz / BEMify
Last active September 6, 2016 20:55 — forked from paceaux/BEMify
Stylus BEM mixin
e(name)
&__{name}
{block}
m(name)
&--{name}
{block}
.header
color: red
+e(element)
@alexrdz
alexrdz / responsive elements
Created July 9, 2016 20:35
responsive elements from google udacity video
img,
embed,
object,
video
max-width: 100%
@alexrdz
alexrdz / update forked repo
Created September 6, 2016 20:54
update forked repo with main repo
# Add the remote, call it "upstream":
git remote add upstream https://github.com/whoever/whatever.git
# Fetch all the branches of that remote into remote-tracking branches,
# such as upstream/master:
git fetch upstream
# Make sure that you're on your master branch:
npm list -g --depth=0
@alexrdz
alexrdz / vsc-git
Created June 20, 2017 03:44
Make Visual Studio Code the default editor for git commit messages
git config --global core.editor "code --wait"
ssh-add -K ~/.ssh/id_rsa
@alexrdz
alexrdz / unink
Created July 22, 2017 20:51
remove global npm package installed via `npm lin`
npm r tmcli -g
npm r pkgname -g