Having troubles with Xcode or their Command Line Tools? Follow this guide to reset your Xcode instance on macOS and resolve issues such as "No Xcode or CLT version detected!"
- Alternatively download Xcode directly
xcode-select -print-path
/* | |
* Copyright 2014 Johannes Homeier | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
import bytes from '../../vendor/bytes/index.js' | |
const MAX_WIDTH = 600 | |
const MAX_HEIGHT = 600 | |
const { createFFmpeg, fetchFile } = FFmpeg | |
let ffmpeg | |
export async function compressAndGetThumb (file, maxVideoSize, progressCb) { | |
const objectUrl = URL.createObjectURL(file) | |
const videoEl = document.createElement('video') | |
videoEl.addEventListener('error', console.log) |
[["AMD", "AMD", "414d4400"], | |
["Atmel", "ATML", "41544d4c"], | |
["Broadcom", "BRCM", "4252434d"], | |
["IBM", "IBM", "49424d00"], | |
["Infineon", "IFX", "49465800"], | |
["Intel", "INTC", "494E5443"], | |
["Lenovo", "LEN", "4C454e00"], | |
["National Semiconductor","NSM", "4E534D20"], | |
["Nationz", "NTZ", "4E545A00"], | |
["Nuvoton Technology", "NTC", "4E544300"], |
Having troubles with Xcode or their Command Line Tools? Follow this guide to reset your Xcode instance on macOS and resolve issues such as "No Xcode or CLT version detected!"
xcode-select -print-path
#!/bin/bash | |
# | |
# PostgreSQL Backup Script Ver 1.0 | |
# http://autopgsqlbackup.frozenpc.net | |
# Copyright (c) 2005 Aaron Axelsen <axelseaa@amadmax.com> | |
# | |
# This script is based of the AutoMySQLBackup Script Ver 2.2 | |
# It can be found at http://sourceforge.net/projects/automysqlbackup/ | |
# | |
# The PostgreSQL changes are based on a patch agaisnt AutoMySQLBackup 1.9 |
I'm surely not maintaining this as well as I could. There are also other possible, better integrated solutions, like django-vite, so keep in mind this was supposed to be more of a note to myself than anything :]
This gist has most of the things I've used to develop the frontend using vite inside a monolithic django app.
Here's a boilerplate that uses this approach: https://github.com/labcodes/django-react-boilerplate
A couple of things to note:
Live Table: https://diafygi.github.io/webcrypto-examples/
I couldn't find anywhere that had clear examples of WebCryptoAPI, so I wrote examples and made a live table with them. Pull requests welcome!
When hosting our web applications, we often have one public IP
address (i.e., an IP address visible to the outside world)
using which we want to host multiple web apps. For example, one
may wants to host three different web apps respectively for
example1.com
, example2.com
, and example1.com/images
on
the same machine using a single IP address.
How can we do that? Well, the good news is Internet browsers