diff --git a/bin/aes-decrypt b/bin/aes-decrypt index e1c416c..3d83d75 100755 --- a/bin/aes-decrypt +++ b/bin/aes-decrypt @@ -1,14 +1,14 @@ -#!/usr/lib/jvm/default-jdk/bin/jjs +#!/usr/bin/env graaljs var Base64 = Packages.java.util.Base64 var Cipher = Packages.javax.crypto.Cipher var SecretKeySpec = Packages.javax.crypto.spec.SecretKeySpec -var key = arguments[0] -var secret = Base64.getDecoder().decode(arguments[1]) +var key = process.argv[2] +var secret = Base64.getDecoder().decode(process.argv[3]) var cipher = Cipher.getInstance("AES") var keySpec = new SecretKeySpec(key.getBytes(), "AES") cipher.init(Cipher.DECRYPT_MODE, keySpec) var result = new java.lang.String(cipher.doFinal(secret)) -echo(result) +console.log(result) diff --git a/bin/aes-encrypt b/bin/aes-encrypt index ba1320f..8472a8e 100755 --- a/bin/aes-encrypt +++ b/bin/aes-encrypt @@ -1,14 +1,14 @@ -#!/usr/lib/jvm/default-jdk/bin/jjs +#!/usr/bin/env graaljs var Base64 = Packages.java.util.Base64 var Cipher = Packages.javax.crypto.Cipher var SecretKeySpec = Packages.javax.crypto.spec.SecretKeySpec -var key = arguments[0] -var text = arguments[1].getBytes() +var key = process.argv[2] +var text = process.argv[3].getBytes() var cipher = Cipher.getInstance("AES") var keySpec = new SecretKeySpec(key.getBytes(), "AES") cipher.init(Cipher.ENCRYPT_MODE, keySpec) var result = Base64.getEncoder().encodeToString(cipher.doFinal(text)) -echo(result) +console.log(result) diff --git a/bin/graaljs b/bin/graaljs index ddde659..577375f 100755 --- a/bin/graaljs +++ b/bin/graaljs @@ -1,3 +1,3 @@ #!/bin/bash -$JAVA_HOME/bin/node --jvm $@ +$JAVA_HOME/languages/js/bin/node --jvm --experimental-options --js.nashorn-compat=true $@ diff --git a/dotfiles/Xdefaults b/dotfiles/Xdefaults index d95bd5d..a390421 100644 --- a/dotfiles/Xdefaults +++ b/dotfiles/Xdefaults @@ -1,5 +1,5 @@ URxvt.background: #111 -URxvt.font: xft:BPMono:size=9 +URxvt.font: xft:CourierPrimeCode:size=11 URxvt.foreground: #ddd URxvt.geometry: 80x30 URxvt.scrollBar: false diff --git a/dotfiles/hyper.js b/dotfiles/hyper.js index 23fa2a2..33204af 100644 --- a/dotfiles/hyper.js +++ b/dotfiles/hyper.js @@ -12,8 +12,8 @@ module.exports = { backgroundColor: '#111', borderColor: '#222', padding: '2px 2px', - copyOnSelect: true, - webGLRenderer: true, + copyOnSelect: false, + webGLRenderer: false, windowSize: [600, 400], }, localPlugins: ['newcwd'],