Skip to content

Instantly share code, notes, and snippets.

View merura's full-sized avatar
🎯
Focusing

Yernar Tursynali merura

🎯
Focusing
View GitHub Profile
@merura
merura / default.nix
Created November 14, 2023 12:30
nix-shell + python w/ integrated dependencies
{ pkgs ? import <nixpkgs> { } }:
let
ld_library_path = pkgs.lib.makeLibraryPath (with pkgs; [
stdenv.cc.cc # for greenlet support
]);
in
pkgs.symlinkJoin {
name = "dev-env-python311-cc-libpq";
paths = with pkgs; [ python311 postgresql ];
nativeBuildInputs = [ pkgs.makeWrapper ];
@merura
merura / gist:0ab1d9ffd5ede65557caaa909f240ad3
Created August 29, 2021 11:07
Yatopia Pufferpanel template
{
"name": "minecraft-yatopia",
"display": "Yatopia - Minecraft",
"type": "minecraft-java",
"install": [
{
"files": [
"https://api.yatopiamc.org/v2/build/${build}/download?branch=ver/${version}"
],
"type": "download"
@merura
merura / telegram_bots_commands_regex
Last active February 19, 2021 06:13
Telegram bots commands regex handler (python)
##Regex
`regex_patern = r'^\/(command)+(\@username_of_bot\w*(_\w+)*)?([ \f\n\r\t\v\u00A0\u2028\u2029].*)?$'`
Commands like that will handle
/command
/command arg1 arg2 ...
/command@username_of_bot
/command@username_of_bot arg1 arg2 ...
but
/command@other_bot