perloader

闲置服务器的CPU算力挖XMR

Centos 6 矿池:xmr.nanopool.org yum -y install epel-release yum -y install centos-release-scl cmake3 hwloc-devel libmicrohttpd-devel openssl-devel yum -y install devtoolset-4-gcc* yum -y install git scl enable devtoolset-4 bash git clone https://github.com/fireice-uk/xmr-stak-cpu xmr-stak cd xmr-stak #调整百分之二的开发者捐赠 sed -i ‘s/2.0/0.0/g’ donate-level.h cmake3 . make install cd /root/xmr-stak/bin 先运行一遍 ./xmr-stak-cpu 会给出推荐的CPU配置信息,将它编辑进config.txt,并填写钱包地址、矿池地址、Payment ID等信息 httpd_port 设置http访问端口,可以用网页查看矿机状态 “cpu_threads_conf” : [ { “low_power_mode” […]

.

Read more

卸载阿里云自带监控程序

wget http://update.aegis.aliyun.com/download/quartz_uninstall.sh chmod +x quartz_uninstall.sh ./quartz_uninstall.sh rm -f /usr/sbin/aliyun-service rm -rf /usr/local/aegis killall -9 aliyun-service > /dev/null 2>&1

.

Read more

Python 调用 zip 压缩和解压

zip.exe和unzip.exe下载 放到C:\Windows\System32 下面 source =r’E:\111\test’ target_dir = ‘E:\\111\\’ targetr = target_dir + ‘test.rar’ rar_command = ‘rar a {0} {1}’.format(targetr,source) if os.system(rar_command) ==0: print(“Successful rar to”,targetr) else: print(“RAR FAILED”) targetz = target_dir + ‘test.zip’ zip_command = ‘zip -r {0} {1}’.format(targetz,source) if os.system(zip_command) ==0: print(“Successful zip to”,targetz) else: print(“ZIP FAILED”)  

.

Read more

打包python文件成exe格式

1. 直接在命令行用pip安装 pyinstaller pip install pyinstaller 2. 下载安装pyinstaler运行时所需要的windows拓展—pywin32 pywin32:http://sourceforge.net/projects/pywin32/files/pywin32/ 点击最新的Build再点击pywin32-219.win-amd64-py2.7.exe(这里要根据你的windows x86或者x64和你的python版本来选择) 3.在命令行中切换到要打包的程序所在目录,直接输入下面的指令即可 pyinstaller -F -w demo.py   Via

.

Read more

取出多个文件夹里面的第一图片,并以文件夹命名

import os import shutil from PIL import Image dir0=str(os.getcwd()).replace(‘\\’,’/’) print(dir0) lista = os.listdir(dir0) print(lista) list2=[] for lsa in lista: print(dir0+’/’+lsa) print(os.path.isdir(dir0+’/’+lsa)) if os.path.isdir(dir0+’/’+lsa): list2.append(lsa) print(list2) for ls2 in list2: inlist2 = os.listdir(dir0+’/’+ls2) print(inlist2) for inls2 in inlist2: print(dir0+’/’+ls2+’/’+inls2) print(os.path.isdir(dir0+’/’+ls2+’/’+inls2)) if os.path.isdir(dir0+’/’+ls2+’/’+inls2): ininlist=os.listdir(dir0+’/’+ls2+’/’+inls2) ininlist.sort() print(ininlist) print(Image.open(dir0+’/’+ls2+’/’+inls2+’/’+ininlist[0],’r’).format) shutil.copy(dir0+’/’+ls2+’/’+inls2+’/’+ininlist[0],dir0+’/’+inls2+’.’+str(Image.open(dir0+’/’+ls2+’/’+inls2+’/’+ininlist[0],’r’).format).lower().replace(‘jpeg’,’jpg’)) if not os.path.isdir(dir0+’/’ + ls2 + ‘/’ + inls2): […]

.

Read more

DD windows

KS3B 2T wget -O- https://down.zhujiwiki.com/windows-dd/Windows7-Joodle-Template.gz |gunzip|dd of=/dev/sda Username: Admin Password: Password147 7欧SSD wget -O- ‘https://down.tn/Windows/ISO/Win2012R2CN.gz’ | gunzip | dd of=/dev/sda 用户:Administrator 密码:Laiboke.com 20欧 wget -O- ‘https://down.tn/Windows/ISO/DD-Joodle/Windows2012R2-Joodle-Template.gz’ | gunzip | dd of=/dev/sda 用户:Administrator 密码:Password147 wget -O- ‘https://xxx.com/Windows10-x64-LTSC-Nic-Tomy.vhd.gz’ | gunzip | dd of=/dev/sda http://windowstemplate.com/   vultr bash <(wget –no-check-certificate -qO- ‘https://moeclub.org/attachment/LinuxShell/InstallNET.sh’) -dd ‘https://dl.ievo.top/Image/DD/Windows10-x64-LTSC-Nic-Tomy.vhd.gz’ centos 7,vnc看进度 用户名Administrator 密码ievo.top

.

Read more

图形

刚刚启动,成交量持续放大,放量拉升,缩量回调。 红宝丽 山西证券    

.

Read more

Ubuntu 16 install Python 3.5.1

Ubuntu 16.04 x64 sudo apt-get update sudo apt-get install gcc -y sudo apt-get install build-essential -y sudo apt-get install libssl-dev openssl -y sudo apt-get install build-essential wget https://www.python.org/ftp/python/3.5.1/Python-3.5.1.tgz tar zxvf Python-3.5.1.tgz cd Python-3.5.1 ./configure&& make && make install sudo rm /usr/bin/python sudo ln -s /usr/local/bin/python3.5 /usr/bin/python sudo rm /usr/bin/pip sudo ln -s /usr/local/bin/pip3 /usr/bin/pip #pip install –upgrade pip […]

.

Read more

Debian 8 install Python3.5.1

Debian 8 x64 (jessie) python –version sudo apt-get update bash: sudo: command not found. su – apt-get install sudo sudo apt-get update dpkg -l python* sudo apt-get install build-essential -y sudo apt-get install libncurses5-dev libncursesw5-dev libreadline6-dev -y sudo apt-get install libdb5.3-dev libgdbm-dev libsqlite3-dev libssl-dev -y sudo apt-get install libbz2-dev libexpat1-dev liblzma-dev zlib1g-dev -y sudo apt-get […]

.

Read more
xyz