Skip to content

Instantly share code, notes, and snippets.

View mujavidb's full-sized avatar
⚔️
Yes

Mujavid Bukhari mujavidb

⚔️
Yes
View GitHub Profile
@mujavidb
mujavidb / google_fonts.md
Created December 1, 2023 19:37 — forked from cvan/google_fonts.md
get ttf, woff, woff2 from Google Fonts

ttf

curl 'https://fonts.googleapis.com/css?family=Karla'

woff2

curl 'https://fonts.googleapis.com/css?family=Karla' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8' -H 'User-Agent: AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116'

woff

@mujavidb
mujavidb / bash.sh
Created December 31, 2019 10:20
Start application in current directory, deals with sourcing env and venv setup and takes into account make/package.json
function start {
FILE_MAKEFILE=./Makefile
FILE_PACKAGE=./package.json
FILE_VENV=./venv/bin/activate
FILE_ENV=./.env
if test -f "$FILE_ENV"; then
set -a; source "$FILE_ENV";
fi
if test -f "$FILE_VENV"; then
source "$FILE_VENV";
# IGNORED DIRS
build/
node_modules/
# APPLICATION
app/
components/
users/
user_controller.ts
user_model.ts