This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var webpack = require('webpack'); | |
var path = require('path'); | |
var fs = require('fs'); | |
var ExtractTextPlugin = require('extract-text-webpack-plugin'); | |
var SvgStore = require('webpack-svgstore-plugin'); | |
var LiveReloadPlugin = require('webpack-livereload-plugin'); | |
var inProduction = process.env.NODE_ENV === 'production'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Configuration | |
@EnableWebSecurity | |
public class WebSecurity extends WebSecurityConfigurerAdapter { | |
public WebSecurity() {} | |
@Override | |
protected void configure(HttpSecurity http) throws Exception { | |
http.cors().and().csrf().disable().authorizeRequests() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/.gradle/caches/modules-2/files-2.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pkill "Touch Bar agent"; | |
killall "ControlStrip"; | |
#or the same with sudo | |
sudo pkill "Touch Bar agent"; | |
sudo killall "ControlStrip"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
spring.jpa.show-sql=true | |
spring.jpa.properties.hibernate.format_sql=true | |
spring.jpa.properties.hibernate.generate_statistics=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
In this scenario we create twenty random cars (random model and year). | |
An expected result is to only get Toyota and sort by year, newest first. | |
*/ | |
class Scratch { | |
public static void main(String[] args) { | |
List<Car> cars = CarFactory.createTwentyRandomCars(); | |
System.out.println("Initial Cars list: " + cars.toString()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
. ~/.nvm/nvm.sh | |
cr=`echo $'\n.'` | |
cr=${cr%.} | |
currentNodeVersion=$(node -v) | |
echo Your NodeJS version is $currentNodeVersion |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Create a file | |
sudo touch /usr/local/bin/idea | |
#bash script: | |
#!/usr/bin/env bash | |
snap run intellij-idea-ultimate $1 /dev/null 2&1 & |
OlderNewer