Skip to content

Instantly share code, notes, and snippets.

View jsam's full-sized avatar
🦁

sam jsam

🦁
View GitHub Profile
  • too much of redudant text (keep the technology list for each position in one place and add proficiency score)
  • quite a few bullet points are missing quantifiable results (highlight those which have and empasize the impact you've achieved)
  • better keyword matching for the role (ATS system do mostly keyword matching so make sure that the job ad matches the keyword in your CV - they dont string matching so for example, K8S and Kuberenetes are not the same thing)
  • bullet point color should be black so ATS system doesn't get confused while recognizing bullet points ... maybe instead of using this template bullet point which cant be selected in PDF just use a normal "*" character which can be selected properly inside the PDF
  • your previous role title was managerial but your technical achievements are from the individual contributor track (this is a potential red flag!) ... the way I solved this is to have 2 different CVs - one focused on the jobs I'm applying which are managerial and one which are IC
  • multi
@jsam
jsam / sample.json
Last active March 19, 2025 17:02
dota-challange.json
{
"challenges": [
{
"id": "CH0001",
"title": "Simple Victory",
"description": "Win a single match.",
"category": "Match Outcome",
"difficulty": "Easy",
"heroRole": "ANY",
@jsam
jsam / ml.md
Last active February 6, 2025 11:36
ml prep.

Basic Decoder-Only Transformer Tasks

  • Implement a basic decoder-only transformer from scratch with attention mechanisms
  • Add positional encoding to a transformer model (relative vs rotary)
  • Implement causal/masked (ie. similarities.masked_fill(mask=mask, value=float("-inf")))
  • Build/use BPE tokenizer and vocabulary system
  • Implement beam search and sampling strategies for text generation
  • Explain/add multi-head attention
  • Different attention patterns (sliding, linear, local, sparse)
  • Explain model paralellism elements
@jsam
jsam / server.py
Created January 29, 2025 14:15
server
#!/usr/bin/env python3
import socket
import numpy as np
import soundfile as sf
import time
import signal
import sys
import threading
import queue
from dataclasses import dataclass
quickstart on  main [!?]
❯ pwsh run-tye.ps1
sql-server-db [up]
Error response from daemon: network with name sot-network already exists
WARN[0000] /Users/samuel.picek/soxes/quickstart/quickstart/etc/docker/docker-compose.infrastructure.yml: `version` is obsolete
WARN[0000] /Users/samuel.picek/soxes/quickstart/quickstart/etc/docker/docker-compose.infrastructure.override.yml: `version` is obsolete
[+] Running 7/7
✔ Container grafana Started 2.8s
✔ Container rabbitmq Running 0.0s
@jsam
jsam / campaign.py
Created November 9, 2023 13:55
update
def update(self, **kwargs):
if "platforms" not in kwargs:
return super(Campaign, self).update(**kwargs)
for platform in kwargs.pop("platforms"):
if not platform.get("name"):
continue
platform_obj = self.get_platform(platform.get("name"))
if not platform_obj:
❯ kubectl logs melon-rent-694d4f788f-pbssx -c migratejob -f
Boot preload disabled. You will need to call preload_translations management command.
INFO:translate_client:Number of fetched translations: 1290
2023-06-16 20:31:32,713 - translate_client - INFO - Number of fetched translations: 1290
INFO:translate_client:Number of already cached translations: 1290
2023-06-16 20:31:32,728 - translate_client - INFO - Number of already cached translations: 1290
2023-06-16 20:31:32,728 - translate_client - INFO - Number of new translations to cache: 0
INFO:translate_client:Number of new translations to cache: 0
INFO:translate_client:There are no new translations to cache!
2023-06-16 20:31:32,729 - translate_client - INFO - There are no new translations to cache!
root@melon-rent-6db56b8668-fqh2f:/opt/melon# poetry run python manage.py preload_translations
Boot preload disabled. You will need to call preload_translations management command.
2023-06-07 11:09:49,090 - translate_client - INFO - Number of fetched translations: 1280
INFO:translate_client:Number of fetched translations: 1280
2023-06-07 11:09:49,109 - translate_client - INFO - Number of already cached translations: 1280
INFO:translate_client:Number of already cached translations: 1280
2023-06-07 11:09:49,109 - translate_client - INFO - Number of new translations to cache: 0
INFO:translate_client:Number of new translations to cache: 0
2023-06-07 11:09:49,119 - translate_client - INFO - There are no new translations to cache!
INFO:translate_client:There are no new translations to cache!
root@melon-rent-6db56b8668-fqh2f:/opt/melon# poetry run python manage.py preload_translations
Boot preload disabled. You will need to call preload_translations management command.
2023-06-07 10:48:19,783 - translate_client - INFO - Number of fetched translations: 1280
INFO:translate_client:Number of fetched translations: 1280
2023-06-07 10:48:19,803 - translate_client - INFO - Number of already cached translations: 1280
INFO:translate_client:Number of already cached translations: 1280
2023-06-07 10:48:19,803 - translate_client - INFO - Number of new translations to cache: 0
INFO:translate_client:Number of new translations to cache: 0
2023-06-07 10:48:19,820 - translate_client - INFO - There are no new translations to cache!
INFO:translate_client:There are no new translations to cache!
@jsam
jsam / a.py
Last active June 5, 2023 09:17
example api
cache = redis.Redis(host='localhost', port=6379, db=0)
def check_view_refresh(func):
@wraps(func)
def wrapper(self, key):
views = key.views.split(",")
query = (View.name == views.pop(0))
for vw in views:
query |= (View.name == vw)