pip install -r requirements.txt
python props.py a.properties b.properties c.properties
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
| #!/usr/bin/python3 | |
| # -*- coding: utf-8 -*- | |
| import difflib | |
| import epub | |
| from bs4 import BeautifulSoup | |
| def text_paras(book, href): | |
| soup = BeautifulSoup(book.read_item(href), 'lxml') |
org.springframework.boot.autoconfigure.security.oauth2.client.SsoSecurityConfigurer#oauth2SsoFilter
private OAuth2ClientAuthenticationProcessingFilter oauth2SsoFilter(
OAuth2SsoProperties sso) {
OAuth2RestOperations restTemplate = this.beanFactory
.getBean(OAuth2RestOperations.class);
ResourceServerTokenServices tokenServices = this.beanFactory
.getBean(ResourceServerTokenServices.class);
OAuth2ClientAuthenticationProcessingFilter filter = new OAuth2ClientAuthenticationProcessingFilter(
Arduino would be able to send programs to the device as root, but not as user.
sudo apt-get --purge remove modemmanager
/etc/udev/rules.d/usbasp.rules
ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="05dc", MODE="0666", GROUP="plugdev"
ATTRS{idVendor}=="2341", ATTRS{idProduct}=="8036", MODE="0666", GROUP="plugdev"
I hereby claim:
- I am mikaelhg on github.
- I am mikaelhg (https://keybase.io/mikaelhg) on keybase.
- I have a public key ASBDxHiKXEqFid6kn4qBGfNnIpLLZg8jH-5ZsZHIFd32Igo
To claim this, I am signing this object:
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
| @SpringBootApplication | |
| @RestController | |
| public class Application { | |
| @Configuration | |
| public static class HibernateConfiguration extends HibernateJpaAutoConfiguration { | |
| @Bean | |
| @Override | |
| public LocalContainerEntityManagerFactoryBean entityManagerFactory( | |
| EntityManagerFactoryBuilder factoryBuilder) |
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
| @Service | |
| class FooService { | |
| @Inject FooDao dao; | |
| @Scheduled(fixedRate = 600000L, initialDelay = 60000L) | |
| public void periodicalTask() throws IOException { | |
| RunAs.runAsAdmin(() -> { | |
| dao.save(new Foo(...)); | |
| }); |
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
| @GrabResolver(name="OJO", root="https://oss.jfrog.org/artifactory/repo") | |
| @Grab(group = "io.ratpack", module = "ratpack-groovy", version="0.9.15-SNAPSHOT") | |
| @Grab(group = "org.springframework.amqp", module="spring-rabbit", version="1.4.5.RELEASE") | |
| import com.rabbitmq.client.Channel | |
| import groovy.transform.TupleConstructor | |
| import org.springframework.amqp.core.MessageListener | |
| import org.springframework.amqp.rabbit.core.ChannelAwareMessageListener | |
| import org.springframework.amqp.rabbit.core.RabbitAdmin | |
| import org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer |
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
| package test; | |
| import org.jooq.SQLDialect; | |
| import org.jooq.impl.DSL; | |
| import org.postgresql.ds.PGSimpleDataSource; | |
| import java.sql.Connection; | |
| import java.util.Objects; | |
| public class JooqDslTest { |
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
| xinput list | |
| xinput list 9 | |
| xinput get-button-map 9 | |
| xinput set-button-map 9 1 2 3 4 5 6 7 2 2 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | |
| /usr/share/X11/xorg.conf.d/logitech-usb-gaming-mouse.conf |
