Home
Wade Tester
Cancel

Linux Sudo时使用http_proxy

refer to: https://askubuntu.com/questions/530547/proxy-does-not-work-using-sudo sudo vim /etc/sudoers 保留这一行: Defaults env_keep += "http_proxy https_proxy" 然后在普通用户的界面设置好http_proxy , 然后再运行sudo命令即可。

Blockchain Geth 使用dockerdocker Compose启动测试网络lightmodeethethereumtestnetworkrinkebygoerli

refer to: https://hub.docker.com/r/ethereum/client-go     https://geth.ethereum.org/docs/getting-started 1. 在本地创建一个文件夹 d:/workspace/blockchain/geth 2. 在该文件夹下,创建 Dockerfile FRO...

Linuxsetdatetimelinux下设置时间)

# date --set="26 Nov 2012 18:00:00"

Rails 让对应的进程使用代理usehttpproxyinrailsapp

refer to: https://stackoverflow.com/questions/15792999/how-to-set-a-proxy-in-rubys-net-http 在terminal中,直接设置 http_proxy 变量就可以。(export HTTP_PROXY=...) 在rails中也一样。 1. export http_proxy=xx 2. rails s ...

Linux下查看某个process的所在位置(findoutwhichfolderaprocessisrunningfrom

$ ls -l /proc/22503/cwd    ( 22503 is your proccess id ) 就是这么简单(so easy! )  感谢 沛沛 (http://www.hanpeipei.com/ ) 告诉我这个技巧。

Blockchain Moonriver测试网络,moonbeampolkadotkusama

参考:https://moonbeam.network/networks/moonriver/ 1. 是个测试网络。 它上面没问题的话,就可以上 Moonbeam了。 2. 兼容ETH网络(就认为啥都跟ETH的一样,RPC JSON啥的) 在metamask中连接moonriver  参考: https://docs.moonbeam.network/builders/get-s...

Windows Commandline下设置代理命令行代理proxy

refer to:  https://stackoverflow.com/questions/26992886/set-proxy-through-windows-command-line-including-login-parameters 总之就是 set HTTP_PROXY, HTTPS_PROXY这样的变量,就可以用了。 PS D:\workspace\registe...

Fastwaytodeletefilesinlinux快速删除大量文件的方式)

refer to: http://www.slashroot.in/which-is-the-fastest-method-to-delete-files-in-linux result: (conclusion: using find is the safe way, perl is the fastest, rsync is not a bad choice ) COMMA...

Blockchain !!!hardhat本地开发、测试eth的工具web3js

参考:https://hardhat.org/getting-started/ hardhat 提供了非常方便的ETH开发环境,内置了blockchain 2024.3.28 更新: 由于hardhat方便部署contract, 内置的节点不出错(兼容性稳定性比truffle的ganache要好),所以建议选择这个。 安装 node 13, 14, 16 我用的是  16.13...

Linuxwindows Proxysthpsocks5转换为httpshttp代理

refer to: https://github.com/KaranGauswami/socks-to-http-proxy/ https/http代理是之前的主流。 socks5代理是目前的主流。 目前我的问题是,socks5代理好用,需要一个稳定的http/https代理。 之前用的是 python proxy ( pproxy) 发现该软件的特点是只能跑在8080,而且特别简单,无法...

Gitlogshowexactdate

git log --pretty=format:"%H %an %ad"

Blockchain Ethtestnetwork以太坊测试网络rinkebefaucet

一句话: 使用rinkeby 测试网络(目前900W 高度,获得测试ETH特别快特别多也很方便!) 打开小狐狸 metamask 就可以看到了。 安装后 -> 设置 -> 高级 ->  show test networks  记得选择启用。 下面是测试网络的详细情况,点击就可以看到了: ropsten:  id = 3  , ...

Blockchain Avalanche使用测试网络fujitestnetworkmetamaskconfignetworkfaucetdropgetavax

参考: https://docs.avax.network/build/tutorials/platform/fuji-workflow/ 1. 浏览器(firefox, chrome)安装metamask 扩展 2. 增加网络入口: Avalanche Mainnet Settings: Network Name: Avalanche Mainnet C-Chain New ...

Ubuntu13下无法安装python Dev的解决办法problem Installing Python Devinubuntu13

昨天废了很多时间来装 django-cas, 其中就要用到 python的mysql 客户端。 解决遇到问题:   ( it costs me hours to solve this problem when installing python mysql client: ) The following packages have unmet dependencies: pyth...

Linux Doveipproxy的使用ippool代理池ipproxypool

refer to: https://doveip.com/ 2023-2-23 更新 对于大陆用户,需要先把IP填写到IP白名单中,并且申请的时候,只能用auth=0 这个参数的模式来获取IP 对于海外用户则没有限制。 我是昨天中午的时候,国内国外都试了,不行。问了客服,不行。国内国外都添加IP白名单,不行。 今天早上起来,国外的行了。 好神奇。 1. 注册, 登录 2. 充值,可以选择 ...

Python 使用单元测试unittestfromximport*stringinterpolationselfclassmethodinstancemethodstaticmethod

单元测试的最简单例子 例子如下: import unittest class MyClass(unittest.TestCase): def test_hi(self): self.assertEqual(1+1, 2) if __name__ == '__main__': unittest.main() 定义一个class, 包...

Android 模拟器抓包windows+雷电模拟器leidian+proxifier+burpsuite

模拟器:非常方便的模拟实体机 雷电:支持android 9 . 可惜无法使用 自定义的ssl 证书 proxifier: 代理,windows下的。可以支持一切代理。但是看不到数据的内容(无法抓包) burpsuite: 可以抓包。 与proxifier配合可以绕开向雷电模拟器中无法添加SSL证书的问题 具体配置: burpsuite: 127.0.0.1:8888,  http ...

Virtualenv的使用。python环境的切换usingvirtualenvaspythondevelopmentenvironment

工作中需要用到 python ( django, pyramid ) , 深感 自己 python知识的浅薄,所以记录下来。 pip install virtualenv mkdir django_env cd django_env virtualenv --no-site-packages django_env cd django_env source bin/activate run...

Python Pip Windows下的pip使用proxy

refer to: https://stackoverflow.com/questions/43473041/how-to-configure-pip-per-config-file-to-use-a-proxy-with-authentification 发现没有代理真的不行。今天想要下载个东西,20k每秒。一个中午没下好。 1. 创建文件: C:\Users\<username...

Linux中的操作快捷键:shortcutsinlinuxcomandline

LINUX 中的操作快捷键: 全屏: F11 ( fullscreen) 下一个标签: ctrl + page_down (next tab) 上一个标签: ctrl + page_up (previous tab) 第一个标签: alt + 1 (first tab) 最后一个标签: alt + 9 (last tab) 快速打开 command line: ctr...