Skip to content

Instantly share code, notes, and snippets.

@araaaabbb
araaaabbb / KRTKToken.sol
Created October 2, 2025 17:20
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.30+commit.73712a01.js&optimize=true&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
contract KRTKToken is ERC20, Ownable {
constructor(uint256 initialSupply)
ERC20("KRETEK", "KRTK")
Ownable(msg.sender) // <-- Fix: Pass initialOwner here
@araaaabbb
araaaabbb / .deps...npm...@openzeppelin...contracts...access...Ownable.sol
Created October 2, 2025 17:17
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.30+commit.73712a01.js&optimize=true&runs=200&gist=
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)
pragma solidity ^0.8.20;
import {Context} from "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
@araaaabbb
araaaabbb / .deps...npm...@openzeppelin...contracts...access...Ownable.sol
Created October 2, 2025 17:09
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.30+commit.73712a01.js&optimize=true&runs=200&gist=
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)
pragma solidity ^0.8.20;
import {Context} from "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
@araaaabbb
araaaabbb / unblockxmlrpc
Last active November 20, 2016 17:07
To fixed the error when installing Jetpack plugin, just simply copy this code and then paste to .htaccess file.
# Unblock XMLRPC
<Files xmlrpc.php>
Satisfy any
Order allow,deny
Allow from all
</Files>
# END Unblock XMLRPC