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
public void installHotkey() { | |
LOG.info("Sprinkling magic all over"); | |
UI.getCurrent().addActionHandler(new Action.Handler() { | |
@Override | |
public Action[] getActions(Object target, Object sender) { | |
return new Action[]{new ShortcutAction("Ctrl-Alt-F12", ShortcutAction.KeyCode.F12, new int[]{ShortcutAction.ModifierKey.ALT, ShortcutAction.ModifierKey.CTRL})}; | |
} | |
@Override | |
public void handleAction(Action action, Object sender, Object target) { |
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
/ ==UserScript== | |
// @name Sysstate refresh disable | |
// @namespace horvath.agoston@gmail.com | |
// @include http*://sysstate.dev.bol.com/ | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
window.addEventListener ("load", Greasemonkey_main, false); |
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
// ==UserScript== | |
// @name Remove JIRA announcement | |
// @namespace horvath.agoston@gmail.com | |
// @include /^https?://jira\.tools\.bol\.com// | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
$('#announcement-banner').remove(); |
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
authenticatedCall: function() { | |
var args = [].slice.call( arguments ); | |
args.splice( 1, 0, this.blogId, this.username, this.password ); | |
this.call.apply( this, args ); | |
} |
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
<?xml version="1.0"?> | |
<root> | |
<vkopenurldef> | |
<name>KeyCode::VK_OPEN_URL_APP_Karabiner_Term</name> | |
<url type="file">/Users/agoston/Applications/iTerm.app</url> | |
</vkopenurldef> | |
<vkopenurldef> | |
<name>KeyCode::VK_OPEN_URL_APP_Karabiner_Firefox</name> | |
<url type="file">/Applications/Firefox.app</url> | |
</vkopenurldef> |
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
//[... initialize ...] | |
final SimpleDataSourceFactory simpleDataSourceFactory = new SimpleDataSourceFactory("com.mysql.jdbc.Driver"); | |
final DataSource dataSource = simpleDataSourceFactory.createDataSource(jdbcUrl, user, pass); | |
jdbcTemplate = new JdbcTemplate(dataSource); | |
final DataSourceTransactionManager transactionManager = new DataSourceTransactionManager(dataSource); | |
transactionTemplate = new TransactionTemplate(transactionManager); | |
transactionTemplate.setPropagationBehavior(TransactionDefinition.PROPAGATION_REQUIRES_NEW); |
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
import org.springframework.test.annotation.DirtiesContext; | |
import org.springframework.test.context.TestContext; | |
import org.springframework.test.context.support.AbstractTestExecutionListener; | |
public class ReinitContextTestExecutionListener extends AbstractTestExecutionListener { | |
@Override | |
public void beforeTestClass(final TestContext testContext) throws Exception { | |
testContext.markApplicationContextDirty(DirtiesContext.HierarchyMode.EXHAUSTIVE); | |
} | |
} |