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
#!/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:" |
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
<?php | |
/** | |
* This file contains functions to retrieve system information and display it in a single file server dashboard. | |
* The functions include generating a safe ID, parsing lines, getting CPU info, load average, basic server info, | |
* CPU usage, memory usage, disk usage, and disk space. | |
* | |
* @author Zxce3 | |
* @version 1.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
# | |
# Automatically generated file; DO NOT EDIT. | |
# Linux/x86 6.6.0-rc5 Kernel Configuration | |
# | |
CONFIG_CC_VERSION_TEXT="Ubuntu clang version 16.0.6 (++20230710042046+7cbf1a259152-1~exp1~20230710162136.105)" | |
CONFIG_GCC_VERSION=0 | |
CONFIG_CC_IS_CLANG=y | |
CONFIG_CLANG_VERSION=160006 | |
CONFIG_AS_IS_LLVM=y | |
CONFIG_AS_VERSION=160006 |
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
<?php | |
const SECTIONS = [ | |
"profile" => "Edit profile", | |
"password" => "Change password", | |
]; | |
if (isset(SECTIONS[$section])) { | |
$opt["title"] = "Settings | " . SECTIONS[$section]; | |
} else { |
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
#!/bin/bash | |
# Script name: phloc | |
# Usage: | |
# phloc [port] [doc_root] | |
# port: port number to listen on (default: 8080) | |
# doc_root: document root (default: current directory) | |
# Description: | |
# Starts a PHP server on the specified port and document root. | |
# If no port is specified, the default port 8080 is used. | |
# If no document root is specified, the current directory is used. |
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
// libmicrohttpd-dev | |
// gcc -o main main.c -lmicrohttpd | |
#include <stdio.h> | |
#include <string.h> | |
#include <microhttpd.h> | |
const char *response_str = "<html><body>Hello, World!</body></html>"; | |
int handle_request(void *cls, |
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
// create a mail server without include any library | |
// compile: gcc -o wtf wtf.c | |
// run: ./wtf | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <netinet/in.h> |
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 requests | |
import os | |
import openai | |
import pathlib | |
import codecs | |
import lxml.etree | |
from lxml import etree | |
import argparse | |
from io import BytesIO |
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
const axios = require('axios'); | |
const sharp = require('sharp'); | |
const md5 = require("md5"); | |
const fs = require("fs"); | |
const { SocksProxyAgent } = require("socks-proxy-agent") | |
const { convertTo64 } = require('../utils/base64'); | |
let httpsAgent = new SocksProxyAgent("socks5://47.243.240.46:1080" ) | |
let fileName = "AniMeXin - "+ Math.random().toString(36).substr(2, 3) + "-" + Math.random().toString(36).substr(2, 3) + "-" + Math.random().toString(36).substr(2, 4); | |
httpsAgent.timeout = 30000; | |
const getAnime = (image) => { |
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
[Unit] | |
Description=Guard-Bot Levina | |
Requires=network.target | |
[Service] | |
Type=simple | |
User=levina | |
Group=levina | |
# edit your working directory | |
WorkingDirectory=/home/levina/guard-bot |
NewerOlder