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
| // ==UserScript== | |
| // @name Git Archive | |
| // @namespace http://wingysam.xyz/ | |
| // @version 2.4 | |
| // @description Mirror every git repo you look at to gitea | |
| // @author Wingy <[email protected]> | |
| // @include * | |
| // @grant GM_xmlhttpRequest | |
| // @grant GM_notification | |
| // @grant GM_openInTab |
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
| // Link to validator: https://github.com/BlakeBrown/Vendere/blob/main/src/Market/Onchain.hs#L55 | |
| const SCRIPT_ADDR = "addr1wyja5gklmxdlsa89n46vxp9p628fyycsxf7runtfvqfr7tsj52k9x"; | |
| const plutusHex = "5910b35910b0010000332332233322233223322323233322232333222323333333322222222323332223233332222323233223233322232333222323233223322323233333222223322332233223322332233222232323232232232325335303633300b3333573466e1cd55cea804a400046666444466660b20080060040026eb8d5d0a8049bad35742a0106eb8d5d0a8039bae357426ae89401c8d4130d4c134cd5ce2481035054310004e499263333573466e1d40112002205223333573466e1d40152000205423504d35304e335738921035054310004f49926498cccd5cd19b8735573aa004900011980719191919191919191919191999ab9a3370e6aae75402920002333333333301c33502a232323333573466e1cd55cea80124000466044607a6ae854008c0bcd5d09aba2500223505c35305d3357389201035054310005e49926135573ca00226ea8004d5d0a80519a8150159aba150093335503175ca0606ae854020ccd540c5d728181aba1500733502a04635742a00c66a05466aa0ae09eeb4d5d0a8029919191999ab9a3370e6aae7540092000233502 |
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
| # Backup | |
| docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
| # Restore | |
| cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |