View keen importer.rb
#!/bin/ruby | |
# import data from keen to keen | |
# can also delete data from source | |
require 'keen' | |
require 'awesome_print' | |
require 'active_support/core_ext' | |
require 'i18n' |
View fix-issue.rb
#!/usr/bin/ruby | |
# | |
# create a pull request for current branch | |
# | |
# configure | |
# create a github token | |
# https://github.com/settings/applications#personal-access-tokens | |
# export GITHUB_TOKEN="xx" | |
# export GITHUB_USER="huguesbr" | |
# export GITHUB_REPO="xx/yy" (optional, otherwise use origin url) |
View prepare-commit-msg
#!/usr/bin/ruby | |
# | |
# Called by "git commit" with the | |
# name of the file that has the | |
# commit message, followed by | |
# the description of the commit | |
# message's source. The hook's | |
# purpose is to edit the commit | |
# message file. If the hook fails | |
# with a non-zero status, |
View pull-request.rb
#!/usr/bin/ruby | |
# | |
# create a pull request for current branch | |
# | |
# configure | |
# create a github token | |
# https://github.com/settings/applications#personal-access-tokens | |
# export GITHUB_TOKEN="xx" | |
# export GITHUB_USER="huguesbr" | |
# export GITHUB_REPO="xx/yy" (optional, otherwise use origin url) |
View iOSSimDeleteAll.sh
xcrun simctl list devices | grep -v '^[-=]' | cut -d "(" -f2 | cut -d ")" -f1 | xargs -I {} xcrun simctl delete "{}" |
View generate_csr.sh
# generate SSL CSR | |
openssl req -new -newkey rsa:2048 -nodes -out request.csr -keyout private.key -subj "/C=FR/ST=Region/L=City/O=Company Name/CN=www.domain.com" |
View parse_push.sh
curl -X POST \ | |
-H "X-Parse-Application-Id: $PARSE_APP_ID" \ | |
-H "X-Parse-Master-Key: $PARSE_MASTER_KEY" \ | |
-H "Content-Type: application/json" \ | |
-d '{ | |
"where": {}, | |
"data": { | |
"title": "Title", | |
"alert": "Message" |
View NSDataExtensions.swift
// | |
// NSDataExtensions.swift | |
// MAPO | |
// | |
// Created by Hugues Bernet-Rollande on 21/3/16. | |
// Copyright © 2016 WB Technologies. All rights reserved. | |
// | |
import Foundation |
View XCTestExpectationExtensions.swift
// | |
// XCTestExpectationExtensions.swift | |
// | |
// Created by Hugues Bernet-Rollande on 7/4/16. | |
// | |
import XCTest | |
extension XCTestExpectation { | |
private class IntWrapper { |
OlderNewer