- Distributed Polling with SKIP LOCKED
- https://www.evernote.com/client/web#?an=true&fs=true&n=93f6cdf2-633d-4051-8b99-7e2d05498ead&s=s173&
- https://gist.github.com/rponte/0c5b0e3c1b84c0c2e49c863215c2c0f4
- https://gist.github.com/rponte/5e8d41fd3b2ced22206dce788208c30b (Implementing, rewriting, and rebuilding a task queue - by @tef_ebooks)
- https://todd-hubers.medium.com/you-really-can-replace-kafka-with-a-database-9e82a7c248a6 (Replacing Kafka with a database?)
- https://www.cloudamqp.com/blog/2015-11-23-why-is-a-database-not-the-right-tool-for-a-queue-based-system.html
- https://viralpatel.net/blogs/oracle-skip-locked/
- https://vladmihalcea.com/database-job-queue-skip-locked/
- https://github.com/vladmihalcea/high-performance-java-persistence/blob/master/core/src/test/java/com/vladmihalcea/book/hpjp/hibernate/concurrency/SkipLockJobQueueTest.java#L186
- https://docs.jboss.org/hibernate/orm/5.2/userguide/html_single/Hibernate_User_Guide.html#locking-follow-on
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
/* | |
Hanyang Univ. a script for skipping safetyedu courses | |
http://safetyedu.hanyang.ac.kr/ | |
[교육 영상 스킵] | |
1. '수강하기' 버튼을 눌러 안전교육 창을 띄운다. | |
2. 개발자도구(F12 버튼을 눌러)를 열어 'console' 탭에 이동해 아래 스크립트를 붙여넣는다. | |
3. 6과목에 대해 반복한다. |
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: |
NewerOlder