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
{ | |
"name": "create-app", | |
"version": "1.0.0", | |
"description": "", | |
"main": "main.js", | |
"scripts": { | |
"start": "electron ." | |
}, | |
"keywords": [], | |
"author": "", |
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
aes-128-cbc,aes-128-ccm,aes-128-cfb,aes-128-cfb,aes-128-cfb,aes-128-ctr,aes-128-ecb,aes-128-gcm, | |
aes-128-ocb,aes-128-ofb,aes-128-xts,aes-192-cbc,aes-192-ccm,aes-192-cfb,aes-192-cfb,aes-192-cfb8, | |
aes-192-ct,aes-192-ec,aes-192-gc,aes-192-oc,aes-192-of,aes-256-cb,aes-256-cc,aes-256-cfb, | |
aes-256-cfb,aes-256-cfb,aes-256-ct,aes-256-ec,aes-256-gc,aes-256-oc,aes-256-of,aes-256-xts, | |
aes12,aes128-wra,aes19,aes192-wra,aes25,aes256-wra,aria-128-cb,aria-128-cc,aria-128-cf,aria-128-cfb1, | |
aria-128-cfb,aria-128-ct,aria-128-ec,aria-128-gc,aria-128-of,aria-192-cb,aria-192-cc,aria-192-cfb, | |
aria-192-cfb,aria-192-cfb,aria-192-ct,aria-192-ec,aria-192-gc,aria-192-of,aria-256-cb,aria-256-ccm, | |
aria-256-cf,aria-256-cfb,aria-256-cfb,aria-256-ct,aria-256-ec,aria-256-gc,aria-256-of,aria12,aria192, | |
aria25,b,bf-cb,bf-cf,bf-ec,bf-of,blowfis,camellia-128-cb,camellia-128-cf,camellia-128-cfb,camellia-128-cfb, | |
camellia-128-ct,camellia-128-ec,camellia-128-of,camellia-192-cb,camellia-192-cf,camellia-192-cfb1, |
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
const crypto = require('crypto') | |
const str = 'xxx' | |
const hashHex = crypto.createHash('sha1').update(str, 'utf8').digest('hex') | |
console.log(hashHex) // b60d121b438a380c343d5ec3c2037564b82ffef3 | |
// 40桁 |
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
const crypto = require('crypto') | |
const str = 'xxx' | |
const hashHex = crypto.createHash('sha256').update(str, 'utf8').digest('hex') | |
console.log(hashHex) // cd2eb0837c9b4c962c22d2ff8b5441b7b45805887f051d39bf133b583baf6860 | |
// 64桁 |
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
if [ -r "$CATALINA_BASE/bin/setenv.sh" ]; then | |
. "$CATALINA_BASE/bin/setenv.sh" | |
elif [ -r "$CATALINA_HOME/bin/setenv.sh" ]; then | |
. "$CATALINA_HOME/bin/setenv.sh" | |
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
aws secretsmanager create-secret --name シークレットキー名 --secret-binary fileb://バイナリファイル.der |
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
@PersistenceContext() | |
private EntityManager entityManager; | |
@RequestMapping(path = "/test", method = RequestMethod.GET) | |
public ResponseEntity<?> test() { | |
var ret = entityManager.createQuery("from Employee", Employee.class).getResultList(); | |
return ResponseEntity.ok(Map.of("result", ret)); | |
} | |
// windows |
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
@PersistenceContext(unitName = "default") // @PersistenceContext() と同じ | |
private EntityManager entityManager; | |
@RequestMapping(path = "/test", method = RequestMethod.GET) | |
public ResponseEntity<?> test() { | |
var ret = | |
entityManager.createNativeQuery("select * from t_employee", Employee.class).getResultList(); | |
return ResponseEntity.ok(Map.of("result", ret)); | |
} |
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 jp.co.confrage.presentation.controller; | |
import java.util.concurrent.CompletableFuture; | |
import java.util.concurrent.ExecutionException; | |
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.RequestMethod; | |
import org.springframework.web.bind.annotation.RestController; |
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
const AWS = require('aws-sdk') | |
AWS.config.update({ region: 'ap-northeast-1' }) | |
const ec2 = new AWS.EC2({ apiVersion: '2016-11-15' }) | |
exports.handler = async (event) => { | |
const params = { | |
GroupIds: [ | |
"sg-0a4bgh87c26a497654" | |
] | |
} |
NewerOlder