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:
COM_NAME = com_helloworld | |
ARCHIVE_FNAME = archive/$(COM_NAME)_$(shell date +%Y%m%d_%H%M).tar.bz2 | |
.PHONY: package | |
package: clean | |
mkdir build | |
cp -a $(COM_NAME) build/$(COM_NAME) | |
find build/$(COM_NAME) -type d -not -path build/$(COM_NAME) -exec cp build/$(COM_NAME)/index.html {} \; | |
cd build/$(COM_NAME);zip -r ../$(COM_NAME).zip . -x \*.swp | |
rm -rf build/$(COM_NAME) |
# Ignore everything in this directory | |
* | |
# Except this file | |
!.gitignore |
"""Convert TTC font to TTF using fontforge with python extension. | |
**Warning** The scripts saves splitted fonts in the current working directory. | |
Usage: | |
split_ttc_font_to_ttf.py Droid.ttc | |
""" | |
import sys | |
import fontforge |
/** | |
* Google analytics tracking | |
* add attribute data-ga-event with json encoded dictionary | |
* with keys eventLabel, eventAction, eventCategory | |
* eg: | |
* # Sample JSON structure | |
* { | |
* "eventLabel":" Send Event", | |
* "eventAction": "click", | |
* "eventCategory": "CTA" |
[include] | |
path = .gitconfig.local | |
[core] | |
editor = /usr/bin/vim | |
autocrlf = input | |
packedGitLimit = 64m | |
packedGitWindowSize = 64m | |
[color] | |
diff = auto | |
status = auto |
# 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" |
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 |
I hereby claim:
To claim this, I am signing this object:
""" | |
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') |
`.:/+o/ | |
`:+syyyo+//-h/ | |
.+yys+::------.-m. | |
:hho/:---------...+h | |
:hh+::--....----.`--.d/ | |
`sdo::--://///:-..`.--`oh | |
.dh/:::++ydmmdhyo/:`.--`/m` | |
.mh/:-/+omNNNmmdddy+/.--`/N` | |
.dh::-:+/dNNNmmdddhhs+--.`om | |
`dd/:--:+:mNNNmmmddhhs+:-..do |