Skip to content

Instantly share code, notes, and snippets.

@alexradzin
alexradzin / selftar.sh
Last active March 6, 2025 18:54
Script that creates self extracting executable script from tar.gz file.
#!/bin/sh
if [ $# -eq 0 ]; then
echo "This script creates self extractable executable"
echo Usage: $0 TAR.GZ [COMMAND]
exit;
fi
if [ $# -gt 0 ]; then
TAR_FILE=$1
@alexradzin
alexradzin / CQLTest
Last active August 29, 2015 14:11
CQLTest that reproduces FSWriteError in Cassandra: https://issues.apache.org/jira/browse/CASSANDRA-8390
import com.datastax.driver.core.Cluster;
import com.datastax.driver.core.ResultSetFuture;
import com.datastax.driver.core.Session;
import com.google.common.util.concurrent.Futures;
import org.junit.Test;
import java.util.ArrayList;
import java.util.Collection;
public class CQLTest {