Skip to content

Instantly share code, notes, and snippets.

View jamesray1's full-sized avatar

James Ray jamesray1

  • Sydney, Australia
View GitHub Profile
@jamesray1
jamesray1 / gist:a4cc987aca8b0e6666762f5cd59e16fc
Created September 20, 2018 06:44
happyhousesitters message error
Server Error in '/' Application.
The wait operation timed out
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ComponentModel.Win32Exception: The wait operation timed out
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Keybase proof

I hereby claim:

  • I am jamesray1 on github.
  • I am jamesray1 (https://keybase.io/jamesray1) on keybase.
  • I have a public key ASBJlFFmSD1A6uGqd8uX06WXVOwkpEdGSsCtEo62WUi0dgo

To claim this, I am signing this object:

Verifying my identity on Peepeth.com 0xf3047b2b495e31c1e39f198448ae5f382739264a
/usr/share/franz/resources/app.asar/node_modules/react/lib/lowPriorityWarning.js:38 Warning: Accessing PropTypes via the main React package is deprecated, and will be removed in React v16.0. Use the latest available v15.* prop-types package from npm instead. For info on usage, compatibility, migration and more, see https://fb.me/prop-types-docs
printWarning @ /usr/share/franz/resources/app.asar/node_modules/react/lib/lowPriorityWarning.js:38
/usr/share/franz/resources/app.asar/node_modules/react/lib/lowPriorityWarning.js:38 Warning: Accessing createClass via the main React package is deprecated, and will be removed in React v16.0. Use a plain JavaScript class instead. If you're not yet ready to migrate, create-react-class v15.* is available on npm as a temporary, drop-in replacement. For more info see https://fb.me/react-create-class
printWarning @ /usr/share/franz/resources/app.asar/node_modules/react/lib/lowPriorityWarning.js:38
SettingsStore.js:77 Uncaught (in promise) TypeError: Cannot read property 'au
@jamesray1
jamesray1 / gist:150bd047c2292f3671ee1ae6652ab9a8
Created August 23, 2018 00:49
git reset --soft <commit> && git commit
➜ libp2p-specs git:(rfc/gossipsub-minor-edits-v-2) git reset --soft HEAD-10
fatal: ambiguous argument 'HEAD-10': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
➜ libp2p-specs git:(rfc/gossipsub-minor-edits-v-2) git log
➜ libp2p-specs git:(rfc/gossipsub-minor-edits-v-2) git reset --soft 7a78aa642db7d453a1dd6eb6b2a0f531da7db80f && git commit
[rfc/gossipsub-minor-edits-v-2 18c4cd3] "Minor edits with grammar, clarity and links"
1 file changed, 70 insertions(+), 64 deletions(-)
➜ libp2p-specs git:(rfc/gossipsub-minor-edits-v-2) git push
Username for 'https://github.com': jamesray1
➜ 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
@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
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)
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 (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)