Skip to content

Instantly share code, notes, and snippets.

View jaklan's full-sized avatar
🐍

Jakub Lański jaklan

🐍
View GitHub Profile
@c0m1c5an5
c0m1c5an5 / README.md
Last active March 19, 2025 18:28
Git wrapper to allow semantic-release to work when HEAD is behind remote.

I highly recommend using python-semantic-release instead. It provides full control over the release creation and does not have roadblocks in place preventing you from using it on non-latest commits. Still, if using semantic-release is a must, above scripts provide the means to do so.

@jeremyyeo
jeremyyeo / README.md
Last active October 9, 2024 09:30
Freshness checking models instead of sources #dbt

Freshness checking models instead of sources

dbt has a function to check the freshness (i.e. how up to date) of a particular source. That functionality is reserved exclusively for sources and not models - i.e. if you tried to apply source freshness on a model like you would a source:

# models/schemas.yml
version: 2
models:
  - name: foo
 loaded_at_field: updated_at
from langchain.agents import initialize_agent, Tool
from langchain.agents import AgentType
from langchain.tools import BaseTool
from langchain.llms import OpenAI
from langchain import LLMMathChain, SerpAPIWrapper
from spotipy.oauth2 import SpotifyClientCredentials, SpotifyOAuth
import azapi
import spotipy
from langchain.utilities import GoogleSearchAPIWrapper
from urllib.parse import quote_plus
@machuu
machuu / WSL2_VPN_Workaround_Instructions.md
Last active April 8, 2025 07:50
Workaround for WSL2 network broken on VPN

Overview

Internet connection and DNS routing are broken from WSL2 instances, when some VPNs are active.

The root cause seems to be that WSL2 and the VPN use the same IP address block, and the VPN routing clobbers WSL2's network routing.

This problem is tracked in multiple microsoft/WSL issues including, but not limited to:

@mohanpedala
mohanpedala / bash_strict_mode.md
Last active May 4, 2025 11:53
set -e, -u, -o, -x pipefail explanation
@jamesramsay
jamesramsay / README.md
Last active May 5, 2025 10:26
Gmail: delete old emails automatically

Gmail: delete old emails automatically

Automatically deletes old emails that match the specified label.

Get started

  • Create a new Google Apps Script at https://script.google.com
  • Overwrite the placeholder with the javascript below
  • Update the following constants:
  • LABEL_TO_DELETE: the label that should be have old messages deleted