Skip to content

Instantly share code, notes, and snippets.

@choco-bot
choco-bot / 1.RegistrySnapshot.xml
Created February 7, 2025 23:52
dolt v1.49.1 - Passed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<registrySnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<user>S-1-5-21-1793470960-1418805006-3216545091-1000</user>
<keys>
<key installerType="Msi" displayName="Dolt 1.49.1" displayVersion="1.49.1">
<RegistryView>Registry64</RegistryView>
<KeyPath>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{91570326-C546-43CB-A959-FB6FAA00337D}</KeyPath>
<DefaultValue />
<InstallLocation><![CDATA[]]></InstallLocation>
<UninstallString><![CDATA[MsiExec.exe /I{91570326-C546-43CB-A959-FB6FAA00337D}]]></UninstallString>
@hibrahimd
hibrahimd / trendyol-pazaryeri-popup-engelleyici.txt
Created February 7, 2025 23:52
Trendyol Pazaryeri için Adblock Popup Engelleyici
! Başlık: Trendyol Pazaryeri için Adblock Popup Engelleyici
! Açıklama: Bu filtre, Adblock veya benzeri içerik engelleme eklentileri kullanılarak Trendyol Pazaryeri'nde karşınıza çıkan istenmeyen popup reklamları ve modal diyalogları engeller.
! Son Güncelleme: 2025-02-08
partner.trendyol.com##..ins-preview-wrapper
@lukasklinger
lukasklinger / bootstrapwyse.sh
Last active February 7, 2025 23:57 — forked from aleksasiriski/bootstrapwyse.sh
Bootstrap Dell Wyse 3040 with snapcast-client using ALSA on fresh Alpine install.
#!/usr/bin/env bash
# Enable community repo
cat > /etc/apk/repositories << EOF; $(echo)
https://dl-cdn.alpinelinux.org/alpine/v$(cut -d'.' -f1,2 /etc/alpine-release)/main/
https://dl-cdn.alpinelinux.org/alpine/v$(cut -d'.' -f1,2 /etc/alpine-release)/community/
EOF
# Update packages
apk update
@choco-bot
choco-bot / FilesSnapshot.xml
Created February 7, 2025 23:51
dorion.portable v6.4.1 - Passed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<fileSnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<files>
<file path="C:\ProgramData\chocolatey\lib\dorion.portable\dorion.portable.nupkg" checksum="B5A9275A8954D110FE48D4D812FD7D42" />
<file path="C:\ProgramData\chocolatey\lib\dorion.portable\dorion.portable.nuspec" checksum="23547DBEF71D45D5FF6D7EA17D3084F8" />
<file path="C:\ProgramData\chocolatey\lib\dorion.portable\Dorion_6.4.1_win64_portable.zip.txt" checksum="32E9B6C8E455191F43D2307887804D79" />
<file path="C:\ProgramData\chocolatey\lib\dorion.portable\files\.portable" checksum="D41D8CD98F00B204E9800998ECF8427E" />
<file path="C:\ProgramData\chocolatey\lib\dorion.portable\files\Dorion.exe" checksum="F6C3ACCED1C62C2D0CD889A94D28CEDD" />
<file path="C:\ProgramData\chocolatey\lib\dorion.portable\files\updater.exe" checksum="A42014E8BC9094C5F65D0F3884126883" />
<file path="C:\ProgramData\chocolatey\lib\dorion.portabl

Add Php repository

apt install software-properties-common ca-certificates lsb-release apt-transport-https 
LC_ALL=C.UTF-8 sudo add-apt-repository ppa:ondrej/php 
apt update

Install php and extensions

apt install php8.2 php8.2 libapache2-mod-php8.2 php8.2-mysql php8.2-fpm php8.2-xml zip unzip php8.2-zip php8.2-gd php8.2-mbstring php8.2-curl curl php8.2-xmlrpc php8.2-soap php8.2-intl -y
@TiagoDGomes
TiagoDGomes / dhcp_parser.py
Created February 7, 2025 23:51
Reads the dhcpd.leases file and returns formatted JSON output.
import re
import json
def parse_dhcp_leases(file_path):
"""
Reads and parses the dhcpd.leases file, returning a structured dictionary.
:param file_path: Path to the dhcpd.leases file
:return: Dictionary with data organized by IP and MAC
"""
@forkyau
forkyau / hourly_rainfall_data-2025-02-08|07-30.csv
Created February 7, 2025 23:51
GIST created by python code
id station stationid value unit obstime date
0 流浮山 RF001 0 mm 2025-02-08T07:30:00+08:00 2025-02-08
1 湿地公园 RF002 0 mm 2025-02-08T07:30:00+08:00 2025-02-08
2 水边围 N12 0 mm 2025-02-08T07:30:00+08:00 2025-02-08
3 石岗 RF003 0 mm 2025-02-08T07:30:00+08:00 2025-02-08
4 大美督 RF004 0 mm 2025-02-08T07:30:00+08:00 2025-02-08
5 大埔墟 RF005 0 mm 2025-02-08T07:30:00+08:00 2025-02-08
6 北潭涌 RF006 0 mm 2025-02-08T07:30:00+08:00 2025-02-08
7 滘西洲 RF007 0 mm 2025-02-08T07:30:00+08:00 2025-02-08
8 西贡 N15 0 mm 2025-02-08T07:30:00+08:00 2025-02-08
@choco-bot
choco-bot / 1.RegistrySnapshot.xml
Created February 7, 2025 23:49
dorion v6.4.1 - Passed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<registrySnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<user>S-1-5-21-534374257-315500514-3039820050-1000</user>
<keys>
<key installerType="Unknown" displayName="Dorion" displayVersion="6.4.1">
<RegistryView>Registry64</RegistryView>
<KeyPath>HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Dorion</KeyPath>
<DefaultValue />
<InstallLocation><![CDATA["C:\Users\vagrant\AppData\Local\Dorion"]]></InstallLocation>
<UninstallString><![CDATA["C:\Users\vagrant\AppData\Local\Dorion\uninstall.exe"]]></UninstallString>
import streamlit as st
# دالة التوصية الغذائية
def recommend_food(age, weight, health_status, activity, preference):
if health_status == "Diabetes":
return ("Low-carb, High-protein food", "Your cat has diabetes, so a low-carb, high-protein food is recommended.")
elif health_status == "Kidney Problems":
return ("Low-protein, Renal diet food", "Cats with kidney problems need a special renal diet with reduced protein.")
elif age < 1:
return ("High-calorie kitten food", "Kittens need high-calorie food to support their growth.")
<!doctype html>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5, viewport-fit=cover">
<link rel="profile" href="https://gmpg.org/xfn/11">
<title>MintMingle</title>