mkdir -p /etc/docker/oocsi-web-docker
version: '1.0'
services:
oocsi-server:
#!/bin/bash | |
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin | |
export PATH | |
grep "English" /www/server/panel/config/config.json | |
if [ "$?" -ne 0 ]; then | |
public_file=/www/server/panel/install/public.sh | |
if [ ! -f $public_file ]; then | |
wget -O $public_file https://download.bt.cn/install/public.sh -T 5 | |
fi |
#!/usr/bin/env bash | |
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin | |
export PATH | |
red='\033[0;31m' | |
green='\033[0;32m' | |
yellow='\033[0;33m' | |
plain='\033[0m' |
#!/bin/bash | |
# Check if xclip is installed, install if not | |
if ! command -v xclip &>/dev/null; then | |
apt-get update | |
apt-get install -y xclip | |
fi | |
# Check if clipboard is empty | |
if [[ -z "$(xclip -o -selection clipboard 2>/dev/null)" ]]; then |
#!/bin/bash | |
# Identify the operating system and architecture | |
OS=$(uname -s) | |
ARCH=$(uname -m) | |
# Install based on system distribution | |
if [ "$OS" == "Linux" ]; then | |
if [ "$ARCH" == "x86_64" ]; then | |
curl -L --output cloudflared.deb https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb |
wget -O /usr/local/bin/nf https://github.com/sjlleo/netflix-verify/releases/download/v3.1.0/nf_linux_arm64 && chmod +x /usr/local/bin/nf && ./nf
wget -O /usr/local/bin/nf https://github.com/sjlleo/netflix-verify/releases/download/v3.1.0/nf_linux_amd64 && chmod +x /usr/local/bin/nf && ./nf
#!/bin/bash | |
# Function to fetch a specific or latest release from GitHub | |
fetch_release() { | |
if [ -z "$1" ]; then | |
echo "Fetching the latest release..." | |
echo $(curl -s https://api.github.com/repos/rapiz1/rathole/releases/latest | grep "browser_download_url.*$FILE_NAME" | cut -d '"' -f 4) | |
else | |
echo "Fetching the release for tag $1..." | |
echo $(curl -s https://api.github.com/repos/rapiz1/rathole/releases/tags/$1 | grep "browser_download_url.*$FILE_NAME" | cut -d '"' -f 4) |
(async () => { | |
var dupPane = Zotero.getZoteroPanes()[0]; | |
var duplicatesCollection = dupPane.getSelectedCollection(); | |
for (var i = 0; i < 8000; i++) { | |
await new Promise(r => setTimeout(r, 200)); | |
let selectedItems = dupPane.getSelectedItems(); | |
// Filter selected items by their type (assuming first selected item is representative) |
#!/bin/ash | |
# Check if an argument is passed | |
if [ "$#" -ne 1 ]; then | |
echo "Usage: $0 ip" | |
exit 1 | |
fi | |
ip=$1 |
#!/bin/bash | |
danted_path="/usr/sbin/danted" | |
function scan_ips() { | |
declare -a down_ips | |
echo "Pinging IP range 158.132.58.3 to 158.132.58.254 in 20 threads. This may take a moment..." | |
while read -r ip; do | |
down_ips+=("$ip") | |
done < <(for i in {3..254}; do echo 158.132.58.$i; done | xargs -I% -P 20 bash -c 'ping -c 1 -W 1 % > /dev/null && echo "% is down"') |