Skip to content

Instantly share code, notes, and snippets.

View sergiitk's full-sized avatar
🚀
Back to work

Sergii Tkachenko sergiitk

🚀
Back to work
View GitHub Profile
package hello;
import io.grpc.ManagedChannel;
import io.grpc.ManagedChannelBuilder;
import io.grpc.stub.ClientCallStreamObserver;
import io.grpc.stub.StreamObserver;
import java.util.concurrent.TimeUnit;
; acceleration_enabled = {acceleration_enabled}
; acceleration_infill = {acceleration_infill}
; acceleration_ironing = {acceleration_ironing}
; acceleration_layer_0 = {acceleration_layer_0}
; acceleration_prime_tower = {acceleration_prime_tower}
; acceleration_print = {acceleration_print}
; acceleration_print_layer_0 = {acceleration_print_layer_0}
; acceleration_roofing = {acceleration_roofing}
; acceleration_skirt_brim = {acceleration_skirt_brim}
; acceleration_support = {acceleration_support}
@sergiitk
sergiitk / backport.sh
Last active December 16, 2023 00:01 — forked from ejona86/backport.sh
Custom backport script for grpc repos
#!/usr/bin/env bash
# Copyright 2020 The gRPC Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
// Copyright 2015 The gRPC Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
@sergiitk
sergiitk / gRPC-NettyChannelBuilder-ABI-demo.md
Last active January 21, 2021 23:29
gRPC NettyChannelBuilder binary backwards-incompatibily demonstration

Main.java source code

Code example code using gRPC, as from users' perspective

package org.example;

import io.grpc.ManagedChannel;
import io.grpc.ManagedChannelBuilder;
import io.grpc.netty.NettyChannelBuilder;
@sergiitk
sergiitk / icloud-tabs-to-csv.sh
Last active March 24, 2019 17:14
Save all opened Safari tabs from your iPhone (and other iCloud devices) to csv
sqlite3 ~/Library/Safari/CloudTabs.db "SELECT device.device_name, tab.url FROM cloud_tabs AS tab JOIN cloud_tab_devices AS device ON tab.device_uuid=device.device_uuid"
#!/usr/bin/env zsh
# ------------------------------------------------------------------------------
# Prompt for the Zsh shell:
# * One line.
# * VCS info on the right prompt.
# * Only shows the path on the left prompt by default.
# * Crops the path to a defined length and only shows the path relative to
# the current VCS repository root.
# * Wears a different color wether the last command succeeded/failed.
# * Shows user@hostname if connected through SSH.
<?php
// Persistent sessions.
session_name('your-name');
// Because your sessions in common folder could get collected by gc
// started by another script where this sessions aren't set.
ini_set("session.save_path", dirname(__FILE__) . '/tmp/');
// Decreases chance that gc process is started
@sergiitk
sergiitk / decode-image-orig.js
Last active August 3, 2016 15:48
Restore images from chrome
(function() {
var preTags = document.getElementsByTagName('pre');
var preWithHeaderInfo = preTags[0];
var preWithContent = preTags[2];
Array.prototype.slice.call(preTags).forEach(function(el) {
el.style.display = 'none';
});
Array.prototype.slice.call(document.getElementsByTagName('hr')).forEach(function(el) {
el.style.display = 'none';
@sergiitk
sergiitk / ds-build.log
Last active July 1, 2016 13:51
Ds build Jul 1 / 2016
==> default: Forcing shutdown of VM...
==> default: Destroying VM and associated drives...
==> default: Pruning invalid NFS exports. Administrator privileges will be required...
==> default: Running cleanup tasks for 'shell' provisioner...
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'dosomething/phoenix'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'dosomething/phoenix' is up to date...
==> default: Setting the name of the VM: ds_default_1467380190366_63493
==> default: Clearing any previously set network interfaces...