Skip to content

Instantly share code, notes, and snippets.

View yenda's full-sized avatar
💭
When the Facts Change, I Change My Mind. What Do You Do, Sir?

Eric Dvorsak yenda

💭
When the Facts Change, I Change My Mind. What Do You Do, Sir?
View GitHub Profile
package feed
import ("fmt"
"encoding/json"
"reflect"
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/swarm/storage/feed"
"github.com/ethereum/go-ethereum/swarm/storage/feed/lookup")
(def contracts
{:status/tribute-to-talk
{:address
{:mainnet nil
:testnet "0x3da3fc53e24707f36c5b4433b442e896c4955f0e"
:rinkeby nil}
:methods
{:get-manifest
{:signature "getManifest(address)"
:return-params ["bytes"]}}}
{:status/tribute-to-talk
{:address {:mainnet nil
:testnet "0x3da3fc53e24707f36c5b4433b442e896c4955f0e"
:rinkeby nil}
:methods {:get-manifest {:signature "getManifest(address)"
:return-params ["bytes"]}}}
:status/sticker-market
{:address {:mainnet nil
:testnet "0x39d16CdB56b5a6a89e1A397A13Fe48034694316E"
:rinkeby nil}
> Task :react-native-android:buildReactNdkLib FAILED
A problem was found with the configuration of task ':react-native-android:buildReactNdkLib'. Registering invalid inputs and outputs via TaskInputs and TaskOutputs methods has been deprecated and is scheduled to be removed in Gradle 5.0.
- File '/home/hlolli/forks/status-react/node_modules/react-native/ReactAndroid/src/main/jni/react' specified for property '$1' is not a file.
/nix/store/jza8mfcplfbwd40lm3rd34q7lphxz0sd-android-ndk/ndk-build: line 158: file: command not found
make[3]: Entering directory '/home/hlolli/forks/status-react/node_modules/react-native/ReactAndroid/src/main/jni/react/jni'
/bin/sh: file: command not found
[armeabi-v7a] StaticLibrary : libboost.a
[armeabi-v7a] Prebuilt : libjsc.so <= /home/hlolli/forks/status-react/node_modules/react-native/ReactAndroid/build/third-party-ndk/jsc/jni/armeabi-v7a/
make[3]: /nix/store/jza8mfcplfbwd40lm3rd34q7lphxz0sd-android-ndk/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/arm-linu
@yenda
yenda / gist:92ba6adb334b3dccfccf5d9447589e72
Created February 26, 2019 17:15
red screen another request with the same topics was sent less than 3s ago
02-26 18:14:04.954 6887 6935 D ReactNativeJS: DEBUG [status-im.utils.handlers:34] - Handling re-frame event: :mailserver.callback/mark-trusted-peer-success
02-26 18:14:04.969 6887 6935 D ReactNativeJS: DEBUG [status-im.utils.handlers:34] - Handling re-frame event: :mailserver.callback/generate-mailserver-symkey-success
02-26 18:14:04.974 6887 6935 D ReactNativeJS: DEBUG [status-im.mailserver.core:262] - Adjusting mailserver request from: 1551199324 adjusted-from: 1551199304
02-26 18:14:04.975 6887 6935 I ReactNativeJS: INFO [status-im.mailserver.core:274] - mailserver: request-messages for: topics ("0xf318405f" "0xf8946aac" "0x95cca428") from 1551199304 cursor nil limit 200 to 1551201139
02-26 18:14:04.976 6887 6940 E GoLog : INFO [02-26|17:14:04.975] RequestMessages package=status-go/services/sshext.PublicAPI request="{MailServerPeer:enode://7aa648d6e855950b2e3d3bf220c496e0cae4adfddef3e1e6062e6b177aec93bc6cdcf1282cb40d1656932ebfdd565729da440368d7c4da7dbd4d0
@yenda
yenda / status-desktop.sh
Created December 22, 2018 23:54
status desktop script
#!/bin/bash
curl https://status-im.ams3.digitaloceanspaces.com/latest.json > $PWD/latest
LATEST=$(cat latest | awk 'match($0, "(https.*AppImage)", m) {print m[1]}')
if [ -a current ]
then
CURRENT=$(cat current)
echo "Current version is $CURRENT"
#/bin/bash
# kill dev server
lsof -i :8081 | awk 'NR!=1 {print $2}' | xargs kill
# In gnome-terminal, go to Edit -> Profile Preferences -> Title. Click the Command tab. Select Hold the terminal from the drop-down menu labelled When command exits. Name the profile hold-terminal
echo "Starting Android Emulator"
AVD_NAME=$1
@yenda
yenda / status
Last active October 11, 2018 19:35
Script to download and start lastest status-desktop on Linux : WILL CLOSE THE APP IF UPGRADE AVAILABLE!!!!
#!/bin/bash
# put in the directory where you want to download status, then call `chmod +x status` then `./status`
curl https://raw.githubusercontent.com/status-im/status-im.github.io/develop/env.sh > $PWD/env.sh
chmod +x ./env.sh
source env.sh
if [ -a current ]
@yenda
yenda / final?
Created November 21, 2017 16:03
(defn add-discover [db {:keys [message-id tags] :as discover}]
(-> db
(update :tags concat tags)
(assoc-in [:discoveries message-id discover])))
(defn new-discover? [discoveries {:keys [message-id]}]
(not (get discoveries message-id )))
(handlers/register-handler-fx
:discoveries-response-received
(re-frame/reg-fx
::save-discover
(fn [discover]
(discoveries/save discover)))
(re-frame/reg-fx
::save-discovers
(fn [discovers]
(doseq [{:keys [message-id] :as discover} discovers]
(when-not (discoveries/exists? message-id))