Skip to content

Instantly share code, notes, and snippets.

{
"default_encoding": "UTF-8",
"font_size": 10,
"default_line_ending": "unix"
}
@alozta
alozta / Windows Retrieve Saved WiFi Password
Created May 27, 2018 18:17
Find out what your saved WiFi password is on Windows.
#Open terminal
netsh wlan show profiles
netsh wlan show profile name=<profile> key=clear
{
"timeStamp": 1525897461412,
"version": "1.16.4",
"userSettings": {
"advancedUserEnabled": false,
"alwaysDetachLogger": false,
"autoUpdate": true,
"cloudStorageEnabled": false,
"collapseBlocked": true,
"colorBlindFriendly": false,
about-scheme
almancam.com
arstechnica.com
blog.polymail.io
brilliant.org
calendar.google.com
chrome-extension-scheme
chrome-scheme
crypto.stackexchange.com
developer.mozilla.org
! 2/3/2018, 8:35:20 PM https://www.cnet.com/how-to/how-to-enable-reader-mode-in-firefox-for-android/
www.cnet.com##.uvpjs__btn-large-play--hidden.uvpjs__btn-large-play
helpfoxpro.com
eacdn.com
http://ikwauek.com
zddxlih.com
push-browser.systems
seven-our-prize91.loan
@alozta
alozta / TwinColSelectFilter.java
Created April 13, 2018 08:51
Working example of filter for TwinColSelect in Vaadin 7.
final BeanItemContainer<String> bean = new BeanItemContainer<>(String.class); //com.vaadin.data.util.BeanItemContainer<BEANTYPE>
List<String> list = new ArrayList<>();
bean.addAll(list);
this.twinColSelect.setContainerDataSource(list); //com.vaadin.ui.TwinColSelect
filter.setTextChangeEventMode(TextChangeEventMode.LAZY); //com.vaadin.ui.TextField
filter.addTextChangeListener(new TextChangeListener() {
private static final long serialVersionUID = 1L;
Windows Registry Editor Version 5.00
; created by Walter Glenn
; for How-To Geek
; article: https://www.howtogeek.com/225844/how-to-make-windows-photo-viewer-your-default-image-viewer-on-windows-10/
[HKEY_CLASSES_ROOT\Applications\photoviewer.dll]
[HKEY_CLASSES_ROOT\Applications\photoviewer.dll\shell]
@alozta
alozta / IdGenerator.java
Created January 26, 2018 20:04
Code to generate page ids.
package businessLogic;
/*
* Copyright 2005 Joe Walker
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
<?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:jaxws="http://cxf.apache.org/jaxws"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:task="http://www.springframework.org/schema/task" xmlns:jaxrs="http://cxf.apache.org/jaxrs"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd">
public static Connection getConnection() throws SQLException {
logger.debug("Connection requested.");
if(hikariConfig == null){
hikariConfig = new HikariConfig("datasource.properties");
}
if(dataSource == null){
// dataSource = new HikariDataSource(hikariConfig);
dataSource = (HikariDataSource) getContext().getBean("dataSource");
}