This file contains hidden or 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
| .bashrc | |
| source ~/.profile | |
| .profile | |
| #!/bin/bash | |
| #Changing directory with alias | |
| alias front='cd ~/Development/OLX/plutus-frontend/' |
This file contains hidden or 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
| # If you come from bash you might have to change your $PATH. | |
| # export PATH=$HOME/bin:/usr/local/bin:$PATH | |
| # Path to your oh-my-zsh installation. | |
| export ZSH=/Users/kristian.hamilton/.oh-my-zsh | |
| # Set name of the theme to load. Optionally, if you set this to "random" | |
| # it'll load a random theme each time that oh-my-zsh is loaded. | |
| # See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes | |
| ZSH_THEME="agnoster" |
This file contains hidden or 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
| [alias] | |
| addr = noaddr | |
| st = status | |
| flg = !git fetch && git lg | |
| lg = log --graph --decorate --branches --oneline --remotes --tags --all --color | |
| ci = commit | |
| co = checkout | |
| cdiff = diff --cached | |
| subup = submodule update --init --recursive | |
| ff = merge --ff-only origin/master |
This file contains hidden or 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
| { | |
| "id": 97045, | |
| "sellerId": 56578, | |
| "title": "Buick Tageszulassung Nr. 4402029343513687345", | |
| "makeId": 4400, | |
| "makeKey": "Buick", | |
| "modelKey": "Skylark", | |
| "images": [{ | |
| "uri": "i.ebayimg.com/00/s/NjgyWDEwMjQ=/z/znIAAOxynwlTcg-F/$", | |
| "set": "fe4cfedffdffffffff" |
This file contains hidden or 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
| import org.springframework.data.mongodb.config; | |
| public final class ServerAddressPropertyEditorRegistrar implements PropertyEditorRegistrar { | |
| @Override | |
| public void registerCustomEditors(PropertyEditorRegistry registry) { | |
| registry.registerCustomEditor(ServerAddress[].class, new ServerAddressPropertyEditor()); | |
| } | |
| } |
This file contains hidden or 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 | |
| @EnableMongoRepositories({"com.foo.repository"}) | |
| public class MongoRepositoryConfig{ | |
| @Value("localhost:27017, localhost:27018") | |
| private ServerAddress[] serverAddressList; | |
| @Bean | |
| @Override | |
| public Mongo mongo() throws Exception { |
This file contains hidden or 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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <beans xmlns="http://www.springframework.org/schema/beans" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xmlns:mongo="http://www.springframework.org/schema/data/mongo" | |
| xsi:schemaLocation="http://www.springframework.org/schema/beans | |
| http://www.springframework.org/schema/beans/spring-beans-3.1.xsd | |
| http://www.springframework.org/schema/data/mongo | |
| http://www.springframework.org/schema/data/mongo/spring-mongo-1.0.xsd"> |
This file contains hidden or 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
| <form action="..." method="post"> | |
| ... | |
| <input type="hidden" name="secureToken" value="${secureToken}"/> | |
| </form> |
This file contains hidden or 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
| @Controller | |
| @RequestMapping(PAGE_PATH) | |
| public final class DangerousPageController { | |
| @SecureToken(value = VIEW_NAME) | |
| @RequestMapping(method = RequestMethod.GET) | |
| public String showPage() { | |
| // Show the page… | |
| } | |
| @SecureToken(value = VIEW_NAME) |
This file contains hidden or 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 | |
| public class SellerWebsiteInterceptorsConfig | |
| extends WebMvcConfigurerAdapter { | |
| @Autowired | |
| private SecureTokenService secureTokenService; | |
| @Override | |
| public void addInterceptors(InterceptorRegistry registry) { | |
| // Put your other interceptors here too …. | |
| registry.addInterceptor(secureTokenInterceptor()); |