Skip to content

Instantly share code, notes, and snippets.

View anataliocs's full-sized avatar
👨‍💻
Working with Soroban Rust smart contracts

Chris Anatalio anataliocs

👨‍💻
Working with Soroban Rust smart contracts
View GitHub Profile
@anataliocs
anataliocs / twitter.xml
Last active August 29, 2015 13:56 — forked from FranckSilvestre/twitter.xml
Twitter feed module for Google Sites
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="RTS Labs on Twitter" />
<Content type="html">
<![CDATA[
<a class="twitter-timeline" href="https://twitter.com/rtslabs" data-widget-id="433285134742085632">Tweets de @rtslabs</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
]]>
</Content>
</Module>
@anataliocs
anataliocs / Nonchalantly.java
Last active August 29, 2015 14:27 — forked from poetix/Nonchalantly.java
A Java 8 class to handle checked exceptions
public interface Nonchalantly<T> {
static <T> T invoke(Nonchalantly<T> f) {
try {
return f.run();
} catch (Throwable e) {
throw new RuntimeException( e );
}
}
T run() throws Throwable;
@anataliocs
anataliocs / run_dynamodb_local.sh
Created November 21, 2016 18:34 — forked from zircote/run_dynamodb_local.sh
A quick run script to get a AWS DynamoDB Local instance going
#!/bin/sh
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
RUN_DIR=${DIR}/.dynamodb
DYNAMODB_LOCAL="http://dynamodb-local.s3-website-us-west-2.amazonaws.com/dynamodb_local_latest.tar.gz"
PORT=8000
ARGS="-inMemory -port ${PORT}"
install_dynamo_db(){
mkdir -p $1
curl -L $2 | tar xvz -C $1
@anataliocs
anataliocs / list-of-curl-options.txt
Created July 18, 2024 17:58 — forked from eneko/list-of-curl-options.txt
List of `curl` options
$ curl --help
Usage: curl [options...] <url>
--abstract-unix-socket <path> Connect via abstract Unix domain socket
--alt-svc <file name> Enable alt-svc with this cache file
--anyauth Pick any authentication method
-a, --append Append to target file when uploading
--basic Use HTTP Basic Authentication
--cacert <file> CA certificate to verify peer against
--capath <dir> CA directory to verify peer against
-E, --cert <certificate[:password]> Client certificate file and password