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
from asyncio import Queue | |
import asyncio | |
import random | |
import time | |
async def worker_for_sync_task(name: str, queue: Queue, task) -> None: | |
while True: | |
item = await queue.get() | |
loop = asyncio.get_event_loop() |
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
version: "3.1" | |
services: | |
jbpm: | |
image: jboss/jbpm-server-full:latest | |
environment: | |
JBPM_DB_DRIVER: postgres | |
JBPM_DB_HOST: jbpmdb | |
JBPM_DB_PASSWORD: jbpmpass | |
ports: |
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
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
; #Warn ; Enable warnings to assist with detecting common errors. | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
; AutoHotkey Media Keys | |
!z::Send {Media_Prev} | |
!x::Send {Media_Play_Pause} | |
!c::Send {Media_Stop} | |
!v::Send {Media_Next} |
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 logging | |
import telegram | |
from telegram.ext import Updater, CommandHandler, MessageHandler, Filters | |
# Enable logging | |
logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', | |
level=logging.INFO) | |
logger = logging.getLogger(__name__) |
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
#!/usr/bin/env bash | |
set -euo pipefail | |
last_go_version() { | |
curl -s https://go.dev/dl/ | | |
grep linux-amd64 | | |
grep span | | |
awk -F">" '{ print $2 }' | | |
awk -F"<" '{ print $1 }' | |
} |
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
[supervisord] | |
nodaemon=true | |
[program:samba] | |
command=samba -F | |
autorestart=true | |
stdout_logfile=/dev/fd/1 | |
stdout_logfile_maxbytes=0 | |
stderr_logfile=/dev/fd/2 | |
stderr_logfile_maxbytes=0 |
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
#!/usr/bin/env bash | |
CHAT_ID= | |
TOKEN= | |
TEXT=$* | |
URL="https://api.telegram.org/bot${TOKEN}/sendMessage" | |
curl -s -X POST "${URL}" -d chat_id="${CHAT_ID}" -d text="${TEXT}" |
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
#!/usr/bin/env bash | |
set -Eeuo pipefail | |
trap cleanup SIGINT SIGTERM ERR EXIT | |
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) | |
usage() { | |
cat <<EOF | |
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...] |
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
; AutoHotkey Media Keys | |
!z::Send {Media_Prev} | |
!x::Send {Media_Play_Pause} | |
!c::Send {Media_Stop} | |
!v::Send {Media_Next} | |
!Left::Send {Volume_Down} | |
!Down::Send {Volume_Mute} | |
!Right::Send {Volume_Up} |
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
{ | |
"terminal.integrated.fontSize": 14, | |
"workbench.iconTheme": "material-icon-theme", | |
"workbench.startupEditor": "newUntitledFile", | |
"polacode.backgroundColor": "#6633CC", | |
"editor.tabSize": 2, | |
"editor.fontSize": 14, |
NewerOlder