Please feel free to suggest for updates!
-
Create a new mono repo project
npx create-turbo@latest -
Update
typescript-config/nextjs.json
| @Configuration | |
| @EnableWebSecurity | |
| @EnableGlobalMethodSecurity(prePostEnabled = true) | |
| class WebSecurityConfiguration extends WebSecurityConfigurerAdapter { | |
| @Autowired | |
| private JwtTokenFilter jwtTokenFilter; | |
| // @Autowired | |
| // private UserDetailsService userDetailsService; |
| <!doctype html> | |
| <!-- Adapted from https://gist.github.com/tfausak/2222823 --> | |
| <html> | |
| <head> | |
| <title>Mobile-ready web app</title> | |
| <!-- CONFIGURATION --> |
| :root { | |
| --dark0: #2e3440; | |
| --dark1: #3b4252; | |
| --dark2: #434c5e; | |
| --dark3: #4c566a; | |
| --light0: #d8dee9; | |
| --light1: #e5e9f0; | |
| --light2: #eceff4; |
| syntax on | |
| set ruler " Show the line and column numbers of the cursor. | |
| set formatoptions+=o " Continue comment marker in new lines. | |
| set textwidth=0 " Hard-wrap long lines as you type them. | |
| set modeline " Enable modeline. | |
| set esckeys " Cursor keys in insert mode. | |
| set linespace=0 " Set line-spacing to minimum. | |
| set nojoinspaces " Prevents inserting two spaces after punctuation on a join (J) | |
| " More natural splits | |
| set splitbelow " Horizontal split below current. |
| # Settings courtesy internet | |
| # Bind C-a (Ctrl+a) to default action on tmux | |
| set-option -g prefix C-a | |
| unbind C-b | |
| # Command sequence for nested tmux when running tmux inside another tmux, you | |
| # need to send command to inner tmux | |
| bind-key a send-prefix |
This gist assumes:
| /* apply a natural box layout model to all elements */ | |
| *, *:before, *:after { | |
| -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; | |
| } |
| cd $HOME | |
| ln -s `which php54` ~/bin/php | |
| export PATH=$HOME/bin:$PATH | |
| curl -sS https://getcomposer.org/installer | php54 | |
| echo -e "\n# Composer\nalias composer=\"php54 \$HOME/composer.phar\"" >> $HOME/.bash_profile | |
| source $HOME/.bash_profile |