Skip to content

Instantly share code, notes, and snippets.

View resanul's full-sized avatar

Mir Resanul Karim resanul

View GitHub Profile
@resanul
resanul / token.sol
Last active December 24, 2021 16:15
OpenZeppelin
pragma solidity ^0.8.0;
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/1ffcb10bd2219c850ebbc56030fa946a84963215/contracts/token/ERC20/ERC20.sol"
contract Token is ERC20 {
constructor () public ERC20("LabAR", "LAB"){
_mint(msg.sender, 1000000 * (10 ** uint256(decimals())));
}
}
@resanul
resanul / E: Could not get lock
Created May 22, 2018 10:59
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/) is another process using it?
E: Could not get lock /var/lib/dpkg/lock -
solved:::>>> for ubuntu 14.04, 16.04, 18.04
>>
$ sudo rm /var/lib/apt/lists/lock
$ sudo rm /var/cache/apt/archives/lock
$ sudo rm /var/lib/dpkg/lock
@resanul
resanul / E: Could not get lock
Created May 22, 2018 10:59
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/) is another process using it?
E: Could not get lock /var/lib/dpkg/lock -
solved:::>>> for ubuntu 14.04, 16.04, 18.04
>>
$ sudo rm /var/lib/apt/lists/lock
$ sudo rm /var/cache/apt/archives/lock
$ sudo rm /var/lib/dpkg/lock