Skip to content

Instantly share code, notes, and snippets.

View shanielh's full-sized avatar
🚀

Shani Elharrar shanielh

🚀
View GitHub Profile
@shanielh
shanielh / patch.diff
Last active December 27, 2021 06:54
patch_snappy_for_parquet
diff --git a/parquet-cli/pom.xml b/parquet-cli/pom.xml
index 379e81b4e..bf9c1c91c 100644
--- a/parquet-cli/pom.xml
+++ b/parquet-cli/pom.xml
@@ -96,6 +96,12 @@
<version>${hadoop.version}</version>
<scope>provided</scope>
</dependency>
+ <dependency>
+ <groupId>org.xerial.snappy</groupId>
{
"Version": "2012-10-17",
"Statement": [{
"Effect": "Allow",
"Action": [
"s3:ListAllMyBuckets"
],
"Resource": [
"arn:aws:s3:::*"
]
@shanielh
shanielh / GoDaddySSLHAProxy.md
Created January 10, 2017 08:46 — forked from sethwebster/GoDaddySSLHAProxy.md
Creating a PEM for HaProxy from GoDaddy SSL Certificate

GoDaddy SSL Certificates PEM Creation for HaProxy (Ubuntu 14.04)

1 Acquire your SSL Certificate

Generate your CSR This generates a unique private key, skip this if you already have one.

sudo openssl genrsa -out  etc/ssl/yourdomain.com/yourdomain.com.key 1024

Next generate your CSR (Certificate Signing Request), required by GoDaddy:

@shanielh
shanielh / readme.md
Last active November 21, 2016 18:35
Witch!

Usage

./witch.sh terraform

Result

 _________________________________________
@shanielh
shanielh / consul-migrate.sh
Created March 8, 2016 14:22
consul migrate
# Consul KVP migration tool requires jq, base64 and curl
# sudo apt-get update && sudo apt-get install -y curl jq # coreutils (Comes with ubuntu)
echo "Migrating consul from $1 to $2"
curl "http://$1:8500/v1/kv/?recurse" | jq 'map("curl \"http://NEW_ADDR:8500/v1/kv/\(.Key)\" -XPUT -d \"$(echo \"\(.Value)\" | base64 --decode)\"")[]' -r | sed "s/NEW_ADDR/$2/g" | sh
@shanielh
shanielh / gist:415f654efeb8b36fe841
Created August 31, 2015 07:14
Terraform Destroy Bug :(
Do you really want to destroy?
Terraform will delete all your managed infrastructure.
There is no undo. Only 'yes' will be accepted to confirm.
Enter a value: yes
module.a.vpc.aws_vpc.main: Refreshing state... (ID: vpc-a526b8c0)
module.a.vpc.aws_internet_gateway.main: Refreshing state... (ID: igw-bda511d8)
module.a.vpc.aws_subnet.main: Refreshing state... (ID: subnet-386d1e4f)
module.a.aws_security_group.b: Refreshing state... (ID: sg-dc0cfdb8)
(int someNumberArgument) =>
{
for (int i = 0; i < 5; i++)
{
int myInt;
myInt = ExpressionDebugGames.PrivateField / (ExpressionDebugGames.PrivateProperty - ExpressionDebugGames.PrivateMethod<object>());
2 + 5;
Console.WriteLine("Hello Worlda");
}