Skip to content

Instantly share code, notes, and snippets.

View anthonytranDev's full-sized avatar
🦀
Rustacian

Toni Tran anthonytranDev

🦀
Rustacian
View GitHub Profile
@anthonytranDev
anthonytranDev / github-conflict-resolve.sh
Last active May 1, 2019 10:22
GitHub - Resolving Conflicts
git checkout master
git pull
git checkout <branch-name>
git rebase master
** resolve conflicts in selected files**
git rebase --continue
npm i
git push --force
@anthonytranDev
anthonytranDev / LICENSE
Created March 21, 2019 22:23
MIT License
MIT License (MIT)
Copyright (c) 2019. <Authors>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
@anthonytranDev
anthonytranDev / .bash_profile
Last active February 26, 2020 12:26
NVM without Homebrew - Terminal & VSCode Integration
export NVM_DIR="$HOME/.nvm" # This assigns NVM_DIR the Home directory - i.e. ~/
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
@anthonytranDev
anthonytranDev / webpack.config.js
Last active February 22, 2019 23:59
Webpack Config for gatsby 2.1.16 and @storybook/react 4.1.13
const path = require("path");
module.exports = (baseConfig, env, defaultConfig) => {
/**
* Enable Images to be utilised
*/
// Transpile Gatsby module because Gatsby includes un-transpiled ES6 code.
defaultConfig.module.rules[0].exclude = [/node_modules\/(?!(gatsby)\/)/]
// use installed babel-loader which is v8.0-beta (which is meant to work with @babel/core@7)
@anthonytranDev
anthonytranDev / yarn-global-binaries.md
Last active February 22, 2019 22:40
Yarn Location of all the Global Binaries

Within Mac OSX

cd ~/.config/yarn/global

Or ask Yarn itself

yarn global dir
@anthonytranDev
anthonytranDev / bash-mv-files-parent.sh
Last active February 22, 2019 20:30
Bash - move all files to parent directory
mv * .[^.]* ..