Skip to content

Instantly share code, notes, and snippets.

View aadibajpai's full-sized avatar
💡
due tomorrow, do tomorrow

Aadi Bajpai aadibajpai

💡
due tomorrow, do tomorrow
View GitHub Profile
@a-recknagel
a-recknagel / interactive_session.py
Last active June 22, 2020 09:38
log arg decorator
>>> from logging.config import dictConfig
>>> dictConfig(
... {
... "version": 1,
... "disable_existing_loggers": False,
... "formatters": {
... "standard": {
... "format": "%(asctime)s [%(levelname)s] %(name)s: %(message)s"
... }
... },
import os
import sys
import time
import json
import requests
import argparse
import lxml.html
import matplotlib.pyplot as plt
import numpy as np
from lxml.cssselect import CSSSelector
@josh-padnick
josh-padnick / fish-agent.sh
Last active April 1, 2024 06:28
Run ssh-agent via fish shell
#!/bin/bash
#
# Convert ssh-agent output to fish shell
#
eval "$(ssh-agent)" >/dev/null
echo "set SSH_AUTH_SOCK \"$SSH_AUTH_SOCK\"; export SSH_AUTH_SOCK"
echo "set SSH_AGENT_PID \"$SSH_AGENT_PID\"; export SSH_AGENT_PID"