- Have a Rails 5.1.2 app (db=pg (0.20.0), server=puma (3.9.1)) with some models and RESTful endpoints for fetching them.
- Have a data-hungry frontend app that launches 5 requests to those endpoints at once (while including
Content-Type: application/json
in the requests, causing parameter wrapping code to activate, oh well). - See requests stall frequently.
- Install
ActionDispatch::DebugLocks
- Observe /rails/locks output below
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
websocket-client |
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
from decimal import Decimal | |
import json | |
from sha256 import sha256_like_solidity | |
from time import sleep, time | |
from web3 import Web3, HTTPProvider | |
HTTP_PROVIDER_URL = 'http://159.203.19.200:8545/' | |
ED_CONTRACT_ADDR = '0x8d12a197cb00d4747a1fe03395095ce2a5cc6819' | |
with open('etherdelta/abi.json') as f: | |
ED_CONTRACT_ABI = json.load(f) |
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
[{"constant":false,"inputs":[{"name":"tokenGet","type":"address"},{"name":"amountGet","type":"uint256"},{"name":"tokenGive","type":"address"},{"name":"amountGive","type":"uint256"},{"name":"expires","type":"uint256"},{"name":"nonce","type":"uint256"},{"name":"user","type":"address"},{"name":"v","type":"uint8"},{"name":"r","type":"bytes32"},{"name":"s","type":"bytes32"},{"name":"amount","type":"uint256"}],"name":"trade","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"tokenGet","type":"address"},{"name":"amountGet","type":"uint256"},{"name":"tokenGive","type":"address"},{"name":"amountGive","type":"uint256"},{"name":"expires","type":"uint256"},{"name":"nonce","type":"uint256"}],"name":"order","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"bytes32"}],"name":"orderFills","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"tokenGet","type":"ad |
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
*.DS_Store | |
.AppleDouble | |
.LSOverride | |
# Icon must end with two \r | |
Icon | |
# Thumbnails | |
._* |
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
.stream-item img.Emoji.Emoji--forText[title^="Clapping hands sign"], .js-tweet-text-container img.Emoji.Emoji--forText[title^="Clapping hands sign"] { | |
animation: blink-animation 1s steps(5, start) infinite; | |
} | |
.stream-item:hover img.Emoji.Emoji--forText[title^="Clapping hands sign"], .js-tweet-text-container:hover img.Emoji.Emoji--forText[title^="Clapping hands sign"] { | |
animation: initial; | |
visibility: visible; | |
} | |
@keyframes blink-animation { |
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
.route-home .stream-item .OldMedia, | |
.route-home .stream-item .AdaptiveMedia { | |
margin-top: 0; | |
} | |
.route-home .stream-item .OldMedia:before, | |
.route-home .stream-item .AdaptiveMedia:before { | |
display: inline-block; | |
content: '[Image hidden]'; | |
} | |
.route-home .stream-item .OldMedia-container, |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
dig 500px.com upload.500px.com pcdn.500px.net any a; dig 500px.com upload.500px.com pcdn.500px.net any a +cd |