Skip to content

Instantly share code, notes, and snippets.

View xaxim's full-sized avatar

Carlos Lima xaxim

View GitHub Profile
@xaxim
xaxim / work-with-multiple-github-accounts.md
Created May 8, 2023 21:43 — forked from rahularity/work-with-multiple-github-accounts.md
How To Work With Multiple Github Accounts on your PC

How To Work With Multiple Github Accounts on a single Machine

Let suppose I have two github accounts, https://github.com/rahul-office and https://github.com/rahul-personal. Now i want to setup my mac to easily talk to both the github accounts.

NOTE: This logic can be extended to more than two accounts also. :)

The setup can be done in 5 easy steps:

Steps:

  • Step 1 : Create SSH keys for all accounts
  • Step 2 : Add SSH keys to SSH Agent
node-sass on Node 12:
Add "node": "11.15.0" no devDependencies on package.json
https://github.com/sass/node-sass/issues/2662
@xaxim
xaxim / gist:cc2efed9af9931716ed7590461f17793
Created September 7, 2018 07:02
Loiane Training Curso Angular Commands
https://www.slideshare.net/loianeg/angular-2-61549741
npm install -g typescript
npm install -g @angular/cli
@xaxim
xaxim / settings.json
Last active March 12, 2017 22:07
VSCode Settings
// Place your settings in this file to overwrite the default settings
{
"vsicons.dontShowNewVersionMessage": true,
"editor.fontFamily": "Fira Code, Hasklig, OperatorMono Nerd Font, Inconsolata, Consolas, 'Courier New', monospace",
"editor.fontSize": 14,
"editor.fontLigatures": true,
"editor.tabSize": 2,
"editor.cursorBlinking": "phase",
"editor.cursorStyle": "line",
"editor.renderIndentGuides": true,
@xaxim
xaxim / forksync.txt
Created January 18, 2017 02:56
Sync fork with original
git fetch upstream
git checkout master
git merge upstream/master
git merge upstream/master
git commit
git push
@xaxim
xaxim / gist:9889b965da8be0a3470b6d1be9e11c24
Created January 10, 2017 15:59
Sync fork with original
https://upriver.github.io/
https://help.github.com/articles/syncing-a-fork/
@xaxim
xaxim / kali.txt
Last active July 19, 2016 13:21
Penetration testing kali commands
== Installation and Configuration ==
leafpad kali_update.sh
apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y
chmod +x kali_update.sh
./kali_update.sh
apt-get install [package]
dpkg -l | grep [package]
apt-cache show [package]
@xaxim
xaxim / gist:9e56fc0f9250f5503c55
Created March 29, 2016 07:17
React Redux Tutorial
http://spapas.github.io/2016/03/02/react-redux-tutorial/
@xaxim
xaxim / gist:1713542e230e9bc5a3f2
Created March 4, 2016 18:39
Renaming heroku app name
https://devcenter.heroku.com/articles/renaming-apps#updating-git-remotes
You can rename an app at any time with the heroku apps:rename command. For example, to rename an app named “oldname” to “newname”, change into the app’s git checkout and run:
$ heroku apps:rename newname
Renaming oldname to newname... done
http://newname.herokuapp.com/ | git@herokuapp.com:newname.git
Git remote heroku updated
Renaming an app will cause it to immediately become available at the new subdomain (newname.herokuapp.com) and unavailable at the old name (oldname.herokuapp.com).
If you have custom domains configured that use these subdomains, for example a CNAME record set up that references oldname.herokuapp.com, then it will also need to be updated.
Renaming without a checkout