Skip to content

Instantly share code, notes, and snippets.

View natemurthy's full-sized avatar

Nathan Murthy natemurthy

View GitHub Profile
@natemurthy
natemurthy / pip-install-torch.log
Created September 30, 2023 20:14
torch dependencies
=> => # Installing collected packages: mpmath, lit, cmake, typing-extensions, sympy, nvidia-nvtx-cu11, n
=> => # vidia-nccl-cu11, nvidia-cusparse-cu11, nvidia-curand-cu11, nvidia-cufft-cu11, nvidia-cuda-runtim
=> => # e-cu11, nvidia-cuda-nvrtc-cu11, nvidia-cuda-cupti-cu11, nvidia-cublas-cu11, networkx, MarkupSafe
=> => # , filelock, nvidia-cusolver-cu11, nvidia-cudnn-cu11, jinja2, triton, torch
@natemurthy
natemurthy / tfgo-getting-started-error.txt
Created January 22, 2023 03:26
natemurthy: tfgo example failed
2023-01-21 19:01:59.670541: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2 FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
dyld: lazy symbol binding failed: Symbol not found: ____chkstk_darwin
Referenced from: /usr/local/lib/libtensorflow.2.dylib (which was built for Mac OS X 10.15)
Expected in: /usr/lib/libSystem.B.dylib
dyld: Symbol not found: ____chkstk_darwin
Referenced from: /usr/local/lib/libtensorflow.2.dylib (which was built for Mac OS X 10.15)
Expected in: /usr/lib/libSystem.B.dylib
@natemurthy
natemurthy / etrade-python-session-attributes.txt
Created November 18, 2022 01:07
A dump of all session attributes when using the rauth library against the Etrade API
session attributes:
VERSION 1.0
_get_oauth_params <bound method OAuth1Session._get_oauth_params of <rauth.session.OAuth1Session object at 0x108304c10>>
_parse_optional_params <bound method OAuth1Session._parse_optional_params of <rauth.session.OAuth1Session object at 0x108304c10>>
_set_url <bound method RauthSession._set_url of <rauth.session.OAuth1Session object at 0x108304c10>>
access_token REDACTED
access_token_response <Response [200]>
access_token_secret REDACTED
adapters OrderedDict([('https://', <requests.adapters.HTTPAdapter object at 0x108304eb0>), ('http://', <requests.adapters.HTTPAdapter object at 0x108309040>)])
auth None
@natemurthy
natemurthy / etrade_authorizer.go
Created November 10, 2022 01:06
Etrade API oauth1 flow using Go
package main
import (
"bufio"
"fmt"
"log"
"net/url"
"os"
"strings"
// Code generated - DO NOT EDIT.
// This file is a generated binding and any manual changes will be lost.
package main
import (
"strings"
"github.com/ethereum/go-ethereum/accounts/abi"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
package main
import (
"math/big"
"testing"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core"
pragma solidity ^0.4.23;
contract helloworld {
function say() public pure returns (string) {
return 'hello etherworld';
}
}

Keybase proof

I hereby claim:

  • I am natemurthy on github.
  • I am namurthy (https://keybase.io/namurthy) on keybase.
  • I have a public key ASBn9ovapwNrXiuonmlHZY5b0A8LCe8luCi5ZgnektE7Vgo

To claim this, I am signing this object:

$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
ubuntu-numpy latest 9eaa351cd5d9 6 minutes ago 529MB
alpine-numpy latest 28e2d9ea2be5 21 minutes ago 285MB
ubuntu latest 747cb2d60bbe 2 weeks ago 122MB
python 2.7-alpine3.6 823e7055e03f 3 days ago 68.5MB
$ pip install numpy
Collecting numpy
Downloading numpy-1.13.3.zip (5.0MB)
100% |████████████████████████████████| 5.0MB 287kB/s
Building wheels for collected packages: numpy
Running setup.py bdist_wheel for numpy ... error
Complete output from command /usr/local/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-Jcd9jL/numpy/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpwKM5a8pip-wheel- --python-tag cp27:
Running from numpy source directory.
blas_opt_info:
blas_mkl_info: