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
dist/ | |
build/ | |
# Rust | |
target/ | |
Cargo.lock | |
*.rs.bk | |
# Node.js | |
node_modules/ |
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
FROM node:bullseye-slim | |
# Install cron | |
RUN apt-get update && apt-get install -y cron && which cron && \ | |
rm -rf /etc/cron.*/* | |
# Install Python3 | |
RUN apt-get install -y python3 | |
# Install Supervisord |
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
server { | |
listen 80; | |
server_name localhost; | |
root /usr/share/nginx/html; | |
location ~ /.+ { | |
try_files $uri $uri.html $uri =404; | |
} |
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/access/Ownable.sol"; | |
contract FallbackAndSelfDestructExample is Ownable { | |
function destroy(address _addr) external onlyOwner { | |
address payable addr = payable(address(_addr)); |
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
[Unit] | |
Description=Mongodb Service Container | |
After=docker.service | |
Requires=docker.service | |
[Service] | |
Type=simple | |
Restart=always | |
RestartSec=5 | |
StartLimitBurst=5 |
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
#!/usr/bin/env python | |
# | |
# Tool digunakan untuk mempermudah insert key ke local keystore Nuchain node melalui CLI. | |
# | |
# | |
import requests as req | |
import os | |
import json |
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
#!/usr/bin/env bash | |
SRCDIR=$1 | |
DSTDIR=$2 | |
show_usage(){ | |
echo "Usage: nuchain-snapshot [SRCDIR] [DSTDIR]" | |
echo "Example: nuchain-snapshot /data/nuchain nuchain-snapshot" | |
} |
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/env bash | |
set -e | |
files=$((git diff --cached --name-only --diff-filter=ACMR | grep -Ei "\.rs$") || true) | |
if [ ! -z "${files}" ]; then | |
comma_files=$(echo "$files" | paste -s -d "," -) | |
make fmt | |
git add $(echo "$files" | paste -s -d " " -) | |
fi |
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
# start the command batch | |
batch start | |
board_name MAMBAF722 | |
manufacturer_id DIAT | |
# name: AlapAlap | |
# resources | |
resource BEEPER 1 B02 |
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
# Systemd service configuration for Nuchain docker container. | |
# edit as you wish. | |
[Unit] | |
Description=Nuchain Node Container | |
After=docker.service | |
Requires=docker.service | |
[Service] | |
Type=simple |
NewerOlder