Skip to content

Instantly share code, notes, and snippets.

root@ip-10-0-102-85:/usr/src/app# python ./relycomply/manage.py showmigrations --list
{"timestamp": "2024-12-12T19:45:29.45.0", "level": "INFO", "location": "xmlschema.include_schema:1274", "message": "Include schema from 'file:///usr/src/venv/lib/python3.11/site-packages/xmlschema/schemas/XSD_1.1/xsd11-extra.xsd'"}
System check identified some issues:
WARNINGS:
users.User.email: (fields.W905) django.contrib.postgres.fields.CICharField is deprecated. Support for it (except in historical migrations) will be removed in Django 5.1.
HINT: Use CharField(db_collation="…") with a case-insensitive non-deterministic collation instead.
{"timestamp": "2024-12-12T19:45:31.189.0", "level": "WARNING", "location": "aws_xray_sdk.core.recorder._begin_subsegment_helper: 289", "message": "No segment found, cannot begin subsegment execute."}
{"timestamp": "2024-12-12T19:45:31.211.0", "level": "WARNING", "location": "aws_xray_sdk.core.recorder._begin_subsegment_helper: 289", "message": "No segment found, cannot begin subsegment
@muhummadPatel
muhummadPatel / client.js
Created December 28, 2020 16:47 — forked from aerrity/client.js
P5.js, Node, Express & MongoDB: Circle update demo
let myCircle;
function setup() {
createCanvas(400, 400);
background(0);
// retrieve the x, y coords from the DB
fetch('/circle', {method: 'GET'})
.then(function(response) {
if(response.ok) return response.json();
throw new Error('Request failed.');
@muhummadPatel
muhummadPatel / script-template.sh
Created December 15, 2020 11:53 — forked from m-radzikowski/script-template.sh
Minimal safe Bash script template - see the article with full description: https://betterdev.blog/minimal-safe-bash-script-template/
#!/usr/bin/env bash
set -Eeuo pipefail
cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1
trap cleanup SIGINT SIGTERM ERR EXIT
usage() {
cat <<EOF
@muhummadPatel
muhummadPatel / example.ts
Created December 8, 2020 08:12 — forked from leafriend/example.ts
Client-side Load Balancing with Axios
import axios, { AxiosRequestConfig } from 'axios';
(async () => {
const config: AxiosRequestConfig = {
get baseURL() {
let baseURL = 'https://example.com';
// Select node here
return baseURL;
},
@muhummadPatel
muhummadPatel / circles.pde
Created January 26, 2017 11:00 — forked from brysonian/circles.pde
Basic circle packing in Processing
/*
VARIATIONS:
Draw lines between all circles
Draw lines between new circle and closest neighboor
Move new circle to exactly touch closest neighboor
Change fill or stroke depending on circle size
Change overlap threshold (slight overlap ok / large margin)
*/
@muhummadPatel
muhummadPatel / README-Template.md
Created November 8, 2016 10:23 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@muhummadPatel
muhummadPatel / wavyFieldDoodle.pde
Created October 19, 2016 17:49
Processing sketch of a grid of line segments rotating at various speeds.
/*
* Doodle that spawns a grid of lines and some random controlPoints and rotates
* the lines. Time waster/code doodle.
*
* Muhummad Patel
* 19 Oct 2016
*/
ArrayList<ControlPoint> controlPoints;
final int NUM_CONTROL_POINTS = 15;
@muhummadPatel
muhummadPatel / update_ip.py
Created September 26, 2016 14:37
Python script to upload current computers public IP address to a github gist.
# Finds your public ip and writes it to a github gist. Run this as a cronjob as often as you like
# When you need to ssh in, just check the gist for the ip to use
# requires simplegist: pip install simplegist
from datetime import datetime
from simplegist import Simplegist
from urllib2 import urlopen
gg = Simplegist(username='[github username]', api_token='[github api token]')
@muhummadPatel
muhummadPatel / automated_ssh.py
Created September 12, 2016 16:12
Using pxssh to automate ssh-ing in and running some commands.
# Using pxssh to automate ssh-ing in and running some commands. Seems
# pretty useful.
# Dependencies: pip install pexpect
from pexpect import pxssh
try:
s = pxssh.pxssh()
hostname = '[hostname]'
username = '[username]'
@muhummadPatel
muhummadPatel / bit_packed_3d_array.cpp
Last active May 24, 2016 16:45
Quick test to figure out how to bitpack a 3d array of voxels into a flat array of ints.
/*
* Quick test to figure out how to bitpack a 3d array of voxels into a flat
* array of ints. Need to understand this concept for cgp2 assignment.
*
* Relevant sources:
* http://stackoverflow.com/questions/6916974/change-a-bit-of-an-integer
* http://stackoverflow.com/questions/47981/how-do-you-set-clear-and-toggle-a-single-bit-in-c-c
* http://www.learncpp.com/cpp-tutorial/38-bitwise-operators/
*
* Muhummad Patel 1-March-2016