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 | |
# 确保脚本以 root 用户执行 | |
if [ "$(id -u)" -ne 0 ]; then | |
echo "This script must be run as root." | |
fi | |
echo "mounting /dev/vda1 to /mnt" | |
# 挂载根分区 | |
mount /dev/vda1 /mnt |
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 | |
# 设定搜索的目录 | |
SEARCH_DIR="/mnt" | |
BACKUP_DIR="backup" | |
echo "SEARCH_DIR:$SEARCH_DIR" | |
echo "BACKUP_DIR:$BACKUP_DIR" | |
echo "Remove all the files in $SEARCH_DIR except $SEARCH_DIR/$BACKUP_DIR/" |
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 time as tm | |
import pandas as pd | |
import numpy as np | |
import requests | |
import json | |
from queue import Queue | |
# 以下部分需要填写 | |
file_path = "" # 数据文件绝对路径,csv格式 | |
rows = 0 #起始行数,默认为0 |
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
# | |
# c.cpp混合编译的makefile模板 | |
# | |
# | |
BIN = | |
CROSS = | |
CC = $(CROSS)gcc | |
CPP = $(CROSS)g++ |
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
#=============================================================================== | |
# | |
# Filename: Makefile | |
# Description: | |
# | |
# Usage: make (generate executable ) | |
# make clean (remove objects, executable, prerequisits ) | |
# make tarball (generate compressed archive ) | |
# make zip (generate compressed archive ) | |
# |
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
##################################################################### | |
## file : test makefile for build current dir .c ## | |
## author : jernymy ## | |
## date-time : 05/06/2010 ## | |
##################################################################### | |
CC = gcc | |
CPP = g++ | |
RM = rm -rf |
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
32 execve("/bin/ls", ["ls", "data", "-l"], 0x7ffffa093ec8 /* 20 vars */) = 0 | |
32 brk(NULL) = 0x7fffc24de000 | |
32 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) | |
32 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) | |
32 openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 | |
32 fstat(3, {st_mode=S_IFREG|0644, st_size=32176, ...}) = 0 | |
32 mmap(NULL, 32176, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fbb4637d000 | |
32 close(3) = 0 | |
32 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) | |
32 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libselinux.so.1", O_RDONLY|O_CLOEXEC) = 3 |