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
Set WshShell = CreateObject("WScript.Shell") | |
Function ConvertToKey(Key) | |
Const KeyOffset = 52 | |
i = 28 | |
Chars = "BCDFGHJKMPQRTVWXY2346789" | |
Do | |
Cur = 0 | |
x = 14 | |
Do | |
Cur = Cur * 256 |
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 bot.data | |
import com.amazonaws.xray.AWSXRay | |
import com.amazonaws.xray.entities.Namespace | |
import okhttp3.Interceptor | |
import okhttp3.Response | |
class OkHttpXRayInterceptor : Interceptor { | |
companion object { | |
private val recorder = AWSXRay.getGlobalRecorder() |
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
val inflater: LayoutInflater = context.getSystemService(Context.LAYOUT_INFLATER_SERVICE) | |
val view: View = inflater.inflate(R.layout.my_layout, parent, false) |
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
#!/usr/bin/env ruby | |
# refer to | |
# https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/util/Secret.java | |
# https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/jenkins/security/ApiTokenProperty.java | |
require 'base64' | |
require 'digest' | |
require 'openssl' |