Skip to content

Instantly share code, notes, and snippets.

View nashley's full-sized avatar

nashley nashley

View GitHub Profile
@nashley
nashley / glommio_cargo_test.log
Created January 27, 2022 01:23
Glommio test errors (commit `fe33e30a2d893a19d4022f104335f10243398973` on `rustc 1.58.1 (db9d1b20b 2022-01-20)`)
running 368 tests
test channels::local_channel::test::producer_bounded_has_capacity ... FAILED
test channels::local_channel::test::producer_consumer ... FAILED
test channels::channel_mesh::tests::test_join_more_than_once - should panic ... ok
test channels::channel_mesh::tests::test_join_more_than_capacity - should panic ... ok
test channels::local_channel::test::multiple_task_receivers ... FAILED
test channels::local_channel::test::non_stream_receiver ... FAILED
test channels::local_channel::test::producer_bounded_previously_blocked_still_errors_out ... FAILED
test channels::local_channel::test::producer_bounded_ping_pong ... FAILED
java.util.concurrent.CompletionException: java.net.ConnectException: https://redacted.com:443
at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:331)
at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:346)
at java.base/java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:870)
at java.base/java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:837)
at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
at java.base/java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2088)
at org.asynchttpclient.netty.NettyResponseFuture.abort(NettyResponseFuture.java:274)
at org.asynchttpclient.netty.channel.NettyConnectListener.onFailure(NettyConnectListener.java:181)
at org.asynchttpclient.netty.channel.NettyConnectListener$1.onFailure(NettyConnectListener.java:151)
@nashley
nashley / async-http-client.log
Created March 14, 2019 16:01
StackOverflowError in async-http-client
java.util.concurrent.CompletionException: java.net.ConnectException: https://redacted.com:443
at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:331)
at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:346)
at java.base/java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:870)
at java.base/java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:837)
at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
at java.base/java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2088)
at org.asynchttpclient.netty.NettyResponseFuture.abort(NettyResponseFuture.java:274)
at org.asynchttpclient.netty.channel.NettyConnectListener.onFailure(NettyConnectListener.java:181)
at org.asynchttpclient.netty.channel.NettyConnectListener$1.onFailure(NettyConnectListener.java:151)
@nashley
nashley / loopSpeakSentence.bxml
Last active October 22, 2018 15:49
Bandwidth BXML: Loop <SpeakSentence>
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<SpeakSentence voice="bridget" locale="en_UK" gender="female">
This is a test. It will loop continuously until you hangup.
</SpeakSentence>
<Pause length="1"/>
<Redirect requestUrl="https://gist.githubusercontent.com/nashley/711d2bd70a1362442172b92c1bf4afe1/raw/" requestUrlTimeout="2000"></Redirect>
</Response>
@nashley
nashley / log
Created September 27, 2018 00:11
Lineage Repo Missing default.xml
% repo init -u git@github.com:LineageOS/android_device_xiaomi_dipper.git -- INSERT --
fatal: manifest 'default.xml' not available
fatal: manifest default.xml not found
@nashley
nashley / test.asl
Created March 2, 2018 15:18
Wait Step Function Test (for bandwidthexamples/context-call)
{
"Comment": "An example of the Amazon States Language using a choice state.",
"StartAt": "Text Customer",
"States": {
"Text Customer": {
"Type": "Task",
"Resource": "AWS_ARN_HERE",
"Next": "WaitChoice",
"ResultPath": "$.state",
"Retry": [{
@nashley
nashley / speak.xml
Last active January 25, 2018 19:37
Test Bandwidth BXML
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<SpeakSentence voice="susan" gender="female">
The power to communicate!
Cue the music
</SpeakSentence>
@nashley
nashley / grequests_test.py
Created June 16, 2017 15:16
A simple program to demonstrate how to work with grequests
#!/usr/bin/python3
#import traceback
import grequests # pip install grequests
def exception_handler(request, exception):
print("An error occured while downloading from '%s':" % request.url)
# print(dir(exception))
# print(traceback.print_tb(exception.__traceback__))
@nashley
nashley / ideas.md
Last active November 18, 2016 14:22
Cross Platform GUI

Need to decide between remaking HTML/CSS/JS and creating a cross-platform library. The former would allow for truly cross-platform programs, while the latter would allow for multiple languages to use the library.

Could also just make a library for a bunch of language; e.g., C, Python3, Lua, JS(?).

Create a (or implement an existing) markup language that translates into native GUI code for each platform; the GUI talks to the developer-made, cross-platform backend (likely C) via API calls.

Backend options:

  • C
  • Python
@nashley
nashley / databases.md
Created November 7, 2016 15:40
Database Programs