Skip to content

Instantly share code, notes, and snippets.

View jsam's full-sized avatar
🦁

sam jsam

🦁
View GitHub Profile
@jsam
jsam / __init__.py
Created May 22, 2023 10:54
__init__.py
"""Melon Translate client."""
class _InitializeModule:
_instance = None
def __new__(cls, *args, **kwargs):
if not cls._instance:
cls._instance = super().__new__(cls, *args, **kwargs)
return cls._instance
@jsam
jsam / example.py
Created May 17, 2023 09:53
Sanin example
def test_enqueue_geohash_fetch(redis_conn):
enqueue_geohash_fetch()
# NOTE: provjeris ovjde da li je job enqueuan na zadanom queue i ima odgovarajuce parametrom
redis_conn.get("___")
@task
def enqueue_geohash_fetch():
"""Enqueues retrieval job for each tenant every N hours."""
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: "4"
creationTimestamp: "2022-09-19T12:49:14Z"
generation: 5
labels:
app.kubernetes.io/instance: flux-system
app.kubernetes.io/part-of: flux
@jsam
jsam / gist:ff00b01d0a0deb44e58dc7c53bee9c42
Created May 17, 2022 15:02
Github repository for the PCB we are building
https://github.com/luxonis/depthai-hardware/tree/master/DM1095_OAK-D-LITE-DEV_DepthAI_USB3C
eyJjb2xsZWN0aW9uX25hbWUiOiJXb3dVcF9leHBvcnRfMTY1MDI3OTgxMjMxOCIsImNsaWVudF90eXBlIjoiQ2xhc3NpYyIsImFkZG9ucyI6W3siaWQiOiI0NzY3MSIsIm5hbWUiOiJRdWVzdGllIHY2LjkuMCIsInByb3ZpZGVyX25hbWUiOiJXb3dVcEh1YiIsInZlcnNpb25faWQiOiIzODc0MyJ9LHsiaWQiOiIyMSIsIm5hbWUiOiJOZWF0IE1pbmltYXAiLCJwcm92aWRlcl9uYW1lIjoiV293VXBIdWIiLCJ2ZXJzaW9uX2lkIjoiMzgzNTMifSx7ImlkIjoiMiIsIm5hbWUiOiJOb29iVGFjb1VJIiwicHJvdmlkZXJfbmFtZSI6Ildvd1VwSHViIiwidmVyc2lvbl9pZCI6IjM4MTA5In0seyJpZCI6IjEwIiwibmFtZSI6IldlYWtBdXJhcyIsInByb3ZpZGVyX25hbWUiOiJXb3dVcEh1YiIsInZlcnNpb25faWQiOiIzODMzOSJ9LHsiaWQiOiIzIiwibmFtZSI6IkJldHRlciBWZW5kb3IgUHJpY2UiLCJwcm92aWRlcl9uYW1lIjoiV293VXBIdWIiLCJ2ZXJzaW9uX2lkIjoiMzgzNTUifSx7ImlkIjoiMjQiLCJuYW1lIjoiR1cyIFVJIFRCQyIsInByb3ZpZGVyX25hbWUiOiJXb3dVcEh1YiIsInZlcnNpb25faWQiOiIzODY1NSJ9LHsiaWQiOiIxIiwibmFtZSI6IkF1Y3Rpb24gSG91c2UgRGF0YUJhc2UgKEFIREIpIiwicHJvdmlkZXJfbmFtZSI6Ildvd1VwSHViIiwidmVyc2lvbl9pZCI6IjM4MzU3In0seyJpZCI6IjQ2Mzg2MyIsIm5hbWUiOiJMZWF0cml4IFBsdXMgKEJ1cm5pbmcgQ3J1c2FkZSBDbGFzc2ljKSIsInByb3ZpZGVyX25hbWUiOiJDdXJzZSIsInZlcnNp
@jsam
jsam / gist:3d18b3e0d37d6c9d4fd6f7340eb5e599
Created March 15, 2022 11:20
translation collisions
Divergent translations found for ``de``:
{
"general_other": [
"Sonstiges",
"Anderes"
],
"general_team_membership": [
"Teammitgliedschaft",
"Team membership"
],
# npm audit report
ansi-regex >2.1.1 <5.0.1
Severity: moderate
Inefficient Regular Expression Complexity in chalk/ansi-regex - https://github.com/advisories/GHSA-93q8-gq69-wqmw
fix available via `npm audit fix --force`
Will install @vue/[email protected], which is a breaking change
node_modules/log-update/node_modules/ansi-regex
strip-ansi 4.0.0 - 5.2.0
Depends on vulnerable versions of ansi-regex
npm audit
=== npm audit security report ===
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Manual Review β”‚
β”‚ Some vulnerabilities require your attention to resolve β”‚
β”‚ β”‚
β”‚ Visit https://go.npm.me/audit-guide for additional guidance β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
melon-web-ui on ξ‚  M20-3430/npm-packages-research [$] via  v15.14.0 on ☁️ melon-principal@emonitor-engineering-328215.iam.gserviceaccount.com took 4s
➜ npm install
npm WARN npm npm does not support Node.js v15.14.0
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm You can find the latest version at https://nodejs.org/
npm WARN old lockfile
npm WARN old lockfile The package-lock.json file was created with an old version of npm,
npm WARN old lockfile so supplemental metadata must be fetched from the registry.
npm WARN old lockfile
{"status":"done","publicPath":"/static/mdt_frontend/","chunks":{"api-docs":[{"name":"api-docs.css","publicPath":"/static/mdt_frontend/api-docs.css","path":"/Users/sam/eMonitor/mimo-2.0/new_mdt/static/mdt_frontend/api-docs.css"},{"name":"api-docs.js","publicPath":"/static/mdt_frontend/api-docs.js","path":"/Users/sam/eMonitor/mimo-2.0/new_mdt/static/mdt_frontend/api-docs.js"}],"codemirror":[{"name":"codemirror.css","publicPath":"/static/mdt_frontend/codemirror.css","path":"/Users/sam/eMonitor/mimo-2.0/new_mdt/static/mdt_frontend/codemirror.css"},{"name":"codemirror.js","publicPath":"/static/mdt_frontend/codemirror.js","path":"/Users/sam/eMonitor/mimo-2.0/new_mdt/static/mdt_frontend/codemirror.js"}],"colorscheme1":[{"name":"colorscheme1.css","publicPath":"/static/mdt_frontend/colorscheme1.css","path":"/Users/sam/eMonitor/mimo-2.0/new_mdt/static/mdt_frontend/colorscheme1.css"},{"name":"colorscheme1.js","publicPath":"/static/mdt_frontend/colorscheme1.js","path":"/Users/sam/eMonitor/mimo-2.0/new_mdt/static/mdt_fron