Skip to content

Instantly share code, notes, and snippets.

Avatar

Aurelie Vache scraly

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am scraly on github.
  • I am scraly (https://keybase.io/scraly) on keybase.
  • I have a public key ASBN-C61Rl7oIgZLFyMsQrwpTUnbQNL6XG-G5lA1Gzv5ago

To claim this, I am signing this object:

View remove_s3_bucket_versions.sh
#!/bin/bash
###################################
#
# The aim of this script is to remove all versions of all files in AWS S3 versioned bucket using AWS CLI
#
###################################
bucket=$1
set -e
@scraly
scraly / k8s.sh
Last active Dec 23, 2017
kops - kubernetes 1.9
View k8s.sh
#!/usr/bin/env bash
# https://aws.amazon.com/fr/blogs/opensource/running-bleeding-edge-kubernetes-on-aws-with-kops/
# https://github.com/kubernetes/kops/blob/master/docs/development/testing.md#uploading-a-custom-build
export CLUSTER_NAME=${CLUSTER_NAME:-example.cluster.k8s.local}
export KUBERNETES_VERSION=${KUBERNETES_VERSION:-https://storage.googleapis.com/kubernetes-release/release/v1.9.0/}
export AWS_DEFAULT_REGION=${AWS_DEFAULT_REGION:-us-west-2}
# Get all available AZs
export AWS_AVAILABILITY_ZONES="$(aws ec2 describe-availability-zones --query 'AvailabilityZones[].ZoneName' --output text | awk -v OFS="," '$1=$1')"
View .gitconfig
[user]
name = scraly
email = scraly@gmail.com
[color]
diff = auto
status = auto
branch = auto
[alias]
ci = commit
co = checkout
@scraly
scraly / svn-pristine-find.sh
Created Jan 5, 2017 — forked from mcbrwr/svn-pristine-find.sh
fix for "svn pristine text not present" error in a working copy
View svn-pristine-find.sh
#!/bin/bash
# for an "svn pristine text not present" error like this:
# svn: E155010: Pristine text 'd6612ee6af5d9fb4459cbe7e2e8e18f7fb4201f8' not present
# you can delete the file and retrieve it with svn up
# (if you have local modifications, make up your own plan)
# -
# Run this script from the root of the working copy.
# It retrieves the file that's causing the error from wc.db
# usage example : ./svn-pristine-find.sh d6612ee6af5d9fb4459cbe7e2e8e18f7fb4201f8
@scraly
scraly / SmartWatchClient.java
Created Jun 30, 2015
Eclipse Con France 2015 Eclipse Leshan tutorial by Sierra Wireless
View SmartWatchClient.java
package org.eclipse.tutorials.leshan;
import java.net.InetSocketAddress;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Timer;
import java.util.TimerTask;
import java.util.concurrent.atomic.AtomicLong;