Skip to content

Instantly share code, notes, and snippets.

View xslim's full-sized avatar

Taras Kalapun xslim

View GitHub Profile
@xslim
xslim / Fortuna.md
Last active June 2, 2026 03:17
Alubat Ovni 395 Fortuna

Alubat Ovni 395 (2005) – Fully Equipped High-Latitude Expedition Yacht

Summary: An exceptional, blue water turn-key example of the legendary Philippe Briand-designed aluminum lifting-keel cruiser. This vessel features rare factory-applied insulation and a Reflex diesel heater, making it fully equipped for high-latitude exploration or ultra-comfortable all-season cruising. Fastidiously upgraded for total off-grid autonomy with a massive 800Ah Victron Lithium bank, 1.1 kW solar array, premium sail wardrobe, and a state-of-the-art B&G electronics package. A major mechanical and rig overhaul was completed 3 years ago (new rigging, transmission, and all bearings). Highly sought-after 2-cabin layout with a dedicated starboard technical workshop. EU VAT Paid.

1. General Vessel Data

  • Builder: Chantier Alubat (France)
  • Model: Ovni 395
  • Year: 2005
  • Construction: 100% Aluminum (Hull & Deck)
  • Insulation: Fully insulated from the factory (Exceptional thermal co
@xslim
xslim / pw_parser.py
Created January 15, 2023 17:09
PredictWind JSON track parser
#!/usr/bin/env python3
import argparse, json
from datetime import datetime
from haversine import haversine, Unit
from tabulate import tabulate
parser = argparse.ArgumentParser(description='PredictWind JSON parser')
parser.add_argument('file', type=argparse.FileType('r'))
args = parser.parse_args()
@xslim
xslim / Dockerfile
Last active November 9, 2020 17:57
go cobra Dockerfile
FROM golang:alpine
LABEL maintainer Taras Kalapun <t.kalapun@gmail.com>
RUN apk add --no-cache git
RUN go get -u github.com/spf13/cobra
RUN go get -u github.com/spf13/viper
RUN go get -u github.com/mitchellh/go-homedir
//
// TransactionReceiptView.swift
// AdyenPOSTerminal
//
// Created by Taras Kalapun on 11/19/15.
//
//
import UIKit
import AdyenToolkit

July

  • 27-28 July : Amsterdam -> Mademblick

August sailing

  • 3 : Mademblick -> West-Terschelling
  • 4 : Day on West-Terschelling island
  • 5 : Depart West-Terschelling towards Helgoland
  • 5-6 : West-Terschelling -> Helgoland
  • 7 : Day at Helgoland
  • 8 : Helgoland -> TBD
@xslim
xslim / before_after.md
Last active February 14, 2019 16:38
Trim receipt line in C

Before

40|           Oracle HGBU HDS EMEA          
40|             VAT: 123 456 789            
40| 440010051  UK Manager                   
40| ----------------------------------------
40| CHK 1005                         TBL 9/1
40| ----------------------------------------
40|  1 Poached Pear                     4.50
@xslim
xslim / VirtualBox.md
Created December 13, 2018 10:36
VirtualBox things

Win10

Mac screen resolution

  • 2560x1600

  • 1280x800

  • VBoxManage modifyvm "Win10" --vram 256

  • VBoxManage getextradata "Win10" enumerate

  • VBoxManage setextradata "Win10" CustomVideoMode1 1920x1200x32

-(void)removeAllPaymentDevices:(id)args
{
NSLog(@"removing all payment devices");
ADYDeviceRegistry* deviceRegistry = [Adyen sharedInstance].deviceRegistry;
NSMutableArray* devices = deviceRegistry.devices.copy;
for (ADYDevice* device in devices) {
if (device.connectionType == ADYDeviceConnectionTypeWifi && device.hostname != nil && ![device.hostname isEqualToString:@""]) {
#!/bin/bash
POIID=YOUR_TERMINAL_SERIAL_NUMBER
url=https://terminal-api-test.adyen.com/sync
apikey="YOUR_CHECKOUT_API_KEY"
SaleID="${USER}-${HOSTNAME}"
ServiceID=$(date +%m%d%H%M%S)
TransactionID=$RANDOM
TimeStamp=$(date -u +%FT%T+00:00)
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">