sudo apt-get install autoconf automake libtool curl make g++ unzip -y
git clone https://github.com/google/protobuf.git
cd protobuf
git submodule update --init --recursive
./autogen.sh
make
make check
sudo make install
sudo ldconfig
This file contains hidden or 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
| package main | |
| import "fmt" | |
| var ( | |
| Info = Teal | |
| Warn = Yellow | |
| Fata = Red | |
| ) |
This file contains hidden or 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
| # Nerd Fonts for your IDE | |
| # https://www.nerdfonts.com/font-downloads | |
| brew tap homebrew/cask-fonts && brew install --cask font-3270-nerd-font | |
| brew tap homebrew/cask-fonts && brew install --cask font-fira-mono-nerd-font | |
| brew tap homebrew/cask-fonts && brew install --cask font-inconsolata-go-nerd-font | |
| brew tap homebrew/cask-fonts && brew install --cask font-inconsolata-lgc-nerd-font | |
| brew tap homebrew/cask-fonts && brew install --cask font-inconsolata-nerd-font | |
| brew tap homebrew/cask-fonts && brew install --cask font-monofur-nerd-font | |
| brew tap homebrew/cask-fonts && brew install --cask font-overpass-nerd-font |
If you encounter a problem where you cannot commit changes in Git – neither through the terminal nor via the GitHub Desktop application – the issue might be a freeze during the Git commit process. This is often caused by GPG lock issues. Below is a concise and step-by-step guide to resolve this problem.
Open your terminal and try to perform a GPG operation (like signing a test message). If you see repeated messages like gpg: waiting for lock (held by [process_id]) ..., it indicates a lock issue.
This file contains hidden or 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 | |
| # checck if pidof exists | |
| PIDOF="$(which pidof)" | |
| # and if not - install it | |
| (test "${PIDOF}" && test -f "${PIDOF}") || brew install pidof | |
| # find app in default paths | |
| CO_PWD=~/Applications/CrossOver.app/Contents/MacOS | |
| test -d "${CO_PWD}" || CO_PWD=/Applications/CrossOver.app/Contents/MacOS |
This file contains hidden or 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
| 127.0.0.1 3ad.doubleclick.net | |
| 127.0.0.1 ad-emea.doubleclick.net | |
| 127.0.0.1 ad-g.doubleclick.net | |
| 127.0.0.1 ad-yt-bfp.doubleclick.net | |
| 127.0.0.1 ad.3au.doubleclick.net | |
| 127.0.0.1 ad.ae.doubleclick.net | |
| 127.0.0.1 ad.au.doubleclick.net | |
| 127.0.0.1 ad.be.doubleclick.net | |
| 127.0.0.1 ad.br.doubleclick.net | |
| 127.0.0.1 ad.de.doubleclick.net |