Skip to content

Instantly share code, notes, and snippets.

View sacsbrainz's full-sized avatar
💻
Typescript

Solomon ogu sacsbrainz

💻
Typescript
View GitHub Profile
@sacsbrainz
sacsbrainz / install-docker-deepin.sh
Last active December 14, 2023 21:06 — forked from madkoding/install-docker-deepin.sh
Install Docker-CE script for Deepin Linux
#!/bin/bash
echo "Starting Docker installation on Deepin Linux..."
# Define a mapping from Deepin version to Debian version
map_deepin_to_debian() {
case "$1" in
20*) echo "buster" ;; # Replace with the correct mapping for Deepin 20
15*) echo "stretch" ;; # Replace with the correct mapping for Deepin 15
*) echo "buster";;
import telebot
import sqlite3
import time
# DATABASE CONFIGURATION
conn = sqlite3.connect('sacs_db.db', check_same_thread=False)
cursor = conn.cursor()
def db_wallet(user_id: int, wallet_a: str):
cursor.execute('INSERT INTO user_db (user_id, wallet) VALUES (?, ?)',