Docker: resource or device is busy
cat /proc/mounts |grep docker
sudo umount /path
#!/bin/bash | |
if [ -z "$1" ] | |
then | |
echo "Port not specified" | |
else | |
greparray=$(lsof -i tcp:$1 | grep -Eo "\s(\d{5})\s") | |
for pid in $greparray | |
do | |
kill -9 $pid | |
echo $pid |
from web3 import Web3 | |
# or local url | |
INFURA_URL = "https://mainnet.infura.io/v3/<some_id>" | |
PRIVATE_KEY = b'<32 characters>' | |
web3 = Web3(Web3.HTTPProvider(INFURA_URL)) | |
print(web3.isConnected()) |
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - | |
RUN sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' | |
RUN apt-get update | |
RUN apt --fix-broken install | |
RUN apt-get install google-chrome-stable -y |
Docker: resource or device is busy
cat /proc/mounts |grep docker
sudo umount /path
#!/bin/bash | |
# | |
# Copyright IBM Corp. All Rights Reserved. | |
# | |
# SPDX-License-Identifier: Apache-2.0 | |
# | |
# source: https://raw.githubusercontent.com/hyperledger/fabric/v1.0.5/scripts/bootstrap.sh | |
# current version of fabric released | |
# TODO: replace with latest version of fabric! |
from __future__ import print_function | |
import requests, json | |
# Default port for the bitcoin testnet is 18332 | |
# The port number depends on the one writtein the bitcoin.conf file | |
rpcPort = 18332 | |
# The RPC username and RPC password MUST match the one in your bitcoin.conf file | |
rpcUser = 'gurdurbur' | |
rpcPassword = 'murmurmur' |
# coding: utf-8 | |
import requests, json | |
API_KEY = "" | |
url = "https://fcm.googleapis.com/fcm/send" | |
body = { | |
"to": "/topics/ru", | |
"data": { | |
"title":"mytitle", |