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 ( | |
| // TallyInactiveUserMatches gets a tally of inactive matches for a user, | |
| // grouped by match status. This excludes cancel order matches with | |
| // "takerSell IS NOT NULL". MatchComplete is inferred by "bRedeemTime IS NOT | |
| // NULL" so the MatchComplete integer value need not be a query argument. | |
| TallyInactiveUserMatches = `SELECT COUNT(*), status, makeraccount=$1 AS isMaker, takeraccount=$1 AS isTaker | |
| FROM %s | |
| WHERE takerSell IS NOT NULL | |
| AND (takerAccount = $1 OR makerAccount = $1) | |
| AND (NOT active OR bRedeemTime IS NOT NULL) |
Maker sell 42 DCR for 0.42 BTC (0.01 BTC/DCR):
- Standing limit, booked in epoch 158566703:10000.
- Contract is Decred (DCR), tx A (initiator): https://testnet.dcrdata.org/tx/4a14a2d79c1374d286ebd68d2c104343bcf8be44ed54045b5963fbf73667cecc
- Redeem is Bitcoin (BTC), tx C: https://tbtc.bitaps.com/f67e0fe0aec03be8aa686aec0bf8b7f345334e00c73adb1cbd2ecc526a0382dc/input/0
Taker sell, perfect match:
- Standing limit, matched and completely filled in epoch 158566834:10000.
- Contract is Bitcoin (BTC), tx B (participant): https://tbtc.bitaps.com/81f6747f176da39e5ff874248bcba2924e12b30708f3de02219fc3e81de1b99b
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"/> | |
| </head> | |
| <body> | |
| <div id="updates"></div> | |
| <script src="https://alpha.dcrdata.org/js/socket.io.slim.js"></script> | |
| <script> | |
| var socket = io('https://alpha.dcrdata.org', {path: '/insight/socket.io', transports: ['websocket'], upgrade: false}); |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"/> | |
| </head> | |
| <body> | |
| <script src="http://localhost:7777/js/socket.io.slim.js"></script> | |
| <script> | |
| var socket = io('http://localhost:7777', {path: '/insight/socket.io', transports: ['websocket'], upgrade: false}); | |
| //var socket = io('https://mainnet.decred.org/') |
I hereby claim:
- I am chappjc on github.
- I am chappjc (https://keybase.io/chappjc) on keybase.
- I have a public key whose fingerprint is 761D 6A0B EB28 6C9B 6A65 DD05 3F85 7EEA 746C 64D1
To claim this, I am signing this object:
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
| // Now available in package form at https://github.com/rjz/githubhook | |
| package handler | |
| // https://developer.github.com/webhooks/ | |
| import ( | |
| "crypto/hmac" | |
| "crypto/sha1" | |
| "encoding/hex" | |
| "errors" |
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/bash | |
| in=`tee` | |
| # echo $in | |
| echo $in | jq -r '(.[0] | keys_unsorted) as $keys | $keys, map([.[ $keys[] ]])[] | @csv' > $1 |
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 | |
| /usr/local/letsencrypt/certbot-auto renew --noninteractive --standalone \ | |
| --pre-hook "systemctl stop nginx" --post-hook "systemctl start nginx" \ | |
| --renew-hook "touch /etc/nginx/ssl/certsrenewed" --quiet --no-self-upgrade | |
| EXITVAL=$? | |
| if [ $EXITVAL -ne 0 ]; then | |
| /usr/bin/logger -t certbot "certbot-auto exited abnormally with $EXITVAL" | |
| exit $EXITVAL | |
| fi |
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
| { | |
| "configurations": [ | |
| { | |
| "name": "Mac", | |
| "includePath": ["/usr/include"], | |
| "browse" : { | |
| "limitSymbolsToIncludedHeaders" : true, | |
| "databaseFilename" : "" | |
| } | |
| }, |