Skip to content

Instantly share code, notes, and snippets.

View jamesray1's full-sized avatar

James Ray jamesray1

  • Sydney, Australia
View GitHub Profile
james@james-Streacom  ~/wiki-eth-james   master  snap install brave
snap "brave" is already installed, see "snap refresh --help"
james@james-Streacom  ~/wiki-eth-james   master  snap remove brave
brave removed
james@james-Streacom  ~/wiki-eth-james   master  snap install brave
brave v0.21.24dev from 'brave' installed
james@james-Streacom  ~/wiki-eth-james   master  brave
zsh: command not found: brave
✘ james@james-Streacom  ~/wiki-eth-james   master  snap remove brave
brave removed
james@james-Streacom  ~  cd /tmp/
james@james-Streacom  /tmp  sudo apt-get install linux-headers-`uname -r`
[sudo] password for james:
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-headers-4.13.0-38-generic is already the newest version (4.13.0-38.43).
linux-headers-4.13.0-38-generic set to manually installed.
The following package was automatically installed and is no longer required:
bubblewrap
# Copyright 2013, 2015-2016 Nitor Creations Oy, Jonas Berlin
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@jamesray1
jamesray1 / pre-commit
Created April 23, 2018 02:06
Commented out references to author and years , but it's failing at line 131
#!/usr/bin/perl
# Copyright 2013, 2015, 2017 Nitor Creations Oy, Jonas Berlin
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
james@james-Streacom  ~/Archive  rustup update
info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
info: syncing channel updates for 'nightly-x86_64-unknown-linux-gnu'
info: latest update on 2018-04-19, rust version 1.27.0-nightly (ac3c2288f 2018-04-18)
info: downloading component 'rustc'
73.1 MiB / 73.1 MiB (100 %) 1.4 MiB/s ETA: 0 s
info: downloading component 'rust-std'
57.9 MiB / 57.9 MiB (100 %) 1.4 MiB/s ETA: 0 s
info: downloading component 'cargo'
4.3 MiB / 4.3 MiB (100 %) 1.3 MiB/s ETA: 0 s
James@DESKTOP-EL89DSR MINGW64 ~/jrl (protobuf-codegen-pure)
$ cargo build
Compiling libp2p-floodsub v0.1.0 (file:///C:/Users/James/jrl/floodsub)
Compiling futures-mutex v0.3.0 (https://github.com/paritytech/futures-mutex#18ca1125)
Compiling aio-limited v0.1.0 (https://github.com/paritytech/aio-limited.git#1f42497d)
Compiling ring v0.12.1 (https://github.com/briansmith/ring?rev=3a14ef619559f7d4b69e2286d49c833409eef34a#3a14ef61)
Compiling cid v0.2.3
Compiling tokio-tcp v0.1.0
Compiling tokio-udp v0.1.1
Compiling datastore v0.1.0 (file:///C:/Users/James/jrl/datastore)
James@DESKTOP-EL89DSR MINGW64 ~/jrl (pure-rust-protoc)
$ git diff master
diff --git a/floodsub/Cargo.toml b/floodsub/Cargo.toml
index 0d187c7..02d5b17 100644
--- a/floodsub/Cargo.toml
+++ b/floodsub/Cargo.toml
@@ -17,3 +17,7 @@ protobuf = "2"
smallvec = "0.6.0"
tokio-io = "0.1"
varint = { path = "../varint-rs" }
James@DESKTOP-EL89DSR MINGW64 ~/jrl (pure-rust-protoc)
$ cargo build
Downloading ring v0.12.1
Downloading untrusted v0.5.1
Downloading rayon v0.8.2
Compiling untrusted v0.5.1
Compiling rayon v0.8.2
Compiling libp2p-identify v0.1.0 (file:///C:/Users/James/jrl/identify)
Compiling libp2p-kad v0.1.0 (file:///C:/Users/James/jrl/kad)
Compiling libp2p-relay v0.1.0 (file:///C:/Users/James/jrl/relay)
@jamesray1
jamesray1 / gist:071f99608266b273e1956d8081a0b939
Created June 20, 2018 05:22
dmesg-with-freezing-manjaro
~ dmesg
[ 0.000000] microcode: microcode updated early to revision 0x4, date = 2013-06-28
[ 0.000000] Linux version 4.14.48-2-MANJARO (builduser@development) (gcc version 8.1.1 20180531 (GCC)) #1 SMP PREEMPT Fri Jun 8 20:41:40 UTC 2018
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-4.14-x86_64 root=UUID=30ec1000-ebed-4940-912f-f8aa6d44e135 rw quiet
[ 0.000000] x86/fpu: x87 FPU will use FXSAVE
[ 0.000000] e820: BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009abff] usable
[ 0.000000] BIOS-e820: [mem 0x000000000009ac00-0x000000000009ffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000000e0000-0x00000000000fffff] reserved
[ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x00000000db65efff] usable
➜ jrl git:(master) cargo test --all
Updating registry `https://github.com/rust-lang/crates.io-index`
Downloading protobuf-codegen-pure v2.0.2
Downloading protobuf-codegen v2.0.2
Compiling unicode-width v0.1.5
Compiling regex v1.0.0
Compiling utf8-ranges v1.0.0
Compiling strsim v0.7.0
Compiling ansi_term v0.11.0
Compiling vec_map v0.8.1