Skip to content

Instantly share code, notes, and snippets.

Avatar
🚀
shipping

Felix Krause KrauseFx

🚀
shipping
View GitHub Profile
@KrauseFx
KrauseFx / orta_gifs.rb
Last active May 9, 2020
This gist opens all orta gifs in your browser
View orta_gifs.rb
# taken from https://gist.github.com/orta/694004c20becead3ce1f
urls = %w[
https://ortastuff.s3.amazonaws.com/gifs/bike.gif
https://ortastuff.s3.amazonaws.com/gifs/bug-hunting.gif
https://ortastuff.s3.amazonaws.com/gifs/cheers-boxing.gif
https://ortastuff.s3.amazonaws.com/gifs/clap-2.gif
https://ortastuff.s3.amazonaws.com/gifs/clap.gif
https://ortastuff.s3.amazonaws.com/gifs/danger.gif
https://ortastuff.s3.amazonaws.com/gifs/delisa-nah.gif
https://ortastuff.s3.amazonaws.com/gifs/delisa-one-thumb.gif
View keybase.md

Keybase proof

I hereby claim:

  • I am krausefx on github.
  • I am krausefx (https://keybase.io/krausefx) on keybase.
  • I have a public key ASC-hi_P4JRIckXO-HH7be2gSJCy0vEGTsj3d5M_tmWPyAo

To claim this, I am signing this object:

View keybase.md

Keybase proof

I hereby claim:

  • I am krausefx on github.
  • I am krausefx (https://keybase.io/krausefx) on keybase.
  • I have a public key ASApsSjQg6pM7NRbBrRXXgkdjb8ICOyh6DQhL9Gh4E8ceQo

To claim this, I am signing this object:

View github-stats.sql
/* GitHub query to get the number of comments, PR, releases, etc. for a given GH org */
WITH
ProjectData AS (SELECT * FROM `githubarchive.day.2017*` WHERE repo.name LIKE 'fastlane/%'),
Actors AS (SELECT DISTINCT(actor.login) AS login FROM ProjectData)
SELECT * FROM (
SELECT
actors.login,
(SELECT COUNT(*) FROM ProjectData WHERE type = 'IssueCommentEvent' AND actor.login = actors.login) AS Comments,
View understanding_to_s_length.rb
# as this is used in the fastlane code base a lot, and lots of people ask about it
# .length method
"my string".length # => 9
"".length # => 0
nil.length # NoMethodError: undefined method `length' for nil:NilClass
# .to_s method
"my string".to_s # => "my string"
"".to_s # => ""
@KrauseFx
KrauseFx / get_identifier_to_be_uploaded.rb
Created Sep 2, 2014
iTunesConnect: Receive the app identifier of the next app to be uploaded (Waiting for Upload status), since you can not specify which app you want to deploy next (http://stackoverflow.com/questions/7568420/how-to-perform-ios-app-validation-from-the-command-line#comment23525642_7569194)
View get_identifier_to_be_uploaded.rb
# encoding: utf-8
require 'pty'
require 'pry'
command = "xcrun -sdk iphoneos Validation -online -upload -verbose notHere.ipa"
# upload it now: http://stackoverflow.com/questions/7568420/how-to-perform-ios-app-validation-from-the-command-line
output = ''
begin
View UITestExampleOutput
Test Suite 'All tests' started at 2015-06-18 14:48:42.601
Test Suite 'TempCam UI Tests.xctest' started at 2015-06-18 14:48:42.602
Test Suite 'TempCam_UI_Tests' started at 2015-06-18 14:48:42.602
Test Case '-[TempCam_UI_Tests.TempCam_UI_Tests testExample]' started.
2015-06-18 14:48:43.676 XCTRunner[39404:602329] Continuing to run tests in the background with task ID 1
t = 1.99s Wait for app to idle
t = 2.63s Find the "toggleButton" Switch
t = 2.65s Tap the "toggleButton" Switch
t = 2.65s Wait for app to idle
t = 2.66s Find the "toggleButton" Switch
@KrauseFx
KrauseFx / uitesting.sh
Created Jun 18, 2015
Run UI Tests from the command line
View uitesting.sh
xcodebuild -workspace App.xcworkspace \
-scheme "SchemeName" \
-sdk iphonesimulator \
-destination 'platform=iOS Simulator,name=iPhone 6,OS=9.0'
test
View keybase.md

Keybase proof

I hereby claim:

  • I am KrauseFx on github.
  • I am krausefx (https://keybase.io/krausefx) on keybase.
  • I have a public key whose fingerprint is 179F 4EFF D4C4 35ED 7F21 5F2D F4F0 E47F 5C75 4D85

To claim this, I am signing this object:

@KrauseFx
KrauseFx / Multiple Schemes Deliver.rb
Created Nov 13, 2014
Multiple Schemes in deliver
View Multiple Schemes Deliver.rb
project_name = gets.chomp
if project_name == 'project_name1'
email "yourappleid@company.com"
# hide_transporter_output # remove the '#' in the beginning of the line, to hide the output while uploading
########################################
# App Metadata
########################################
You can’t perform that action at this time.