Skip to content

Instantly share code, notes, and snippets.

View masihtehrani's full-sized avatar
🙎‍♂️

Mahmoud Masih Tehrani masihtehrani

🙎‍♂️
View GitHub Profile
upstream instagram_service {
server localhost:9500;
}
upstream sazitofront {
server localhost:5440;
}
#upstream backend {
# server localhost:3000;
@masihtehrani
masihtehrani / Spacevim.init.toml
Last active July 28, 2024 08:13
spacevim golang ide
#=============================================================================
# dark_powered.toml --- dark powered configuration example for SpaceVim
# Copyright (c) 2016-2017 Wang Shidong & Contributors
# Author: Wang Shidong < wsdjeg at 163.com >
# URL: https://spacevim.org
# License: GPLv3
#=============================================================================
[options]
lint_on_the_fly = true
export AVANTE_GEMINI_API_KEY=
#======================================================================#
# POWERLEVEL10K INSTANT PROMPT (Keep at Top) #
#======================================================================#
# Enable Powerlevel10k instant prompt. Should stay close to the top.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
#======================================================================#
{
"languageserver": {
"golang": {
"command": "gopls",
"rootPatterns": ["go.mod", ".vim/", ".git/", ".hg/"],
"filetypes": ["go"],
"initializationOptions": {
"usePlaceholders": true
}
},
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
// use onboard LED for convenience
#define LED (2)
// maximum received message length
#define MAX_MSG_LEN (128)
const char *ssid = "";
const char *password = "";
const char *mqttServer = "broker.hivemq.com";
@masihtehrani
masihtehrani / config.lua
Last active January 17, 2024 09:54
lunarvim golang python lvim neovim nvim ide ~/.config/lvim/config.lua
--[[
lvim is the global options object
Linters should be
filled in as strings with either
a global executable or a path to
an executable
]]
-- THESE ARE EXAMPLE CONFIGS FEEL FREE TO CHANGE TO WHATEVER YOU WANT
-- general
# : << EOF
# https://github.com/gpakosz/.tmux
# (‑●‑●)> dual licensed under the WTFPL v2 license and the MIT license,
# without any warranty.
# Copyright 2012— Gregory Pakosz (@gpakosz).
# -- navigation ----------------------------------------------------------------
# if you're running tmux within iTerm2
@masihtehrani
masihtehrani / contracts...WheatToken.sol
Created July 16, 2025 13:00
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=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
/**
* @title WheatToken
* @dev An ERC20 token where 1 token represents 1 kilogram of wheat.
* It has special wallets for burning, seasonal rewards, and airdrops.
@masihtehrani
masihtehrani / contracts...WheatToken.sol
Created July 16, 2025 13:36
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=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
/**
* @title WheatToken
* @dev An ERC20 token where 1 token represents 1 kilogram of wheat.
* It has special wallets for burning, seasonal rewards, and airdrops.