curl -L https://gist.githubusercontent.com/irof/fcab7b3d4aeb3eccc29f05f1ceca989e/raw/ac88bd536cf413ea885e0d47d331675d67bc906a/git-recovery.sh | sh
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
package bc; | |
import org.bouncycastle.bcpg.CompressionAlgorithmTags; | |
import org.bouncycastle.openpgp.*; | |
import org.bouncycastle.openpgp.bc.BcPGPObjectFactory; | |
import org.bouncycastle.openpgp.bc.BcPGPPublicKeyRing; | |
import org.bouncycastle.openpgp.bc.BcPGPSecretKeyRing; | |
import org.bouncycastle.openpgp.operator.PBESecretKeyDecryptor; | |
import org.bouncycastle.openpgp.operator.PGPDataEncryptorBuilder; | |
import org.bouncycastle.openpgp.operator.bc.*; |
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
package me.irof.suburi; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import org.springframework.beans.factory.ObjectProvider; | |
import org.springframework.boot.context.event.ApplicationStartedEvent; | |
import org.springframework.context.event.EventListener; | |
import org.springframework.stereotype.Component; | |
import org.springframework.transaction.annotation.Transactional; |
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
package customer.experience.presentation; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import org.springframework.http.ResponseEntity; | |
import org.springframework.web.bind.annotation.PathVariable; | |
import org.springframework.web.bind.annotation.RequestMapping; | |
import org.springframework.web.bind.annotation.RestController; | |
import java.util.Locale; |
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
plugins { | |
id 'java' | |
} | |
repositories { | |
jcenter() | |
} | |
dependencies { | |
implementation 'com.amazonaws:aws-java-sdk:latest.release' |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
git init | |
git commit --allow-empty -m"1" | |
git commit --allow-empty -m"2" | |
git checkout -b test-branch | |
git commit --allow-empty -m"3" | |
git commit --allow-empty -m"4" | |
git checkout master | |
git branch -D test-branch | |
git reflog |
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
#!/bin/sh | |
if git rev-parse --verify HEAD >/dev/null 2>&1 | |
then | |
against=HEAD | |
else | |
# Initial commit: diff against an empty tree object | |
against=4b825dc642cb6eb9a060e54bf8d69288fbee4904 | |
fi |
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
class Hoge extends Exception { | |
void method() throws Hoge, Hoge, Hoge { | |
} | |
} |
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 java.net.JarURLConnection; | |
import java.net.URL; | |
import java.net.URLConnection; | |
import java.util.Collections; | |
import java.util.Enumeration; | |
import java.util.jar.JarFile; | |
public class Main { | |
public static void main(String[] args) throws Exception { |
NewerOlder