Skip to content

Instantly share code, notes, and snippets.

View ilyar's full-sized avatar
👷‍♂️
open-to-work

ilyar

👷‍♂️
open-to-work
View GitHub Profile
@ilyar
ilyar / tonutils-reverse-proxy.md
Last active November 20, 2024 09:22
System V init script for tonutils-reverse-proxy

System V init script for tonutils-reverse-proxy

1. Install tonutils-reverse-proxy

If you haven’t installed tonutils-reverse-proxy, follow the instructions docs.ton.org/develop/dapps/tutorials/how-to-run-ton-site, for example:

curl -fsSL -o tonutils-reverse-proxy https://github.com/ton-utils/reverse-proxy/releases/latest/download/tonutils-reverse-proxy-linux-amd64
chmod +x tonutils-reverse-proxy
mv tonutils-reverse-proxy /usr/local/bin/
{
"p0": "5555555555555555555555555555555555555555555555555555555555555555",
"p1": "3333333333333333333333333333333333333333333333333333333333333333",
"p2": "0000000000000000000000000000000000000000000000000000000000000000",
"p7": [
{
"currency": 239,
"value": "666666666666"
},
{

mermaid

timeline
    title Roadmap 2023
    section Q3 <br> First Release
        Develop : sub-point 1a : sub-point 1b
                : sub-point 1c
        Bullet 2 : sub-point 2a : sub-point 2b

The COIN Conversation Model

The COIN Conversation Model is a structured approach to feedback and conflict resolution in the workplace. This method was developed to help managers and employees effectively discuss complex issues and reach consensus. The COIN model consists of four key stages:

  1. C (Connect): Start the conversation by establishing rapport and creating an atmosphere of trust. This might include expressing gratitude for the employee's efforts or acknowledging their achievements.
  2. O (Observe): Share your observations without judgment or evaluation. This is factual information about what you've seen or heard.
  3. I (Impact): Explain the implications of your observations for the team, project, or organization. This could include both positive and negative impacts.
  4. N (Next): Discuss the next steps or actions that need to be taken. This might involve corrective actions, new goals, or changes in behavior.

The COIN model can be particularly useful when there's a need to discuss c

@ilyar
ilyar / llama2-mac-gpu.sh
Created July 19, 2023 19:44 — forked from adrienbrault/llama2-mac-gpu.sh
Run Llama-2-13B-chat locally on your M1/M2 Mac with GPU inference. Uses 10GB RAM
# Clone llama.cpp
git clone https://github.com/ggerganov/llama.cpp.git
cd llama.cpp
# Build it
LLAMA_METAL=1 make
# Download model
export MODEL=llama-2-13b-chat.ggmlv3.q4_0.bin
wget "https://huggingface.co/TheBloke/Llama-2-13B-chat-GGML/resolve/main/${MODEL}"
#!/usr/bin/env bash
set -o errexit
SWIFT_VERSION=5.8.1
UBUNTU_RELEASE=$(cat /etc/lsb-release | grep DISTRIB_RELEASE | cut -d'=' -f2)
UBUNTU_MAJOR=$(echo "${UBUNTU_RELEASE}" | cut -d'.' -f1)
UBUNTU_MINOR=04
if [ -x "$(command -v swift)" ]; then
#!/usr/bin/python
inst_classes = {
# A.2 Stack manipulation primitives
'stack_mapulation': [
# A.2.1. Basic stack manipulation primitives
'NOP',
'XCHG',
@ilyar
ilyar / ShardedToken.sol
Created May 17, 2023 13:15 — forked from k06a/ShardedToken.sol
ShardedToken
contract ShardedToken {
using SafeMath for uint256;
address owner = msg.sender;
uint256 private _totalSupply;
mapping(address => ShardedToken.Extension) private extensions;
function register() public {
extensions[msg.sender] = new Token.Extension();
}
@ilyar
ilyar / bash_strict_mode.md
Created May 14, 2023 14:12 — forked from mohanpedala/bash_strict_mode.md
set -e, -u, -o, -x pipefail explanation