Skip to content

Instantly share code, notes, and snippets.

View panamantis's full-sized avatar

Jon panamantis

View GitHub Profile

First, get your access and secret key from here

Then embed it in the colab notebook.

%%writefile ~/.passwd-s3fs
AWS_ACCESS_KEY_ID:AWS_SECRET_ACCESS_KEY

Need to restrict access

@panamantis
panamantis / .gitignore
Created June 27, 2020 13:47
Terminal Services session event monitor for http://superuser.com/q/264935
__pycache__
events.py
@panamantis
panamantis / logging.ini
Created June 20, 2020 13:22
Python logging configuration files (yaml, json, ini)
[loggers]
keys=root,app,uvicorn
[handlers]
keys=console,file,uvicorn
[formatters]
keys=console,file
[logger_root]
@panamantis
panamantis / TensorflowFromBrowser.html
Created January 2, 2020 13:34 — forked from novasush/TensorflowFromBrowser.html
Training and predicting an equation in chrome browser asynchronously using tensorflow.js
<!DOCTYPE html>
<html>
<head>
<title>Training a model on browser</title>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@latest"></script>
<script lang="js">
async function doTraining(model){
const history =
await model.fit(xs, ys,
@panamantis
panamantis / dqn_template_inprogress01.py
Created January 1, 2020 16:55 — forked from rayheberer/dqn_template_inprogress01.py
Mostly empty template, basic network implemented
import numpy as np
import tensorflow as tf
def dense(x, weights, bias, activation=tf.identity, **activation_kwargs):
"""Dense layer."""
z = tf.matmul(x, weights) + bias
return activation(z, **activation_kwargs)
@panamantis
panamantis / gist:efbaa60f4149aaf82a249463ee37d649
Created November 21, 2019 14:23 — forked from dvliman/gist:10016177
joinhoney affiliate vendors
sites:
"joinhoney.com
cravehoney.com
wanelo.com
wish.com
acehardware.com
ae.com
aeropostale.com
amazon.com
@panamantis
panamantis / gist:53b3b4c5d91adef0edaf3252ae05d001
Created November 21, 2019 14:22 — forked from dvliman/gist:10016069
join honey chrome extension
chrome.runtime.onStartup.addListener(function () {
chrome.storage.local.set({
log: ""
})
});
chrome.runtime.onInstalled.addListener(function (a) {
var b = {
log: ""
};
b.site_manifest = {
@panamantis
panamantis / .block
Created October 31, 2019 11:49 — forked from nbremer/.block
Gooey effect - Data visualization showcase
height: 680
@panamantis
panamantis / install-sox-amazon-linux.sh
Created January 8, 2019 22:14 — forked from chrisjz/install-sox-amazon-linux.sh
Install sox on Amazon Linux
#!/bin/sh
mkdir sox
cd sox
wget http://sourceforge.net/projects/sox/files/sox/14.4.2/sox-14.4.2.tar.gz
tar xvfz sox-14.4.2.tar.gz
cd sox-14.4.2
./configure
make -s
make install
@panamantis
panamantis / pytorch-lambda-deploy.sh
Created August 25, 2018 14:02 — forked from mjdietzx/pytorch-lambda-deploy.sh
AWS Lambda pytorch deep learning deployment package (building pytorch and numpy from source on EC2 Amazon Linux AMI)
#
# written for Amazon Linux AMI
# creates an AWS Lambda deployment package for pytorch deep learning models (Python 3.6.1)
# assumes lambda function defined in ~/main.py
# deployment package created at ~/waya-ai-lambda.zip
#
#
# install python 3.6.1
#