Skip to content

Instantly share code, notes, and snippets.

View Zxce3's full-sized avatar
💤
Sleep for a while

Memet Zx Zxce3

💤
Sleep for a while
View GitHub Profile
@Zxce3
Zxce3 / teavpn2.service
Created March 29, 2025 06:43
Teavpn2 Client Service
[Unit]
Description=TeaVPN2 Client Service
After=network.target
[Service]
Type=simple
User=root
WorkingDirectory=/home/memet/projek/gnuweeb/teavpn2
ExecStartPre=-/sbin/ip link delete teavpn2-cl-01
ExecStart=/bin/sh -c 'exec ./teavpn2 client -c config/akun.ini'
#!/bin/bash
# Telegram API Server Manager
# Author: Zxce3
# Date: 2025-03-17
set -e
# Colors for output
RED='\033[0;31m'
GREEN='\033[0;32m'

AlAdhan API Documentation

الأذَان

Overview

The AlAdhan API is a collection of RESTful web services providing accurate Islamic prayer times, Hijri calendar conversions, Qibla direction calculations, and other useful Islamic data. The API is designed to be easy to use and integrate into applications, websites, and other services.

API Base URL: https://api.aladhan.com/v1

.main {
--color-prettylights-syntax-comment: var(--btn-content);
--color-prettylights-syntax-constant: var(--btn-content);
--color-prettylights-syntax-entity: var(--btn-content);
--color-prettylights-syntax-storage-modifier-import: var(--btn-content);
--color-prettylights-syntax-entity-tag: var(--btn-content);
--color-prettylights-syntax-keyword: var(--btn-content);
--color-prettylights-syntax-string: var(--btn-content);
--color-prettylights-syntax-variable: var(--btn-content);
--color-prettylights-syntax-brackethighlighter-unmatched: var(--btn-content);
@Zxce3
Zxce3 / Dockerfile
Last active February 4, 2025 06:06
# Use the official Ubuntu base image
FROM ubuntu:20.04
# Prevent interactive prompts during installation
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=UTC
# Install base dependencies first
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
@Zxce3
Zxce3 / script.js
Last active January 19, 2025 15:10
// ==UserScript==
// @name Discord Media Downloader
// @namespace http://tampermonkey.net/
// @version 1.8
// @description Adds checkboxes to media items and a download button to download selected media on Discord Web concurrently, handling images as downloads and videos by opening them in new tabs.
// @author Zxce3
// @match https://discord.com/*
// @grant none
// ==/UserScript==
@Zxce3
Zxce3 / main.go
Created January 8, 2025 21:14
Just Something
package main
import (
"log"
"net/http"
"os"
"path/filepath"
"strings"
"github.com/pocketbase/pocketbase"
@Zxce3
Zxce3 / chzsh.sh
Created January 7, 2025 17:21
A script to manage Oh My Zsh themes, including listing, changing, previewing, and backing up themes.
#!/bin/bash
# Oh My Zsh Theme Manager
# Description: A script to manage Oh My Zsh themes, including listing, changing, previewing, and backing up themes.
# Author: Memet Zx
# Github: https://github.com/zxce3
# Purpose: To provide an easy way to manage Oh My Zsh themes from the command line.
# Usage: ./chzsh.sh [option]
# Options:
# -l, --list List all available themes
#!/bin/bash
INSTALL_DIR="$HOME/.config/herd-lite/bin"
PHP_BIN="$INSTALL_DIR/php"
COMPOSER_BIN="$INSTALL_DIR/composer"
LARAVEL_BIN="$INSTALL_DIR/laravel"
# Function to remove the selected binaries
remove_component() {
local component="$1"
@Zxce3
Zxce3 / phm.sh
Created February 23, 2024 16:36
php version manager bash script, to make it easier change between php version on debian/ubuntu
#!/bin/bash
# Function to display usage information
display_usage() {
echo "Usage: $0 [option] [version]"
echo "Options:"
echo " list : List available PHP versions"
echo " set-default : Set the default PHP version"
echo " switch : Switch PHP version"
echo "Example:"