Skip to content

Instantly share code, notes, and snippets.

View KyleTryon's full-sized avatar
💻
Blogging

Kyle a.k.a. TechSquidTV KyleTryon

💻
Blogging
View GitHub Profile
aspe:keyoxide.org:Y46Y6IUQFVLAQ7JDHV3R37XOVM
### Keybase proof
I hereby claim:
* I am kyletryon on github.
* I am kyletryon (https://keybase.io/kyletryon) on keybase.
* I have a public key ASBkfNGTTXHfOlr4c2zFLkb3OeqKGfwBH_Vu9BAARHCrLgo
To claim this, I am signing this object:
@KyleTryon
KyleTryon / export-shapes.jsx
Created April 18, 2023 14:56
Export shapes from a selection in Adobe Illustrator
// This script was generated with ChatGPT4
// How to use:
// 1. Select multiple objects in Adobe Illustrator
// 2. Go to File > Scripts > Other Script...
// 3. Open this script
// 4. Enter the name for the shapes in the prompt
// 5. Select a destination folder
// Shared by: @TechSquidTV
#target Illustrator
$ sudo pip3 install -r requirements.txt
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting crypto==1.4.1
Using cached https://www.piwheels.org/simple/crypto/crypto-1.4.1-py2.py3-none-any.whl (18 kB)
Collecting requests==2.21.0
Using cached https://www.piwheels.org/simple/requests/requests-2.21.0-py2.py3-none-any.whl (57 kB)
Collecting PyYAML==5.1
Using cached PyYAML-5.1.tar.gz (274 kB)
Collecting scapy==2.4.3
Using cached https://www.piwheels.org/simple/scapy/scapy-2.4.3-py2.py3-none-any.whl (1.0 MB)
version: 2.1
orbs:
preflight: preflight/test-runner@1.0
jobs:
preflight-tests:
docker:
- image: cimg/node:lts
steps:
- preflight/run-tests:
testId: '1obqIFJ9flGa'
module.exports.add = async (event: any) => {
// https://stackoverflow.com/a/52240132/8963385
// Body is being processed as a string, not json, ONLY on API gateway which is failing to properly insert into addNumbers.
const responseBody = JSON.stringify(event.body)
console.log("Stringified Body: \n", responseBody)
const parsedBody = JSON.parse(responseBody)
console.log("TypeOf ParsedBody: \n", typeof(parsedBody))
console.log("Parsed Body: \n", parsedBody)
const userNumbers = parsedBody.numbers
console.log("TypeOf userNumbers: \n", typeof(userNumbers))
examples:
simple:
description: Simplest use case, leveraging default webpack config location and root project path.
usage:
version: 2.1
orbs:
packtracker: packtracker/report@x.y.z
jobs:
packtracker/report:
@KyleTryon
KyleTryon / keybase.md
Created July 12, 2019 17:01
keybase claim

Keybase proof

I hereby claim:

  • I am kyletryon on github.
  • I am kylet (https://keybase.io/kylet) on keybase.
  • I have a public key ASAccU_YMseOmQdBFnOKUnFkorFqnqfZRnHFfwq6lh35eAo

To claim this, I am signing this object:

# Orb 'circleci/aws-ecr@6.0.0' resolved to 'circleci/aws-ecr@6.0.0'
version: 2
jobs:
aws-ecr/build-and-push-image:
machine: true
steps:
- run:
command: echo TAG=$(echo $CIRCLE_BRANCH$CIRCLE_TAG | sed 's@/@-@') >> $BASH_ENV
- run:
command: echo ACCOUNT_URL="${AWS_ACCOUNT_ID}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com"
for (i in history.messages) {
// if (history.messages[i].username != 'Slab' && history.messages[i]['text'] != '...') {
// delete history.messages[i]
// }
console.log(history.messages[i].text)
}