Não use UUID
como PK nas tabelas do seu banco de dados.
Discover gists
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
<|begin_of_text|><|start_header_id|>system<|end_header_id|>Environment: ipython | |
Cutting Knowledge Date: December 2023 | |
Today Date: 13 Dec 2024 | |
# Tool Instructions | |
You may optionally call functions that you have been given access to. You DO NOT have | |
to call a function if you do not require it. ONLY call functions if you need them. Do NOT call | |
functions that you have not been given access to. |
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 asyncio | |
import base64 | |
import json | |
import os | |
import pyaudio | |
from websockets.asyncio.client import connect | |
class SimpleGeminiVoice: | |
def __init__(self): |
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
""" | |
electron_patcher.py: Enforce 'use-angle@1' in Chrome and Electron applications | |
Version 1.0.0 (2024-08-11) | |
""" | |
import enum | |
import json | |
from pathlib import Path |
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
sudo apt-get update | |
sudo apt-get install -y build-essential \ | |
zlib1g-dev libncurses5-dev libgdbm-dev \ | |
libnss3-dev libssl-dev libreadline-dev \ | |
libffi-dev libsqlite3-dev wget libbz2-dev | |
wget https://www.python.org/ftp/python/3.8.0/Python-3.8.0.tgz | |
tar -xf Python-3.8.0.tgz | |
cd Python-3.8.0 | |
./configure --enable-optimizations | |
make -j 8 |
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
;;; widen-window.el --- Widen selected window | |
;; Copyright (C) 1985, 1989, 1992, 1993, 1994, 2000, 2001, 2002, 2003, | |
;; 2004, 2005, 2006, 2007 Free Software Foundation, Inc. | |
;; Copyright (C) 2008 Yuto Hayamizu | |
;; Copyright (C) 2014 Akira Tamamori | |
;; Author: Akira Tamamori | |
;; Keywords: convenience | |
;; Version: 0.1.2 |
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
use master | |
/* | |
SQL Server Management Studio | |
Keyboard Shortcut-Enabled Helper Procedures | |
1. Execute this script on SQL Server | |
2. Configure Management Studio: |
Answer: All APIs of Node.js library are aynchronous that is non-blocking. It essentially means a Node.js based server never waits for a API to return data. Server moves to next API after calling it and a notification mechanism of Events of Node.js helps server to get response from the previous API call.
Source: tutorialspoint.com
- Erase USB drive with Disk Utility using format
Mac OS Extended (Journaled)
andMaster Boot Record
and call itMyVolume
- Use Finder to mount/open
InstallMacOSX.dmg
. - Run following commands:
pkgutil --expand /Volumes/Install\ OS\ X/InstallMacOSX.pkg /tmp/El\ Capitan
diskutil eject Install\ OS\ X
cd /tmp/El\ Capitan
NewerOlder