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 | |
# 获取当前时间戳 | |
timestamp=$(date +%Y%m%d%H%M%S) | |
# 设置文件夹路径 | |
folder_path="slot1" | |
# 设置备份文件名 | |
backup_file="backup-${timestamp}.tar.xz" |
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
__config() -> { | |
'scope' -> 'global', | |
}; | |
global_playList = {}; | |
global_playListCounter = 1; | |
readBook(itemTuple) -> ( | |
itemNbt = itemTuple:2; | |
content = ''; |
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
#include <bits/stdc++.h> | |
using namespace std; | |
int now; | |
string s; | |
vector<int> sta; | |
bool match(string t) { |
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
__on_player_uses_item(player, item_tuple, hand)->( | |
if(item_tuple:0 == 'fire_charge', | |
playerPos = query(player, 'pos') + l(0, 1, 0); // Set the position where the fireball will spawn | |
sound('entity.blaze.shoot', playerPos); // Play a sound | |
playerPitch = query(player, 'pitch'); // Detect where the player is looking | |
playerYaw = query(player, 'yaw') + 90; | |
v = query(player, 'look'); | |
fbv = v * 0.25; |
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
__config -> {}; | |
__on_start() -> ( | |
if(nbt_storage('cloud_storage:item_data'):'Barrels' == null, ( | |
nbt_storage('cloud_storage:item_data', '{Barrels: []}'); | |
)) | |
); | |
upload_items(myself, bpos, name) -> ( | |
barrel = block(bpos); |
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
__config() -> { | |
'scope' -> 'global', | |
}; | |
global_shulker_boxes = { | |
'shulker_box', | |
'white_shulker_box', | |
'orange_shulker_box', | |
'magenta_shulker_box', | |
'light_blue_shulker_box', |
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
__config() -> { | |
'commands' -> { | |
'' -> 'tp_compass', | |
'set' -> 'set_compass', | |
'get' -> 'get_compass_info' | |
} | |
}; | |
set_compass() -> ( | |
myself = player(); |
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 re | |
import json | |
import time | |
import requests | |
from fake_useragent import UserAgent | |
ua = UserAgent() | |
def get_song(song_name): |
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/python3 | |
import os | |
import sys | |
import time | |
os.system("touch /tmp/retry_sys_last_cmd_tmp_store") | |
last_cmd_file = open("/tmp/retry_sys_last_cmd_tmp_store", "r") | |
last_cmd = str(last_cmd_file.read()) |