Skip to content

Instantly share code, notes, and snippets.

View troian's full-sized avatar

Artur Troian troian

View GitHub Profile
@troian
troian / crosscompile_golang_migrate.md
Last active January 4, 2020 05:29
Crosscompile golang-migrate command for RPI2
TOOLCHAIN_PREFIX=armv7-linux-gnueabihf \
CC=${TOOLCHAIN_PREFIX}-gcc \
CXX=${TOOLCHAIN_PREFIX}-g++ \
CGO_LDFLAGS="-Os -s -Wl,--gc-sections -fwhole-program -dead_strip" \
CGO_CFLAGS="-fdata-sections -ffunction-sections -Os --sysroot=<sysroot path>" \
CGO_ENABLED=1 \
GOARCH=arm \
GOOS=linux \
GOARM=7 \

Keybase proof

I hereby claim:

  • I am troian on github.
  • I am atroian (https://keybase.io/atroian) on keybase.
  • I have a public key ASDcAps_PlQqU70QDQD4Ls0RIh3H8V9q1rfevpnGWa800go

To claim this, I am signing this object:

@troian
troian / UGW3_Wireguard.md
Created December 28, 2021 15:18 — forked from xirixiz/UGW3_Wireguard.md
Ubiquiti USG configuration for Wireguard

The purpouse is to have a WireGuard server running with a configuration for 2 clients to connect to the WireGuard server.

Installation

Follow the instructions for downloading and installing the WireGuard package here: https://github.com/WireGuard/wireguard-vyatta-ubnt

curl -OL https://github.com/WireGuard/wireguard-vyatta-ubnt/releases/download/${RELEASE}/${BOARD}-${RELEASE}.deb
sudo dpkg -i ${BOARD}-${RELEASE}.deb
@troian
troian / vdisk.sh
Created September 28, 2022 02:54
unraid vdisk mount
#!/usr/bin/env bash
set -x
if [[ $# -ne 2 ]]; then
echo "invalid amount of args"
fi
if [[ ! -f "$2" ]]; then
/usr/local/emhttp/webGui/scripts/notify -e "Unraid Server Notice" -s "Vdisk mount script" -d "config file does not exists $config_file" -i "alert"
@troian
troian / chain.json
Last active July 13, 2023 01:25
osmosis v16
{
"$schema": "../chain.schema.json",
"chain_name": "osmosis",
"status": "live",
"network_type": "mainnet",
"website": "https://osmosis.zone/",
"update_link": "https://raw.githubusercontent.com/osmosis-labs/osmosis/main/chain.schema.json",
"pretty_name": "Osmosis",
"chain_id": "osmosis-1",
"bech32_prefix": "osmo",
@troian
troian / .zshrc
Created May 21, 2024 23:53 — forked from khongi/.zshrc
Unraid Zsh with persistent config
# This is your .zshrc, put it in /boot/config/extra/
export ZSH="/root/.oh-my-zsh"
ZSH_THEME="robbyrussell"
DISABLE_UPDATE_PROMPT="true"
plugins=(
zsh-autosuggestions