Skip to content

Instantly share code, notes, and snippets.

View antonsoroko's full-sized avatar

Anton Soroko antonsoroko

View GitHub Profile
@antonsoroko
antonsoroko / kodi_paste_text.sh
Created March 12, 2025 12:59
Paste copied or selected text into Kodi in Linux.
#!/bin/bash
text="$(xclip -out -selection clipboard)"
# OR xsel --output --clipboard ; remove "clipboard" if you want to use PRIMARY selection.
xdotool type --window $(xdotool search --class Kodi) -- "$text"
bench: force
$(DOCKER) run --rm -v $(GOPATH):/go -e GOPATH=/go -e GOCACHE=/go-cache -v $(shell pwd):/go/src/$(GO_PKG) -v $(shell go env GOCACHE):/go-cache -u `stat -c "%u:%g" $(shell go env GOCACHE)` --ulimit memlock=67108864 -w /go/src/$(GO_PKG) $(DOCKER_IMAGE):$(TARGET_OS)-$(TARGET_ARCH) go test -benchtime=1000x -bench=. ./library/playcount/
@antonsoroko
antonsoroko / main_test.go
Last active June 2, 2020 12:17
мой main_test.go для задачи E https://contest.yandex.ru/contest/17728
package main
import (
"log"
"math/rand"
"runtime"
"sync"
"testing"
"time"
)
@antonsoroko
antonsoroko / куда сходить в Берлине.txt
Last active March 2, 2019 16:45
куда сходить в Берлине
Dmitry Andreevich (klekovkinda) [7 days ago]
На музейном острове музеи интересно.
anovikov [7 days ago]
если интересна живопись\искусство, то:
https://www.berlin.de/ausstellungen/archiv/4903983-3238788-von-monet-bis-kandinsky.html
https://www.smb.museum/museen-und-einrichtungen/gemaeldegalerie/home.html
@antonsoroko
antonsoroko / discussion of DE mobile operators.txt
Last active March 2, 2019 16:45
discussion of DE mobile operators
user [3:47 PM]
А кто-нибудь юзал aldi симки?
Hennadii Bolshakov [3:50 PM]
У меня aldi
kadabrik [4:07 PM]
У меня
Hennadii Bolshakov [4:08 PM]
@antonsoroko
antonsoroko / manifest.yml
Last active August 9, 2016 10:03
manifest.yml for http://bosh.io/docs/create-release.html Please notice that this manifest is for OpenStack! See BOSH Deployment Manifest (http://bosh.io/docs/deployment-manifest.html) for more information about other IaaS.
---
name: bosh-tutorial-deployment
director_uuid: REPLACE_WITH_DIRECTOR_UUID
releases:
- {name: ardo_app, version: latest}
resource_pools:
- name: vms
network: default
@antonsoroko
antonsoroko / Gemfile
Last active December 7, 2020 16:31
ardo_app
source "http://rubygems.org"
gem "sinatra"