ethereum metamask chrome use detail and becarful

1. You want to clean all data, just remove metamask then reinstall chrome extend again. Sometime do this step, can finish many problems. 2. use private china (private network). If you reconnect failed or miss connect, 3. private network best good action is Sometime you sure private network is work and ok. But check netowrks list failed, this time just redo Custome Network then everything is ok. 4. How to know private network have web3 and ok? ...

2018-12-25 · 2 min · 344 words · Me

年輕人

https://www.mobile01.com/topicdetail.php?f=291&t=5107288&p=1085#10849 以你的情況,我可以給你明確的做法 1、絕對不要把錢放活存,如果你的錢就動態需要的,你開一個richart的帳戶,活存能有1% 2、如果你這40萬是要存下來的,之前有同事和我說她手上有幾十萬該怎麼投資,我回她目前中美貿易戰,fed升息局勢不好,所以不要急著投資股市,可以把錢放美金定存,由於我慣用的銀行是中國信託,我和她說定存1個半月後,再解定存轉美金優存能有2.8%,上星期五我看已經有3%了,她已經定存了一年,大約幾十萬到美金3%中。 3、她和她老公手上還有一些閒錢,每個月會有薪資進來,所以目前會抽特別股,大概會是3.5%~5%,風險是公司若沒有賺錢,也許當年不會發利息出來,好處是股價不會變動,很適合未經訓練的新手,因為股價不會變動,所以不會產生貪婪及恐懼亂買,亂賣損失手續費、交易稅及差價。 4、假日六、日選一天到圖書館看理財的書,選一天到運動或到山中爬山,做這兩件事可以減少你的開銷,也可以讓你的身體更健康,更可以強化你的心靈,平常日有空多走路,走路會讓你的頭腦更強化,讓你閱讀更有效率,我連續十幾年上班坐公車,下班走路,風雨無阻,如果你家離公司太遠,晚上可以到公園走路,把一些youtube財經節目轉成mp3放到手機中,一邊走一邊聽。 5、專注你的本業,讓你的薪資可以再提升,每個月,每年讓你的戶頭變大,當你一邊存錢,一邊看理財書時,你可以虛擬的買一些股票試試,虛擬的壞處是無法練訓自我心理面,畢竟你辛苦存的40萬賠3萬,和虛擬的40萬賠3萬壓力是不同的,但至少你可以練習交易的感覺,也可以練你投資的眼光,當你的虛擬帳戶開始賺錢後再進來股市,但我個人建議,你去圖書館看書時,先選如何看懂財報的書,像什麼二十萬賺1億,永遠不敗術,躺著賺錢…等,這種書你就先別看,心法、技術面的書也都先別看,先把基本面打好,在做虛擬投資時先試著報看公司的財報,然後評估股價的價值,然後像我一樣研究,觀察,記錄。 如果4、5你辨不到,覺得太多事要做了,你不是這塊料,那你就先執行13,最後你找機會在10年線下再買0050,以後就分批買進,你可以得到該有的報酬,每年也許可以得到34%的股息,如果買的時間點對,也許還能賺到一點點的差價,如果你到40以後,你真的很想要房子,車子及兒子,認命一點的工作到六十五,退休時應該能存個幾萬百退休金,如果你不要房子、車子及兒子,也許你40~50就能退休了,目前的年輕人被這個世界逼到要懂的選擇,不要傻乎乎的聽老一輩的人說什麼快結緍,快生小孩,要結緍前要先買房子然後揹三十年或四十年房貸,有了小孩後要買車子代步,對於一個平凡的人,要這三樣東西會讓你40歲前的人生變黑白,甚至50歲前人生變黑白,只要30歲沒有富爸爸的資助,沒有過人的資薪,你買房子、車子或生兒子是讓你接下來人生悲慘的開始。 房子及車子是給懂得玩金錢遊戲的人擁有的,這很悲哀但卻是事實,房子在全世界並不是拿來住的,而是拿來炒作的~

2018-12-24 · 1 min · 9 words · Me

dcoker helpful command shell part 2

dpsrm < pattern docker cantainer name > #!/bin/sh IFS=$'\n' echo $1 docker ps -a --no-trunc | grep $1 | awk '{print $1}' | xargs -r --no-run-if-empty docker stop docker ps -a --no-trunc | grep $1 | awk '{print $1}' | xargs -r --no-run-if-empty docker rm docker rmi -f $(docker images | grep $1 | awk '{print $3}')

2018-12-24 · 1 min · 57 words · Me

[轉]My list of helpful docker commands

https://gist.github.com/garystafford/f0bd5f696399d4d7df0f docker exec -it $(docker container ls | grep 'pattern' | awk '{print $1}') bin/bash docker ps -a --no-trunc | grep 'pattern' | awk '{print $1}' | xargs -r --no-run-if-empty docker rm docker images -a | grep 'pattern' | awk '{print $3}' | xargs docker rmi ############################################################################### # Helpful Docker commands and code snippets ############################################################################### ### CONTAINERS ### docker stop $(docker ps -a -q) #stop ALL containers docker rm -f $(docker ps -a -q) # remove ALL containers docker rm -f $(sudo docker ps --before="container_id_here" -q) # can also filter # exec into container docker exec -it $(docker container ls | grep '' | awk '{print $1}') sh # exec into container on windows with Git Bash winpty docker exec -it $(docker container ls | grep '' | awk '{print $1}') sh # helps with error: 'unexpected end of JSON input' docker rm -f $(docker ps -a -q) # Remove all in one command with --force docker exec -i -t "container_name_here" /bin/bash # Go to container command line # to exit above use 'ctrl p', 'ctrl q' (don't exit or it will be in exited state) docker rm $(docker ps -q -f status=exited) # remove all exited containers ### IMAGES ### # list images and containers docker images | grep "search_term_here" # remove image(s) (must remove associated containers first) docker rmi -f image_id_here # remove image(s) docker rmi -f $(docker images -q) # remove ALL images!!! docker rmi -f $(docker images | grep "^" | awk '{print $3}') # remove all images docker rmi -f $(docker images | grep 'search_term_here' | awk '{print $1}') # i.e. 2 days ago docker rmi -f $(docker images | grep 'search_1\|search_2' | awk '{print $1}') ### DELETE BOTH IMAGES AND CONTAINERS ### docker images && docker ps -a # stop and remove containers and associated images with common grep search term docker ps -a --no-trunc | grep "search_term_here" | awk "{print $1}" | xargs -r --no-run-if-empty docker stop && \ docker ps -a --no-trunc | grep "search_term_here" | awk "{print $1}" | xargs -r --no-run-if-empty docker rm && \ docker images --no-trunc | grep "search_term_here" | awk "{print $3}" | xargs -r --no-run-if-empty docker rmi # stops only exited containers and delete only non-tagged images docker ps --filter 'status=Exited' -a | xargs docker stop docker images --filter "dangling=true" -q | xargs docker rmi ### DELETE NETWORKS AND VOLUMES ### # clean up orphaned volumes docker volume rm $(docker volume ls -qf dangling=true) # clean up orphaned networks docker network rm $(docker network ls -q) ### NEW IMAGES/CONTAINERS ### # create new docker container, ie. ubuntu docker pull ubuntu:latest # 1x pull down image docker run -i -t ubuntu /bin/bash # drops you into new container as root ### OTHER ### # install docker first using directions for installing latest version # https://docs.docker.com/installation/ubuntulinux/#ubuntu-trusty-1404-lts-64-bit # other great tips: http://www.centurylinklabs.com/15-quick-docker-tips/ # fix fig / docker config: https://gist.github.com/RuslanHamidullin/94d95328a7360d843e52

2018-12-24 · 3 min · 480 words · Me

gitlab old version backup restore upgrade

check version http://xxx.xxx.xxx.xxx/help 1. https://packages.gitlab.com/gitlab/gitlab-ce 2. example https://packages.gitlab.com/gitlab/gitlab-ce/packages/el/7/gitlab-ce-9.5.4-ce.0.el7.x86_64.rpm curl -s https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash sudo yum install gitlab-ce-9.5.4-ce.0.el7.x86_64 ps: https://docs.gitlab.com/omnibus/manual_install.html 3. http://sueboy.blogspot.com/2018/12/gitlab.html sudo nano /etc/gitlab/gitlab.rb 可以在裡面找到external_url sudo gitlab-ctl reconfigure sudo gitlab-ctl status 4. open firewall firewall-cmd –zone=public –add-port=80/tcp –permanent firewall-cmd –list-all –permanent 5. backup restore https://docs.gitlab.com/ee/raketasks/backup_restore.html https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/raketasks/backup_restore.md 6. upgrade https://docs.gitlab.com/omnibus/update/ gitlab Maintenance Policy Upgrade recommendations https://docs.gitlab.com/ee/policy/maintenance.html#upgrade-recommendations 9.5 to 10 https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/update/9.5-to-10.0.md ================================ 目前已經在測試環境模擬過,安全可行方式: 建立一台新的centos 灌gitlab 9.5.4,還原 目前9.5.4,確認是否能正常執行gitlab 開始升級 9.5.4 -> 11.5.5 會失敗,必需 9.5.4 -> 9.5.10 -> 10.8.7 -> 11.3.4 -> 11.5.5,必需按照這個步驟升級4次 gitlab 11.5.5升級完後,請人員操作測試是否有問題,沒問題後,再把舊的關閉,切換ip 個人帳號操作看起來沒有問題,需要其他人測試才能更清楚是否有其他問題 ...

2018-12-22 · 1 min · 86 words · Me