Skip to content

Instantly share code, notes, and snippets.

View marshi's full-sized avatar

mukai_masaki marshi

View GitHub Profile
@marshi
marshi / config
Created September 3, 2019 00:15
mainframer settings
remote_machine=remote-build-server # リモートビルド用のサーバ名を指定してください
local_compression_level=1
remote_compression_level=1
fun main(args: Array<String>) {
Flowable.fromArray(4,3,2,1)
.concatMapEager{ m -> Flowable
.just(m, m)
.delay(1000, TimeUnit.MILLISECONDS)
.subscribeOn(Schedulers.io())
}.subscribe { println(it) }
Thread.sleep(10000)
pp doc.xpath('//*[@name="jppfs_cor:NetSales"]')[0].text
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "web url schema",
"type": "object",
"properties": {
"pc": { "type": "string" },
"sp": { "type": "string" },
"ownd": { "type": "string" }
},
"required": [
git config --global http.sslVerify false
@marshi
marshi / .editorconfig
Created July 2, 2015 02:53
editorconfig
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.md]
trim_trailing_whitespace = false
@marshi
marshi / application.yml
Created March 12, 2015 09:17
Spring Boot設定例
spring:
datasource:
url: jdbc:mysql://domain:3306/database
username: username
password: pass
driverClassName: com.mysql.jdbc.Driver
jpa:
show-sql: false
hibernate:
naming_strategy: org.hibernate.cfg.EJB3NamingStrategy
@marshi
marshi / sync_sl.sh
Created February 21, 2015 07:33
ローカルのファイル変更をサーバと同期させる
fswatch 同期元のパス | xargs -n1 -I{} rsync -av --delete 同期元のパス サーバのIP:同期先のパス
@marshi
marshi / DbRoleLdapAuthoritiesPupulator
Last active August 29, 2015 14:08
Spring Securityを使ってLDAP認証する方法 ref: http://qiita.com/marshi@github/items/7adfd86c1b9d8b80e69c
@Component
public class DbRoleLdapAuthoritiesPopulator implements LdapAuthoritiesPopulator{
@Autowired
private UserRepository userRepository;
@Override
public Collection<? extends GrantedAuthority> getGrantedAuthorities(DirContextOperations dirContextOperations, String username) {
List<GrantedAuthority> authorities = new ArrayList<>();
User user = userRepository.findByName(username);
@marshi
marshi / rbenv.sh
Last active August 29, 2015 14:00
rbenvをユーザのホームディレクトリ配下にインストールする.
#!/bin/sh
###################
# #
# rbenvの設定 #
# #
###################
# 使い方
# curl -s ${URL} | sh ; source ~/.bashrc