Skip to content

Instantly share code, notes, and snippets.

View teriiehina's full-sized avatar

teriiehina teriiehina

View GitHub Profile
### Keybase proof
I hereby claim:
* I am teriiehina on github.
* I am teriiehina (https://keybase.io/teriiehina) on keybase.
* I have a public key whose fingerprint is 4AC0 0707 583F B83F 8376 C342 10B6 E4A1 C604 35EE
To claim this, I am signing this object:
@teriiehina
teriiehina / commit-msg.rb
Last active August 29, 2015 14:10
a hook launched just before git creates the commit (aka .git/hooks/commit-msg)
#!/usr/bin/env ruby
require 'rubygems'
require 'raspell'
chars_count_min = 10
chars_count_max = 80
message_file = ARGV[0]
first_line = File.open(message_file, &:gets)
@teriiehina
teriiehina / changelog.css
Last active August 29, 2015 14:10
Create a HTML changelog between two git revisions.
<style type="text/css">
body
{
line-height: 1.6em;
color:#333333;
font-family: "Lucida Sans Unicode", "Lucida Grande", Sans-Serif;
}
table
{
@teriiehina
teriiehina / resign.sh
Last active May 23, 2022 20:53
Re-sign an IPA given a .mobileprovision and a signing identity
#!/usr/bin/env bash
if [ "$#" -ne 3 ]; then
echo "Usage: $0 ipa_path provisioning_profile_path signing_identity" >&2
exit 1
fi
set -e # make the script exit when a command fails.
set -u # exit when the script tries to use undeclared variables.
Verifying that +teriiehina is my blockchain ID. https://onename.com/teriiehina

Keybase proof

I hereby claim:

  • I am teriiehina on github.
  • I am teriiehina (https://keybase.io/teriiehina) on keybase.
  • I have a public key whose fingerprint is 3B45 D692 E436 652F BCCE 928A F993 F0D9 ECB9 3C35

To claim this, I am signing this object:

@teriiehina
teriiehina / 0000-static-function-decorator.md
Created June 6, 2016 01:26
This is my first Swift Evolution proposition draft
@teriiehina
teriiehina / super_xcov.rb
Created June 7, 2016 10:28
Hacky way to get code coverage from xcov in a Fastlane lane
module Fastlane
module Actions
module SharedValues
SUPER_XCOV_CODE_COVERAGE = :SUPER_XCOV_CODE_COVERAGE
end
class SuperXcovAction < Action
def self.run(options)
Actions.verify_gem!('xcov')
require 'xcov'
module Fastlane
module Actions
module SharedValues
SUPER_SCAN_FAILING_TESTS_NUMBER = :SUPER_SCAN_FAILING_TESTS_NUMBER
SUPER_SCAN_TOTAL_TESTS_NUMBER = :SUPER_SCAN_TOTAL_TESTS_NUMBER
end
class SuperScanAction < Action
def self.run(options)
@teriiehina
teriiehina / pre-commit.rb
Created July 1, 2016 07:58
A pre-commit git hook heavily inspired from https://github.com/ashfurrow/danger-swiftlint/
#!/usr/bin/env ruby
require 'json'
def puts_violation(violation)
severity = violation['severity']
filename = violation['file'].split('/').last
line = violation['line']
reason = violation['reason']