- Python 3
- Python packages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import fnmatch | |
import json | |
import pathlib | |
import shutil | |
import sys | |
import zipfile | |
from datetime import datetime, timedelta | |
from typing import List |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
`.:/+o/ | |
`:+syyyo+//-h/ | |
.+yys+::------.-m. | |
:hho/:---------...+h | |
:hh+::--....----.`--.d/ | |
`sdo::--://///:-..`.--`oh | |
.dh/:::++ydmmdhyo/:`.--`/m` | |
.mh/:-/+omNNNmmdddy+/.--`/N` | |
.dh::-:+/dNNNmmdddhhs+--.`om | |
`dd/:--:+:mNNNmmmddhhs+:-..do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Sanitizing filename | |
from: https://github.com/pypa/pipenv/blob/master/pipenv/project.py | |
""" | |
def virtualenv_name(self): | |
# Replace dangerous characters into '_'. The length of the sanitized | |
# project name is limited as 42 because of the limit of linux kernel | |
# | |
# 42 = 127 - len('/home//.local/share/virtualenvs//bin/python2') - 32 - len('-HASHHASH') |
I hereby claim:
- I am yrcjaya on github.
- I am yrcjaya (https://keybase.io/yrcjaya) on keybase.
- I have a public key whose fingerprint is E6B6 54C5 62E6 708E 94D7 0D2D E481 B550 7C16 6AB4
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DOMAIN=example.com | |
.PHONY: help csr | |
$(DOMAIN).key: | |
openssl genrsa -out $(DOMAIN).key 2048 | |
@echo "Generated SSL key, keep this safe for future use" | |
$(DOMAIN).csr: $(DOMAIN).key | |
openssl req -new -key $(DOMAIN).key -out $(DOMAIN).csr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Sublime text editor | |
alias subl="/opt/Sublime\ Text\ 3/sublime_text -n" | |
## Sublime text editor that doesn't fork | |
alias sublw="/opt/Sublime\ Text\ 3/sublime_text -n -w" | |
# Display extending | |
## Only laptop screen | |
alias display-laptop="xrandr --output VGA-1 --off" | |
## Extend to left monitor | |
alias display-extend-left="xrandr --output VGA-1 --mode 1920x1080 --left-of eDP-1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[include] | |
path = .gitconfig.local | |
[core] | |
editor = /usr/bin/vim | |
autocrlf = input | |
packedGitLimit = 64m | |
packedGitWindowSize = 64m | |
[color] | |
diff = auto | |
status = auto |
NewerOlder