This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FIND: | |
(data-target="modal-[^"]*")((.|\r|\n)*)(data-target="modal-[^"]*") | |
REPLACE: | |
$1$2$1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Firstly, if you want to check the swap memory size run: swapon -s | |
# Resize Swap volume to 8GB | |
sudo swapoff -a && sudo dd if=/dev/zero of=/swapfile bs=1M count=8192 && sudo mkswap /swapfile && sudo swapon /swapfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
gsettings set org.gnome.desktop.search-providers disable-external 'true' | |
gsettings set org.gnome.desktop.interface enable-animations 'false' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Look for file over 100M: | |
find <path> -type f -size +100M -printf 1 | wc -c | |
File size: | |
du -sh <path> | |
Count empty files: | |
find <path> -type f -size 0 -printf 1 | wc -c | |
Find file by name and get its size: | |
find . -name "<filename>" -exec ls -lh {} \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.20; | |
import { ERC721 } from "@openzeppelin/contracts/token/ERC721/ERC721.sol"; | |
contract FirstContract is ERC721 { | |
address owner; | |
constructor(string memory _name, string memory _symbol) ERC721(_name, _symbol) { | |
owner = msg.sender; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.0; | |
import "@openzeppelin/contracts@4.4.2/token/ERC721/ERC721.sol"; | |
import "@openzeppelin/contracts@4.4.2/access/Ownable.sol"; | |
contract ArtToken is ERC721, Ownable { | |
uint256 COUNTER; | |
uint256 public fee = 5 ether; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.20; | |
// Owner = 0x14723A09ACff6D2A60DcdF7aA4AFf308FDDC160C | |
// Receiver = 0x4B0897b0513fdC7C541B6d9D7E929C4e5364D2dB | |
// Operator = 0x583031D1113aD414F02576BD6afaBfb302140225 | |
import "@openzeppelin/contracts@4.5.0/token/ERC1155/ERC1155.sol"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.24; | |
contract JamToken { | |
string public name = "Jam Token"; | |
string public symbol = "JAM"; | |
uint256 public totalSupply = 1000000000000000000000000; | |
uint public decimals = 18; | |
event Transfer( |
OlderNewer