Skip to content

Instantly share code, notes, and snippets.

View yusuke's full-sized avatar

Yusuke Yamamoto yusuke

View GitHub Profile
package jrebeldemo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
$ keytool -list -keystore samuraism.jks
Enter keystore password:
Keystore type: JKS
Keystore provider: SUN
Your keystore contains 5 entries
webserver, Feb 6, 2014, PrivateKeyEntry,
Certificate fingerprint (SHA1): F0:6E:5C:B2:70:A9:9C:43:EC:C0:1B:92:59:C7:6E:08:55:FC:35:FB
@yusuke
yusuke / gist:22c6cccb0fbd023da41d
Last active August 29, 2015 14:09
JJUG CCC 2014 Fall - IntelliJ IDEA 14最新情報 / ハンズオン #jjug_ccc #ccc_r51

IntelliJ IDEA 14最新情報 / ハンズオンへの参加申し込みありがとうございます。 こちらは新機能紹介のパート(13時〜)、ハンズオンパート(14時〜)の二部構成となっております。同時間帯に気になるセッションがある方はどちらか一方のパートだけのご参加もしていただけます。混雑、立ち見が予想されます。前半パートからご参加いただいた方が座席の確保はしやすくなります。 立ち見となった際は譲り合い、出来るだけ多くの方が参加できるよう極力前の方へつめて頂けますようご協力ください。

ハンズオンパートご参加の方は、お手数ですが事前に以下の準備をお願い致します。

参加に必要なもの

ソフトウェア: IntelliJ IDEA 14 Ultimate Edition

public class Fabomb {
public static void main(String[] args) throws twitter4j.TwitterException {
if (twitter4j.TwitterFactory.getSingleton()
.timelines()
.getUserTimeline("syobochim")
.stream()
.peek(e -> {
try {if (twitter4j.TwitterFactory.getSingleton().destroyFavorite(e.getId()) != null) {}} catch (twitter4j.TwitterException ignore) {}
}).count() < 0) {}
}
Twitter twitter = TwitterFactory.getSingleton();
TwitterStream stream = TwitterStreamFactory.getSingleton();
stream.addListener(new StatusAdapter(){
public void onStatus(Status status) {
if (status.getUser().getScreenName().equals("syobochim")) {
try {
twitter.createFavorite(status.getId());
} catch (TwitterException e) {
e.printStackTrace();
}
セッションタイトル: IntelliJ IDEA 14最新情報 / ハンズオン
セッション概要
評判のJava IDE、IntelliJ IDEAの最新バージョン14の新機能紹介とハンズオンを組み合わせたセッションになります。
既にIntelliJ IDEAをご利用になっている方も、これから始めたい方も是非ご参加下さい。前半(〜14時)は新機能の紹介、後半(14時〜)はハンズオンとなります。後半のパートにご参加の方は<a href="https://confluence.jetbrains.com/display/IDEADEV/IDEA+14+EAP”>IntelliJ IDEAの最新バージョン</a>とJava 8インストール済みの十分に充電したラップトップをご持参ください。前後半いずれかのパートのみのご参加でも結構です。
$ curl -sslv3 -kv https://secure.samuraism.com
* Adding handle: conn: 0x7f9343003000
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x7f9343003000) send_pipe: 1, recv_pipe: 0
* About to connect() to secure.samuraism.com port 443 (#0)
* Trying 153.127.244.69...
* Connected to secure.samuraism.com (153.127.244.69) port 443 (#0)
* SSL 3.0 connection using SSL_NULL_WITH_NULL_NULL
$ curl -sslv3 -kv https://secure.samuraism.com
* Adding handle: conn: 0x7ffb94003000
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x7ffb94003000) send_pipe: 1, recv_pipe: 0
* About to connect() to secure.samuraism.com port 443 (#0)
* Trying 153.127.244.69...
* Connected to secure.samuraism.com (153.127.244.69) port 443 (#0)
* Server aborted the SSL handshake
public class Cpu {
public static void main(String[] args) throws TwitterException {
Twitter twitter = TwitterFactory.getSingleton();
// with lambda
IntStream.rangeClosed('a', 'Z').forEach(e -> {
try {
twitter.updateStatus(String.format("@syobochim %sカップ", (char) e));
} catch (TwitterException e1) {
e1.printStackTrace();
public static void main(String[] args) throws TwitterException {
Twitter twitter = TwitterFactory.getSingleton();
IntStream.rangeClosed('a', 'Z').forEach(e -> {
try {
twitter.updateStatus(String.format("@syobochim %sカップ", (char) e));
} catch (TwitterException e1) {
e1.printStackTrace();
}
});
}