Skip to content

Instantly share code, notes, and snippets.

Kaloyan Raev kaloyan-raev

Block or report user

Report or block kaloyan-raev

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@kaloyan-raev
kaloyan-raev / main.go
Created Apr 17, 2019
Example program in Go using Storj libuplink.
View main.go
// Copyright (C) 2019 Storj Labs, Inc.
// See LICENSE for copying information.
package main
import (
"bytes"
"context"
"fmt"
"io/ioutil"
View keybase.md

Keybase proof

I hereby claim:

  • I am kaloyan-raev on github.
  • I am kaloyan (https://keybase.io/kaloyan) on keybase.
  • I have a public key ASBAhWjeY-QE4sNrC6yJ-FvxT8l06_uNpt6oS0ZSeMaQ_Ao

To claim this, I am signing this object:

@kaloyan-raev
kaloyan-raev / che
Last active Oct 31, 2016
Eclipse Che service script for AWS
View che
#! /bin/sh
### BEGIN INIT INFO
# Provides: che
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Eclipse Che
# Description: Starts and stops Eclipse Che
#
@kaloyan-raev
kaloyan-raev / mirror-zend-studio-update-site.sh
Last active Nov 18, 2015
Bash script for mirroring the Zend Studio update site
View mirror-zend-studio-update-site.sh
#!/bin/bash
##############################################################################
# Configuration
##############################################################################
# The version of Zend Studio
version="13.0.1"
#
# The MD5 checksum of the zipped update site.
# It can be found on the zend.com download page.
checksum="19a9b59567f32dc082c691d850c922fe"
@kaloyan-raev
kaloyan-raev / download-update-site.ps1
Created Jul 22, 2015
PowerShell script for downloading an Eclipse update site
View download-update-site.ps1
Function DownloadFile($path) {
$url = "http://downloads.zend.com/studio-eclipse/updates/380/" + $path
Write-Output "Downloading $url"
$output_dir = Convert-Path .
$output_path = Join-Path $output_dir $path
$start_time = Get-Date
View IgnoreVariableAttributesDifferenceListener.java
public class IgnoreVariableAttributesDifferenceListener implements
DifferenceListener {
private static final List<String> IGNORE_ATTRS = Arrays
.asList(new String[] { "version", "download-size", "install-size" });
@Override
public int differenceFound(Difference difference) {
if (isIgnoredAttributeDifference(difference)) {
return RETURN_IGNORE_DIFFERENCE_NODES_SIMILAR;
View OverrideDifferenceListener.java
xmlDiff.overrideDifferenceListener(
new IgnoreVariableAttributesDifferenceListener());
View XMLDiff.java
FileReader xml1 = ...
FileReader xml2 = ...
Diff xmlDiff = new Diff(xml1, xml2);
xmlDiff.similar();
You can’t perform that action at this time.