Skip to content

Instantly share code, notes, and snippets.

View yrcjaya's full-sized avatar

Jayaseelan Yezhuaralai yrcjaya

View GitHub Profile
@yrcjaya
yrcjaya / convert_csv.py
Created May 14, 2021 06:08
Convert simple CSV to Google Contacts Fields CSV
#!/bin/env python3
import typer # pip install typer==0.3.2
import csv
COLS = 'Name,Given Name,Additional Name,Family Name,Yomi Name,Given Name Yomi,Additional Name Yomi,Family Name Yomi,Name Prefix,Name Suffix,Initials,Nickname,Short Name,Maiden Name,Birthday,Gender,Location,Billing Information,Directory Server,Mileage,Occupation,Hobby,Sensitivity,Priority,Subject,Notes,Language,Photo,Group Membership,Phone 1 - Type,Phone 1 - Value'.split(',')
app = typer.Typer()
@app.command()
@yrcjaya
yrcjaya / actions_scorecard.py
Last active February 15, 2022 20:42
Run openSSF scorecard against action repos
#!/bin/env python3
"""
Requirements:
- [scorecard](https://github.com/ossf/scorecard) installed
- GITHUB_TOKEN set in environment variable
- [sqlite-utils](https://github.com/simonw/sqlite-utils) installed
"""
@yrcjaya
yrcjaya / README.md
Created February 16, 2022 15:20
Setup mysql for a project

Project Setup and Teardown script

Requirements

Usage

@yrcjaya
yrcjaya / archive.py
Created February 7, 2024 07:10 — forked from calebstewart/archive.py
Terraform ZIP External Archiver Script
import fnmatch
import json
import pathlib
import shutil
import sys
import zipfile
from datetime import datetime, timedelta
from typing import List