Skip to content

Instantly share code, notes, and snippets.

View zakirkun's full-sized avatar
:octocat:
Hola!

Muhammad Zakir Ramadhan zakirkun

:octocat:
Hola!
View GitHub Profile
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
// Interface for ERC20 token
interface ERC20 {
// Transfer tokens to a specified address
function transfer(address recipient, uint256 amount) external returns (bool);
// Get the balance of a specific address
function balanceOf(address account) external view returns (uint256);
@dahlsailrunner
dahlsailrunner / SSL-nginx-Docker.md
Last active October 23, 2024 09:30
SSL with Docker images using nginx as reverse proxy

Docker with SSL and an nginx reverse proxy

Running your ASP.NET Core (or other) application in Docker using SSL should not be an overwhelming task. These steps should do the trick.

Run the following steps from a Linux terminal (I used WSL or WSL2 on Windows from the Windows Terminal).

1. Create a conf file with information about the cert you'll be creating

It should look something like the content below; call it my-site.conf or something like that.

@TrillCyborg
TrillCyborg / mastodon-docker-setup.md
Last active October 7, 2024 11:08
Mastodon Docker Setup

Mastodon Docker Setup

Setting up

Clone Mastodon's repository.

# Clone mastodon to ~/live directory
git clone https://github.com/tootsuite/mastodon.git live
# Change directory to ~/live

cd ~/live

@yunghoy
yunghoy / gist:a425f91824d26461bb2e3653bc56ebbf
Last active June 2, 2022 00:34
AMQP library (RabbitMQ) - async/await
alias babel-node='babel-node --presets stage-0'
------ RECV ------
// babel-node recv2.js "#"
// babel-node recv2.js "kern.*"
const amqp = require('amqplib');
const args = process.argv.slice(2);
if (args.length == 0) {