pdfunite $(ls -p | grep -v / | tr '\n' ' ') output.pdf
This file contains hidden or 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
| # Prototype to create an eml file using python | |
| import os | |
| import uuid | |
| from email import generator | |
| from email.mime.multipart import MIMEMultipart | |
| from email.mime.text import MIMEText | |
| # where to write the output file | |
| directory = "C:\\Users\\Jeremy\Documents\\python\\email-prototype\\temp" |
This file contains hidden or 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
| from django.core.files import File | |
| from django.core.files.storage import default_storage, FileSystemStorage | |
| from django.conf import settings | |
| from django.core.files.base import ContentFile | |
| local_storage = FileSystemStorage() | |
| local_storage.base_location = settings.MEDIA_ROOT | |
| def get_local_file_from_object(obj): |
This file contains hidden or 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 os | |
| import io | |
| from PIL import Image | |
| from django.core.urlresolvers import reverse | |
| from django.conf import settings | |
| from rest_framework import status | |
| from rest_framework.test import APITestCase |
git branch -r | sed -r 's/origin\///g' | xargs -I {} git push origin :{}$ cat t.py
from pprint import pprint
from pytheory import Tone, Fretboard, charts_for_fretboard
tones = (
Tone.from_string("F2"),
Tone.from_string("C3"),
Tone.from_string("G3"),
Tone.from_string("D4"),
$ ./runtests.py
================================================================ test session starts =================================================================
platform linux -- Python 3.6.13, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
django: settings: project.settings.testing (from env)
rootdir: /home/delusionalinsanity/bbrepos/valuta, configfile: pytest.ini
plugins: ordering-0.6, django-4.3.0, Faker-8.1.4, pythonpath-0.7.3, cov-2.12.0
collected 35 items
src/valuta/contrib/django_integration/tests/test_models.py .................