Skip to content

Instantly share code, notes, and snippets.

View Nick011's full-sized avatar

Nick Hagianis Nick011

View GitHub Profile
@Nick011
Nick011 / gist:e474878f1edbd8094856972c15133a28
Last active November 4, 2022 20:54
Rewst Job Description

Rewst - Full Stack Developer

Description

Rewst is a funded startup based out of Tampa, FL. We are building a product to allow automation for faster operational and cybersecurity response to small and medium size businesses. We provide a workflow builder that has integrations with a number of third-party APIs, a dynamic form builder system, and concierge technical support to enable any size business to automate technical workflows. Rewst aims to simplify the software development process for common tasks, and automate the 24/7 suport team you don't have and can't afford.

We are looking for a full-stack developer, writing modern Python and JavaScript experience. We would love to have someone who has worked for a small company, or startup, with a small team of developers.

Our Tech Stack

  • Kubernetes + Docker
@Nick011
Nick011 / gist:8b96ce44f03ee29ee86a48d596a51435
Created February 11, 2022 01:27
secret-sdk-uv-loop-bug
Package operations: 0 installs, 1 update, 0 removals
• Updating uvloop (0.16.0 -> 0.14.0): Failed
EnvCommandError
Command ['/home/nick/.cache/pypoetry/virtualenvs/secret-sdk-8UUDHvc3-py3.10/bin/pip', 'install', '--no-deps', '-U', 'file:///home/nick/.cache/pypoetry/artifacts/2f/d8/91/ffe1cf49dd337e8b280f0d9a5d19c1928f6f682357602c9c61eaf7fe09/uvloop-0.14.0.tar.gz'] errored with the following return code 1, and output:
Processing /home/nick/.cache/pypoetry/artifacts/2f/d8/91/ffe1cf49dd337e8b280f0d9a5d19c1928f6f682357602c9c61eaf7fe09/uvloop-0.14.0.tar.gz
Building wheels for collected packages: uvloop
Building wheel for uvloop (setup.py): started
import faust
import zmq
import zmq.asyncio
from faust.types import ChannelT, EventT
from typing import (
Mapping,
TypeVar,
no_type_check,
)
filter {
if {{ CISCO_FIREPOWER }} {
kv {
id => "cisco-firepower-kv"
field_split_pattern => ", "
value_split => ":"
trim_value => "\""
tag_on_timeout => "timeout"
target => "{{ TARGET }}"
}
@Nick011
Nick011 / gist:3055316b65a83ff2883942614f0ea10c
Created June 9, 2020 19:18
Consume directly from kafka
kaf consume inbound_persist_topic --raw | grep "Something" | grep "event_type: log" | jq
# Warning: I have not tested this
import requests
from datetime import datetime, timedelta
api_key = '(Your API Key)'
username = '(Your API Username)'
password = '(Your API Password)'
header = {
'x-api-key': api_key
}
# Version Info
GET /
################
# Cluster info #
################
# General cluster health
GET _cluster/health
@Nick011
Nick011 / gist:ce4328cc1ad03a5d572d4c0728689d43
Created May 13, 2019 15:57
Postgres: query will check for queries blocked while waiting for a lock
SELECT
blocked_locks.pid AS blocked_pid,
blocked_activity.usename AS blocked_user,
blocking_locks.pid AS blocking_pid,
blocking_activity.usename AS blocking_user,
blocked_activity.query AS blocked_statement,
blocking_activity.query AS current_statement_in_blocking_process
FROM pg_catalog.pg_locks blocked_locks
JOIN pg_catalog.pg_stat_activity blocked_activity
ON blocked_activity.pid = blocked_locks.pid
SELECT a.datname,
l.relation::regclass,
l.transactionid,
l.mode,
l.GRANTED,
a.usename,
a.query,
a.query_start,
age(now(), a.query_start) AS "age",
a.pid
SELECT a.datname,
l.relation::regclass,
l.transactionid,
l.mode,
l.GRANTED,
a.usename,
a.query,
a.query_start,
age(now(), a.query_start) AS "age",
a.pid