Skip to content

Instantly share code, notes, and snippets.

View grahamblevins's full-sized avatar

Graham Blevins grahamblevins

View GitHub Profile
@grahamblevins
grahamblevins / references.txt
Last active August 5, 2019 21:32
React Monorepo with Lerna
https://medium.com/@jsilvax/a-workflow-guide-for-lerna-with-yarn-workspaces-60f97481149d
https://medium.com/@maoberlehner/monorepos-in-the-wild-33c6eb246cb9
https://github.com/lerna/lerna
https://yarnpkg.com/blog/2017/08/02/introducing-workspaces/
https://medium.com/shopback-engineering/5-tips-about-lerna-4186840093f2
https://samhogy.co.uk/2018/04/moving-to-a-monorepo.html
https://samhogy.co.uk/2018/08/lerna-independent-mode-with-semver.html
https://michaljanaszek.com/blog/lerna-conventional-commits
https://github.com/atlassian/lerna-semantic-release
https://www.linkedin.com/pulse/deliver-more-value-using-lerna-complex-frontend-emiel-kwakkel/
/**
* Implement this hook if you want to configure a router.
*/
configureRouter(config: RouterConfiguration, router: Router): Promise<void>|PromiseLike<void>|void;
/**
* Implement this hook if you want to control whether or not your view-model can be navigated to.
* Return a boolean value, a promise for a boolean value, or a navigation command.
*/
canActivate: (params: any, routeConfig: RouteConfig, navigationInstruction: NavigationInstruction) => boolean|Promise<boolean>|PromiseLike<boolean>|NavigationCommand|Promise<NavigationCommand>|PromiseLike<NavigationCommand>;
@grahamblevins
grahamblevins / gist:3a7eb56d1e18b9330cd9
Last active November 2, 2015 19:00
Goto WordPress Plugins
https://wordpress.org/plugins/acf-image-crop-add-on/
https://wordpress.org/plugins/coschedule-by-todaymade/
https://wordpress.org/plugins/debug-bar/
https://wordpress.org/plugins/disable-emojis/
https://wordpress.org/plugins/feed-them-social
https://wordpress.org/plugins/manual-image-crop/
https://wordpress.org/plugins/members/
https://wordpress.org/plugins/rewrite-rules-inspector/
https://wordpress.org/plugins/safe-redirect-manager/
https://wordpress.org/plugins/sendgrid-email-delivery-simplified/
@grahamblevins
grahamblevins / gist:7290b90118cff58f8d61
Created July 3, 2015 15:50
Find and replace domain in SQL file
sed -i '' 's/olddomain.com/newdomain.com/g' database.sql
@grahamblevins
grahamblevins / mysql.sock not found
Created May 16, 2014 03:00
SQLSTATE[HY000] [2002] No such file or directory
sudo mkdir /var/mysql
cd /var/mysql
sudo ln -s [PATH TO mysql.sock]
@grahamblevins
grahamblevins / svn2git-notes
Last active January 3, 2016 06:39
Notes from lessons working with svn2git
# Remove orphaned remote branch created by malformed subversion repositories
git branch -D -r <bad branch name without 'remotes/' prefix>
svn2git --rebase