View pandoc_convert_howto.md
pandoc -V geometry:a4paper -V colorlinks=true -f rst --toc -o output.pdf input.rst
View create-eml-file.py
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
# 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" |
View merge_pfds.md
pdfunite $(ls -p | grep -v / | tr '\n' ' ') output.pdf
View script.py
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
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): |
View test_image_upload.py
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 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 |
View flatpak_zoom_version_history.md
See the Flapak Zoom version history and install a specific version
List all available zoom versions
Command
flatpak remote-info --log flathub us.zoom.Zoom
View remove_all_remote_branches.md
git branch -r | sed -r 's/origin\///g' | xargs -I {} git push origin :{}
View instructions.md
Installation instructions
Install required Linux packages
On Ubuntu
sudo apt-get install python3-virtualenv
sudo apt-get install python3-setuptools
View travis_to_github_actions_migration.md
Create an
How to migrate from travis-ci to github-actions (for Python projects)
Tested on Python projects only.
Follow the steps below.
.env
file with the following context:
Create an .env
NewerOlder