Skip to content

Instantly share code, notes, and snippets.

Avatar
👋

Sergey Kryvets skryvets

👋
View GitHub Profile
@skryvets
skryvets / restart-touchbar.sh
Created Dec 23, 2019
Restart Mac's touchbar
View restart-touchbar.sh
pkill "Touch Bar agent";
killall "ControlStrip";
#or the same with sudo
sudo pkill "Touch Bar agent";
sudo killall "ControlStrip";
@skryvets
skryvets / Gradle dependencies local path MacOS
Last active Jun 13, 2020
Location where Gradle stores dependencies on your local file system when is pulled from MavenCentral or some other remote repository
View Gradle dependencies local path MacOS
~/.gradle/caches/modules-2/files-2.1
View gist:3f2758c2262a5cab175de464a9c26323
@Configuration
@EnableWebSecurity
public class WebSecurity extends WebSecurityConfigurerAdapter {
public WebSecurity() {}
@Override
protected void configure(HttpSecurity http) throws Exception {
http.cors().and().csrf().disable().authorizeRequests()
@skryvets
skryvets / webpack.config.js
Created Mar 23, 2018
Webpack configuration file
View webpack.config.js
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';