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 | |
apc_url='http://192.168.2.82' | |
auth='apc:apc' | |
usage() { | |
echo -e "Usage: $0 server on|off\nExample: $0 arista on\n" | |
exit | |
} | |
if [[ $# -ne 2 ]]; then | |
usage |
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 | |
dev=$1 | |
if [[ -z $dev ]]; then | |
echo "Error: no device specified" | |
exit 1 | |
fi | |
if [[ ! -e /sys/bus/pci/devices/$dev ]]; then |
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 | |
dst_drive=/dev/sda | |
src_drive=sdd | |
skip_drive=sdb | |
dd_status=/tmp/dd | |
log_file=/tmp/dd.log | |
size_file=/tmp/last_size | |
slot=32: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
hackman@terion:~$ rsync rsync://mirrors.linux-bulgaria.org | |
_ _ | |
| | (_) [email protected] | |
| | _ _ __ _ _ __ __ | |
| | | | | '_ \ | | | | \ \/ / | |
| |____ | | | | | | | |_| | > < | |
|______| |_| |_| |_| \__,_| /_/\_\ | |
____ _ _ | |
| _ \ | | (_) | |
| |_) | _ _ | | __ _ __ _ _ __ _ __ _ |
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
With just cloned repo: | |
[root@animal elliptics]# git pull | |
Already up-to-date. | |
[root@animal elliptics]# git br | |
* master | |
[root@animal elliptics]# | |
[root@animal elliptics]# export LDFLAGS="-Wl,-z,defs" | |
[root@animal elliptics]# export DESTDIR="/root/build/el-build/" | |
[root@animal elliptics]# cmake -DWITH_COCAINE=NO . |