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
| #!/bin/sh | |
| # https://unkkuri.com/blog/unkkuri-blog-1/post/install-odoo-version-10-in-docker-3 | |
| # | |
| docker create --name unkkuri-db-data library/postgres:9.4 /bin/true | |
| docker run -d --name unkkuri-db --env POSTGRES_USER=odoo --env POSTGRES_PASSWORD=unkkuri-secret-pw --volumes-from unkkuri-db-data library/postgres:9.4 | |
| docker logs unkkuri-db | |
| # LOG: database system is ready to accept connections | |
| docker create -v /var/lib/odoo --name unkkuri-odoo-data odoo:10.0 /bin/true | |
| docker run -d --name unkkuri-odoo --link unkkuri-db:db -p 8069:8069 --volumes-from unkkuri-odoo-data odoo:10.0 odoo --db_password=unkkuri-secret-pw | |
| docker logs unkkuri-odoo |
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
| using System.Security.Cryptography; | |
| namespace Rfc6238; | |
| public enum HmacAlgo | |
| { | |
| Sha1, | |
| Sha256, | |
| Sha512, | |
| } |
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 hmac | |
| def checkValidateInitData(hash_str, init_data, token, c_str="WebAppData"): | |
| """ | |
| Validates the data received from the Telegram web app, using the | |
| method documented here: | |
| https://core.telegram.org/bots/webapps#validating-data-received-via-the-web-app | |
| hash_str - the has string passed by the webapp | |
| init_data - the query string passed by the webapp |
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
| { | |
| "url": "https://mini-app.local:5173", | |
| "name": "CryptoX", | |
| "iconUrl": "https://logoipsum.com/logoipsum-avatar.png" | |
| } |
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
| npm install buffer | |
| import { Buffer } from 'buffer'; | |
| globalThis.Buffer = Buffer; | |
| npm install -D vite-plugin-node-polyfills | |
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
| <meta name="description" content="Easily calculate SHA-512 algorithms" /> | |
| <script type="text/javascript" src="assets/js/sha512.js"> | |
| </script> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
| <script type="text/javascript"> | |
| //<![CDATA[ | |
| function calcSHA() | |
| { | |
| calcHash("SHA-512"); |
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
| const simulateNativeLink = (rowData, e) => { | |
| if (e.ctrlKey || e.metaKey || e.which === 2 || e.button === 4) { | |
| const link = document.createElement('a'); | |
| link.target = '_blank'; | |
| link.rel = 'noopener noreferrer'; | |
| link.href = `/my-orders/${rowData.id}`; | |
| link.click(); | |
| } else { | |
| history.push(`/my-orders/${rowData.id}`); | |
| } |
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
| #include "windows.h" | |
| #include "wincrypt.h" | |
| #include "stdio.h" | |
| /* This code example: | |
| 1) creates a Crypto Service Provider | |
| 2) generates keys | |
| 3) extracts public key | |
| 4) exports private key into PEM |
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
| dir "." -Recurse | Unblock-File | |
| Get-ChildItem "." -Recurse -Include *.dll | Unblock-File |
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
| <html> | |
| <head> | |
| <style> | |
| html { | |
| background-color: black; | |
| color:darkgray; | |
| overflow: hidden; | |
| } | |
| #logger { | |
| padding-top:20px; |
NewerOlder