Skip to content

Instantly share code, notes, and snippets.

View henteko's full-sized avatar
😻
💯💯💯💯💯💯💯💯

henteko henteko

😻
💯💯💯💯💯💯💯💯
View GitHub Profile
curl \
--url https://deploygate.com/api/users/${OWNER_NAME}/platforms/${PLATFORM_TYPE}/apps/${APP_ID}/distributions \
-H "Authorization: Bearer ${API_TOKEN}" \
-X GET | \
jq '.results.distributions[] | select(.updated_at < (now - 31*24*60*60)).access_key' | \
xargs -I {} \
curl --url https://deploygate.com/api/distributions/{} \
-H "Authorization: Bearer ${API_TOKEN}" \
-X DELETE
# Based off of python:3.6-slim, except that we are using ubuntu instead of debian.
FROM ubuntu:16.04
# ensure local python is preferred over distribution python
ENV PATH /usr/local/bin:$PATH
# http://bugs.python.org/issue19846
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
ENV LANG C.UTF-8
@henteko
henteko / simgif.sh
Created December 13, 2016 07:32
Xcode 8.2から xcrun で動画を撮れるようになったのでそれをgifに変換するやつ
xcrun simctl io booted recordVideo ./_out.mov
ffmpeg -i _out.mov -an -r 15 -pix_fmt rgb24 -f gif out.gif
source "https://rubygems.org"
gem 'gym', '~> 1.7.0'
source "https://rubygems.org"
gem 'plist'
source "https://rubygems.org"
gem 'xcodeproj', '~> 0.28.2'
gem 'gym', '~> 1.7.0'
public class Hoge {
public Main(String one, String two) {
Map<String, Object> map = new Map<>();
if (one != null) { map.put("oneParam", one) }
if (two != null) { map.put("twoParam", two) }
}
}
_ _ _
__| | ___ _ __ | | ___ _ _ __ _ __ _| |_ ___
/ _` |/ _ \ '_ \| |/ _ \| | | |/ _` |/ _` | __/ _ \
| (_| | __/ |_) | | (_) | |_| | (_| | (_| | || __/
\__,_|\___| .__/|_|\___/ \__, |\__, |\__,_|\__\___|
|_| |___/ |___/
@henteko
henteko / Gemfile
Last active November 15, 2015 06:32
# A sample Gemfile
source "https://rubygems.org"
gem 'atomutil', :github => 'henteko/ruby-atomutil'
@henteko
henteko / readme.md
Created February 10, 2015 14:39
shenzhenでprovisioning profileを指定する

方法

ipa build --xcargs PROVISIONING_PROFILE="xxxxxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"

これだけだった