Skip to content

Instantly share code, notes, and snippets.

View scraly's full-sized avatar

Aurelie Vache scraly

View GitHub Profile

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:

#!/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 December 23, 2017 20:05
kops - kubernetes 1.9
#!/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')"
@scraly
scraly / .gitconfig
Created April 21, 2017 13:19
Git config
[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 January 5, 2017 15:41 — forked from mcbrwr/svn-pristine-find.sh
fix for "svn pristine text not present" error in a working copy
#!/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 June 30, 2015 13:24
Eclipse Con France 2015 Eclipse Leshan tutorial by Sierra Wireless
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;