Skip to content

Instantly share code, notes, and snippets.

@gggiovanny
Last active February 3, 2023 21:02
Show Gist options
  • Save gggiovanny/55c23918d87996c7baa7602dfd9813a1 to your computer and use it in GitHub Desktop.
Save gggiovanny/55c23918d87996c7baa7602dfd9813a1 to your computer and use it in GitHub Desktop.
Cheatsheet

install

composer install --no-plugins --no-scripts --no-dev

update

composer update --no-plugins --no-scripts --no-dev

require

composer require --no-plugins --no-scripts --update-no-dev

Cheatsheet

react-router

Import everything from 'react-router-dom'

  1. Wrap everything with <BrowserRouter></BrowserRouter>.
  2. Use <Switch></Switch> and <Route exact path="/my-route" component={MyComponent} /> to create routes.
  3. Use to create links in ex. a nav <Link to="/my-route">My route</Link>.

TODO: hacer snippets

Add apps to startup

  1. Create a shortcut for the app. The easiest is to open shell:AppsFolder via WIN+R, find for the desired app and right-click->create shortcut in the desktop.
  2. Again with WIN+R, open shell:startup to find the autostart folder. Just put the shorcut there and will start along windows. You can toggle it via Task Manager -> Startup.

WIN+R hacks

  • shell:startup: Auto-start apps folder.
  • shell:AppsFolder: Apps folder, with shortcut creation capabilities.
  • %appdata%
  • %localappdata%
  • winver: to know windows version and build.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment