This file contains hidden or 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
{ | |
"pools" : [ | |
{ | |
"url" : "stratum+tcp://ultra.nitro.org:3337", | |
"user" : "Pimp.pimp", | |
"pass" : "x", | |
"nfmin" : "4", | |
"nfmax" : "30", | |
"starttime" : "1388361600" |
This file contains hidden or 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
## Vold 2.0 Generic fstab | |
## - San Mehat ([email protected]) | |
## | |
####################### | |
## Regular device mount | |
## | |
## Format: dev_mount <label> <mount_point> <part> <sysfs_path1...> | |
## label - Label for the volume | |
## mount_point - Where the volume will be mounted |
This file contains hidden or 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
rootfs / rootfs rw,relatime 0 0 | |
tmpfs /dev tmpfs rw,nosuid,relatime,mode=755 0 0 | |
devpts /dev/pts devpts rw,relatime,gid=5,mode=620 0 0 | |
proc /proc proc rw,relatime 0 0 | |
sysfs /sys sysfs rw,relatime 0 0 | |
none /acct cgroup rw,relatime,cpuacct 0 0 | |
tmpfs /mnt/secure tmpfs rw,relatime,mode=700 0 0 | |
tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0 | |
tmpfs /mnt/obb tmpfs rw,relatime,mode=755,gid=1000 0 0 | |
none /dev/cpuctl cgroup rw,relatime,cpu 0 0 |
This file contains hidden or 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
if_temp_mail() { | |
for server in "${miners[@]}"; do | |
cat <<'EOF' | ssh root@$server 'cat - > /tmp/cardcheck.sh && chmod +x /tmp/cardcheck.sh && /tmp/cardcheck.sh' | |
targetMinTemp=57 | |
sickres="/tmp/if_sick.txt" | |
i=0 | |
(/opt/bamt/viewgpu | awk '{ print $2; }' | cut -c -2 > /tmp/viewgpu) | |
sleep 3 | |
array=(`cat /tmp/viewgpu`) | |
if [ ${#array[@]} -eq 0 ]; then |
This file contains hidden or 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
cat <<"EOT" | |
don't $expand this | |
$expand this | |
EOT |
This file contains hidden or 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
if_temp_mail() { | |
for server in "${miners[@]}"; do | |
cat <<EOF | ssh root@$server 'cat - > /tmp/cardcheck.sh' | |
this $expand | |
this $expand | |
EOF | |
cat <<'EOF' | |
dont $expand | |
dont $expand | |
dont $expand |
This file contains hidden or 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
{ | |
cat <<EOT | |
$expand this | |
EOT | |
cat <<"EOT" | |
don't $expand this | |
EOT | |
} | ssh root@$server 'cat - > /tmp/cardcheck.sh' |
This file contains hidden or 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/sh | |
# Batch Mysql databases and users' priveleges restore | |
# Backup directory | |
BDIR="/home/www/backup/mysql-15-Apr-2014" | |
LOG="restore.txt" | |
DATE=`date +%d-%b-%Y_%H:%M:%S` | |
DBL=`find "$BDIR" -type f \( ! -iname "*.sh" -a ! -iname "*.sql" -a ! -iname "*.txt" \) -print0 | xargs -0 basename -a|awk -F. '{print $1}'` | |
echo $DBL | |
exit 0 |
This file contains hidden or 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
python apy2.py devs+pools | |
{u'devs': [{u'STATUS': [{u'STATUS': u'S', u'Msg': u'2 GPU(s)', u'Code': 9, u'When': 1400232806, u'Description': u'sgminer 4.1.0'}], u'DEVS': [{u'Difficulty Accepted': 14.46511925, u'KHS 5s': 1446, u'Temperature': 72.0, u'KHS av': 1445, u'Difficulty Rejected': 0.19042681, u'GPU Voltage': 1.206, u'GPU Clock': 1129, u'Fan Speed': 809, u'Status': u'Alive', u'Device Rejected%': 1.3137, u'Fan Percent': 18, u'Rejected': 19, u'Memory Clock': 1475, u'Hardware Errors': 0, u'Accepted': 1486, u'Last Share Pool': 0, u'Diff1 Work': 14.496, u'Total MH': 63025.7091, u'Enabled': u'Y', u'Device Elapsed': 43621, u'Device Hardware%': 0.0, u'Last Valid Work': 1400232803, u'Last Share Time': 1400232803, u'GPU': 0, u'MHS av': 1.4449, u'Last Share Difficulty': 0.0130624, u'MHS 5s': 1.4456, u'GPU Activity': 99, u'Intensity': u'20', u'Powertune': 0, u'Utility': 2.044}, {u'Difficulty Accepted': 14.99794462, u'KHS 5s': 1445, u'Temperature': 73.0, u'KHS av': 1444, u'Difficulty Rejected': 0.13034454, u'GPU Voltag |
This file contains hidden or 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
#!/usr/bin/env python2.7 | |
# Copyright 2013 Setkeh Mkfr | |
# | |
# This program is free software; you can redistribute it and/or modify it under | |
# the terms of the GNU General Public License as published by the Free Software | |
# Foundation; either version 3 of the License, or (at your option) any later | |
# version. See COPYING for more details. | |
#Short Python Example for connecting to The Cgminer API |
OlderNewer