Skip to content

Instantly share code, notes, and snippets.

View aitoehigie's full-sized avatar
📞
Call me on my Shell phone

Ejay Aito aitoehigie

📞
Call me on my Shell phone
View GitHub Profile
# myapp/management/commands/make_smoke_tests.py
from django.core.management.base import BaseCommand
from django.urls import get_resolver, URLPattern, URLResolver
import re
import os
class Command(BaseCommand):
help = 'Generates smoke tests for projects.'
def add_arguments(self, parser):
{
"basics": {
"name": "John Doe",
"label": "Programmer",
"image": "",
"email": "john@gmail.com",
"phone": "(912) 555-4321",
"url": "https://johndoe.com",
"summary": "A summary of John Doe…",
"location": {
import tempfile
import os
import string
import random
import subprocess
import requests
import openai
import pandas as pd
import csv
import openpyxl
"""
A simple weather app.
"""
from pprint import pprint
import toga
from toga.style import Pack
from toga.style.pack import COLUMN, ROW, LEFT, RIGHT
import requests
TOKEN="37946c6bcf8f62c02f22594c77f8a311"
--------- beginning of main
07-05 07:55:36.840 1503 1503 W auditd : type=2000 audit(0.0:1): initialized
07-05 07:55:37.910 1503 1503 I auditd : type=1403 audit(0.0:2): policy loaded auid=4294967295 ses=4294967295
07-05 07:55:37.920 1503 1503 W auditd : type=1404 audit(0.0:3): enforcing=1 old_enforcing=0 auid=4294967295 ses=4294967295
07-05 07:55:39.000 1 1 W init : type=1400 audit(0.0:4): avc: denied { setattr } for name="slabinfo" dev="proc" ino=4026532041 scontext=u:r:init:s0 tcontext=u:object_r:proc:s0 tclass=file permissive=0
07-05 07:55:39.000 1 1 W init : type=1400 audit(0.0:5): avc: denied { setattr } for name="slabinfo" dev="proc" ino=4026532041 scontext=u:r:init:s0 tcontext=u:object_r:proc:s0 tclass=file permissive=0
07-05 07:55:39.012 1504 1504 I SELinux : SELinux: Loaded service_contexts from:
07-05 07:55:39.013 1504 1504 I SELinux : /system/etc/selinux/plat_service_contexts
07-05 07:55:39.047 1506 1506 I SELinux : SELinux: Loaded service_contexts from:
07-0
def name(p1, p2, /, p_or_kw, *, kw):
def name(p1, p2=None, /, p_or_kw=None, *, kw):
def name(p1, p2=None, /, *, kw):
def name(p1, p2=None, /):
def name(p1, p2, /, p_or_kw):
def name(p1, p2, /):
def func(positional_only_parameters, /, positional_or_keyword_parameters, *, keyword_only_parameters):
def func(positional_or_keyword_parameters, *, keyword_only_parameters):
@aitoehigie
aitoehigie / ImageUploader.py
Last active October 17, 2019 02:57 — forked from tkrynski/ImageUploader.py
Python ImageUploader refactor
from PIL import Image
import base64
import requests
import mimetypes
from io import BytesIO
import redis
import socket
from uuid import uuid4
REDIS_CONNECTION = redis.Redis()
from functools import lru_cache
@lru_cache(maxsize=32)
def my_function():
pass