This file contains hidden or 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
| TOKEN= | |
| GUILD_ID= | |
| ALLOWED_USERS= | |
| XBL_API_KEY= |
This file contains hidden or 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
| def combine_zpk_clear_components(component1, component2): | |
| combined_key_bytes = bytearray(len(component1)) | |
| for i in range(len(combined_key_bytes)): | |
| combined_key_bytes[i] = component1[i] ^ component2[i] | |
| return combined_key_bytes | |
| def hex_string_to_byte_array(hex_string): | |
| length = len(hex_string) | |
| byte_array = bytearray(length // 2) | |
| for i in range(0, length, 2): |
This file contains hidden or 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 javax.crypto.SecretKey; | |
| import javax.crypto.SecretKeyFactory; | |
| import javax.crypto.spec.SecretKeySpec; | |
| public class ZPKClearComponentCombiner { | |
| public static void main(String[] args) { | |
| String zpkComponent1 = "XXX"; | |
| String zpkComponent2 = "YYY"; | |
| try { |
This file contains hidden or 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 javax.crypto.Cipher; | |
| import javax.crypto.spec.SecretKeySpec; | |
| public class EncryptSample { | |
| private static final String KEY = "AB1C11111111111AAAAAAADDDDD11111"; | |
| private static final int PIN_LENGTH = 6; | |
| public static void main(String[] args) throws Exception { | |
This file contains hidden or 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 cz.monetplus.mnsp.tools.misc; | |
| import org.apache.commons.codec.DecoderException; | |
| import org.apache.commons.codec.binary.Hex; | |
| import org.apache.commons.lang.StringUtils; | |
| /** | |
| * Tools for encoding a decoding pinblock | |
| * | |
| * @author Tomas Jacko <tomas.jacko [at] monetplus.cz> |
Initialize a git repo in the current directory
# git init
Add a remote called "origin"
git remote add origin https://github.com/your-username-here/your-repo-here.git
This file contains hidden or 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
| chore: add Oyster build script | |
| docs: explain hat wobble | |
| feat: add beta sequence | |
| fix: remove broken confirmation message | |
| refactor: share logic between 4d3d3d3 and flarhgunnstow | |
| style: convert tabs to spaces | |
| test: ensure Tayne retains clothing |
This file contains hidden or 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
| [merge] | |
| tool = vscode | |
| [mergetool "vscode"] | |
| cmd = code --wait $MERGED | |
| [diff] | |
| tool = vscode | |
| [difftool "vscode"] | |
| cmd = code --wait --diff $LOCAL $REMOTE |
This file contains hidden or 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 config --add --system http.sslCAInfo /etc/pki/tls/certs/ca-certificates.crt | |
| $ git config --add --system http.sslCAPath /etc/pki/tls/certs | |
| $ git config http.sslCAInfo | |
| /etc/pki/tls/certs/ca-certificates.crt | |
| $ git config http.sslCAPath | |
| /etc/pki/tls/certs |
NewerOlder