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
diff --git a/sites/all/modules/advanced_forum/advanced_forum.module b/sites/all/modules/advanced_forum/advanced_forum.module | |
--- a/sites/all/modules/advanced_forum/advanced_forum.module | |
+++ b/sites/all/modules/advanced_forum/advanced_forum.module | |
@@ -815,11 +815,15 @@ function advanced_forum_session_count($anonymous = TRUE) { | |
$interval = REQUEST_TIME - variable_get('user_block_seconds_online', 900); | |
$query = db_select("sessions", "s") | |
- ->fields("s", array("uid")) | |
- ->distinct() | |
- ->condition('s.timestamp', $interval, '>=') |
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
let autobahn = require('autobahn'); | |
const URL = 'wss://api.poloniex.com'; | |
const REALM = 'realm1'; | |
let PAIR = 'BTC_ETH'; | |
let MAX_FOLLOWING_SEQ = 150; | |
let main = () => { | |
let connection = new autobahn.Connection({ |
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
#!/bin/bash | |
# Source: https://kobl.one/blog/create-full-ethereum-keypair-and-address/ | |
# Install dependencies | |
sudo apt-get install openssl curl | |
# Download prebuilt sha3 keccak | |
if [ $(uname -m) == 'x86_64' ]; then | |
curl -L -O https://github.com/vkobel/ethereum-generate-wallet/raw/master/lib/x86-64/keccak-256sum | |
else |