Skip to content

Instantly share code, notes, and snippets.

@amitpandey-io
amitpandey-io / create_justfile
Last active May 23, 2025 14:08
create a justfile for airflow/python project
cat << EOF > justfile
check:
# uv run ruff check --select=UP032 --fix . #convert to fstring
ruff check --select I --fix . # sort imports
ruff format .
ruff check .
init:
-rm -rf .venv pyproject.toml uv.lock .python-version
echo "3.12" > .python-version
@amitpandey-io
amitpandey-io / smstools3.md
Last active February 16, 2020 07:57 — forked from codexss/smstools3.md
Openwrt/LEDE smstools3 forward sms to telegram
opkg update
opkg install kmod-usb-serial kmod-usb-serial-wwan kmod-usb-serial-option usb-modeswitch smstools3 curl iconv

vi /usr/local/bin/pushsms

#!/bin/sh
@amitpandey-io
amitpandey-io / py_linting
Created February 7, 2020 10:57
python code linting
pip install flake8
flake8 --ignore=E24,E501,W504,E408
@amitpandey-io
amitpandey-io / pptdoc2pdf.ps1
Last active January 28, 2020 07:54 — forked from mp4096/ppt2pdf.ps1
Batch convert PowerPoint/Word files to PDF
# If PowerShell exits with an error, check if unsigned scripts are allowed in your system.
# You can allow them by calling PowerShell as an Administrator and typing
# ```
# Set-ExecutionPolicy Unrestricted
# ```
# Get invocation path
$curr_path = Split-Path -parent $MyInvocation.MyCommand.Path