Skip to content

Instantly share code, notes, and snippets.

View oatmealraisin's full-sized avatar

Ryan Murphy oatmealraisin

View GitHub Profile
2020-10-30 17:05:15 > oatmealraisin ([email protected]) has joined #tcl
2020-10-30 17:05:15 - Topic for #tcl is "Tcl and Tk | ijchain is a bot bridging a jabber chat | http://www.tcl.tk | http://wiki.tcl.tk | http://paste.tclers.tk | Development http://core.tcl.tk | Dedicated Eggdrop-Tcl help in #eggdrop"
2020-10-30 17:05:15 - Topic set by thommey on Sun, 20 Aug 2017 17:55:57
2020-10-30 17:05:16 - Channel #tcl: 122 nicks (1 op, 0 voices, 121 normals)
2020-10-30 17:05:16 - PvNotice(ChanServ): This channel is bridged to a Jabber chat via ijchain. ijchain is a bot. Set your IRC client for UTF-8 encoding in this channel.
2020-10-30 17:05:16 - URL for #tcl: http://www.tcl.tk
2020-10-30 17:05:17 - Channel created on Sun, 26 Nov 2006 01:42:47
2020-10-30 17:05:49 oatmealraisin Hello, I'm having issues creating a menu for a project called Pure Data. I've identified that the program doesn't start because of an error when creating a menu
2020-10-30 17:06:04 oatmealraisin I'm getting the
# Copyright (c) 1997-2009 Miller Puckette.
#(c) 2008 WordTech Communications LLC. License: standard Tcl license, http://www.tcl.tk/software/tcltk/license.html
package provide pd_menus 0.1
package require pd_menucommands
# TODO figure out Undo/Redo/Cut/Copy/Paste state changes for menus
# since there is one menubar that is used for all windows, the menu -commands
This file has been truncated, but you can view the full file.
Created temporary directory: /tmp/pip-ephem-wheel-cache-08itoxqh
Created temporary directory: /tmp/pip-req-tracker-nbsb6i09
Initialized build tracking at /tmp/pip-req-tracker-nbsb6i09
Created build tracker: /tmp/pip-req-tracker-nbsb6i09
Entered build tracker: /tmp/pip-req-tracker-nbsb6i09
Created temporary directory: /tmp/pip-wheel-gioqwo6t
Processing ./wxPython-4.0.7.tar.gz
Created temporary directory: /tmp/pip-req-build-4ksn6anj
Added file:///home/ryan/documents/sources/soundgrain/wxbuild/wxPython-4.0.7.tar.gz to build tracker '/tmp/pip-req-tracker-nbsb6i09'
Running setup.py (path:/tmp/pip-req-build-4ksn6anj/setup.py) egg_info for package from file:///home/ryan/documents/sources/soundgrain/wxbuild/wxPython-4.0.7.tar.gz
============================= test session starts ==============================
platform linux -- Python 3.7.5, pytest-5.3.0, py-1.8.0, pluggy-0.13.1
rootdir: /home/ryan/documents/work/MakeCents/makecents-ach-testing-suite
collected 17 items
test_jwt.py .. [ 11%]
test_regiser.py ....F..F [ 58%]
test_spay.py FFFFF.. [100%]
=================================== FAILURES ===================================
ERROR:bank_api:Exception on /auth [POST]
Traceback (most recent call last):
File "/usr/local/bank/venv/lib/python3.6/site-packages/flask/app.py", line 2446, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/bank/venv/lib/python3.6/site-packages/flask/app.py", line 1951, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/bank/venv/lib/python3.6/site-packages/flask/app.py", line 1820, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/bank/venv/lib/python3.6/site-packages/flask/_compat.py", line 39, in reraise
raise value
[centos@ip-172-31-42-182 plutus-bank-api]$ python bank_api.py
File "bank_api.py", line 39
log.debug(f"{time.strftime(ftime)}:Time to connect to Postgres: {ctime}")
^
SyntaxError: invalid syntax

Plutus Bank API

'/register': Provides API functionality for registering user credentials and gesture data with the Bank API and the Gesture API. '/auth': Provides functionality for authenticating a user, either with username and password, or username and gesture data. After successful authentications, returns a token inside a JSON response which can be used to authenticate further interactions with the Bank API. '/reset': Provides functionality for reseting a password in the Bank and Gesture APIs. '/clear': Provides functionality for clearing a user record and gesture data stored by the Gesture API. '/helloworld/': Provides a helloworld endpoint which requires a token to authenticate, returning some sample response.

Installation

[Default Applications]
x-scheme-handler/http=firefox.desktop
x-scheme-handler/https=firefox.desktop
x-scheme-handler/ftp=firefox.desktop
x-scheme-handler/chrome=firefox.desktop
text/html=firefox.desktop
text/xml=firefox.desktop;org.qutebrowser.qutebrowser.desktop;
application/x-extension-htm=firefox.desktop
application/x-extension-html=firefox.desktop
application/x-extension-shtml=firefox.desktop
mkdir test
cd test
python -m virtualenv venv
source venv/bin/activate
pip install pyspark -t python
zip -9 pyspark.zip -r python/
# upload file to s3
aws lambda publish-layer-version --layer-name bacrey-ml-pyspark --content 'S3Bucket=my-bucket,S3Key=pyspark.zip' --debug --profile my_profile
##############################
# ~/.config/neomutt/neomuttrc
##############################
set wait_key = no # shut up, mutt
set header_cache = ~/.cache/neomutt
set timeout = 3 # idle time before scanning
set mail_check = 0 # minimum time between scans
set sleep_time = 0
set mail_check_stats