Skip to content

Instantly share code, notes, and snippets.

View nashley's full-sized avatar

nashley nashley

View GitHub Profile
@nashley
nashley / out.txt
Created August 22, 2016 17:44
slap build output
==> Making package: slap 0.1.60-1 (Mon Aug 22 13:37:23 EDT 2016)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Downloading v0.1.60.zip...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 122 0 122 0 0 807 0 --:--:-- --:--:-- --:--:-- 813
100 861k 0 861k 0 0 1827k 0 --:--:-- --:--:-- --:--:-- 1827k
==> Validating source files with sha256sums...
@nashley
nashley / Distributed Computing.md
Last active November 1, 2016 02:17
Ideas for a distributed computing system

Create a system for creating/handling requests with a large number of clients.

#Ideas for options

  • OS
    • Linux
    • *nix
    • Windows
    • OS X
    • any
  • Prerequisites (ability to install these at will)
@nashley
nashley / databases.md
Created November 7, 2016 15:40
Database Programs
@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 / 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 / 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 / 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 / log
Created September 27, 2018 00:11
Lineage Repo Missing default.xml
% repo init -u [email protected]:LineageOS/android_device_xiaomi_dipper.git -- INSERT --
fatal: manifest 'default.xml' not available
fatal: manifest default.xml not found
@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 / 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)