Skip to content

Instantly share code, notes, and snippets.

@PGMY
PGMY / iOSLib.md
Last active December 11, 2017 06:26
iOSで使えるライブラリなリポジトリまとめ
@PGMY
PGMY / file0.m
Last active July 28, 2017 03:39
iOS脱獄チェックメモ ref: http://qiita.com/PGMY/items/3ceae5cbbf93e013deb4
+(BOOL)isJailbroken{
#if !(TARGET_IPHONE_SIMULATOR)
if ([[NSFileManager defaultManager] fileExistsAtPath:@"/Applications/Cydia.app"]){
return YES;
}else if([[NSFileManager defaultManager] fileExistsAtPath:@"/Library/MobileSubstrate/MobileSubstrate.dylib"]){
return YES;
}else if([[NSFileManager defaultManager] fileExistsAtPath:@"/bin/bash"]){
return YES;
disabled_rules: # 適用したくないチェック項目を記述
- force_try
- trailing_whitespace
- variable_name
opt_in_rules: # 採用するopt-inのルール
- empty_count
included: # Lint対象にするファイル プロジェクトpathを指定
- ##PRJ_NAME##
excluded: # Lint対象から外すファイルのあるパスを記述、CocoaPodsやCarthage
- Carthage
@PGMY
PGMY / Twitter_API_1.1_rate_limit.txt
Created April 14, 2016 02:13 — forked from tsupo/Twitter_API_1.1_rate_limit.txt
Twitter API 1.1 / 実行回数制限
Twitter API 1.1 の現行APIの制限
(REST API v1.1 Limits per window by resource)
https://dev.twitter.com/docs/rate-limiting/1.1/limits
・15分辺り最大何回実行できるか
Timelines
GET statuses/mentions_timeline 15回
GET statuses/user_timeline 180回/user, 300回/application
<style type="text/css">
* {font-family:"Avenir Next", sans-serif;}
#globalheader-container {display:none;}
#footer-menu {display:none;}
.profile {display:none !important;}
.footer-action-wrapper {display:none;}
.footer-service-link {display:none;}
.entry-content h4 { color: rgb(59, 66, 126);/*₩ヨヌ¥ᆳラ│ノᄇ*/
background: rgb(243, 242, 252); /*│テフ₩ルᆵ│ノᄇ*/
padding: 10px 10px; /*│ᆭヒ¥ヌᄎ ̄チラ ̄チᄒ ̄ツマ ̄ツハ ̄チᆴ ̄ツᄍ ̄テレ ̄テᄐ ̄ツᄍ ¦ᄌハ¦ᄌヒ ̄タチ¥ᄋᆭ¥マᄈ*/
@PGMY
PGMY / gist:3434749
Created August 23, 2012 09:39 — forked from rosylilly/gist:3401612
先輩と覚える HTTP ステータスコード

先輩に学ぶ HTTP Status Code

超雑にまとめました。修正してください。

登場人物

  • アプリケーション先輩: いつも忙しい。横に広がるのが得意(デブじゃない)。
  • 後輩: 頼んでばっかしで役に立たない。
  • サーバー先輩: アプリケーション先輩と仲がいい。Unix Socket でつながるくらい仲良し。
  • プロクシ先輩: アプリケーション先輩とかサーバー先輩と後輩の間を取り持って代わりに伝えたりしてくれる。たまに勝手にレスポンスを書き換える。
@PGMY
PGMY / .gitignore
Created January 28, 2014 06:09 — forked from mmorey/.gitignore
#########################
# .gitignore file for Xcode5
#
# NB: if you are storing "built" products, this WILL NOT WORK,
# and you should use a different .gitignore (or none at all)
# This file is for SOURCE projects, where there are many extra
# files that we want to exclude
#
# For updates, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects
# and https://gist.github.com/adamgit/3786883
@PGMY
PGMY / GitLabInstall.md
Last active January 4, 2016 07:59
CentOS 6.5にGitLab(6.0-6.4)インストールメモ
Distribution      : CentOS 6.5
GitLab version    : 6.0 - 6.4
Web Server        : Apache, Nginx
Init system       : sysvinit
Database          : MySQL, PostgreSQL
Contributors      : @nielsbasjes, @axilleas, @mairin, @ponsjuh, @yorn, @psftw, @etcet
Additional Notes  : In order to get a proper Ruby setup we build it from source
@PGMY
PGMY / file0.txt
Created January 20, 2014 14:15
Serversman@VPS 初期設定 ref: http://qiita.com/PGMY/items/c2eb0fb0c9df1dd12ff6
$ ssh -p [ポート番号] root@[IPアドレス]
The authenticity of host ******* can't be established.
RSA key fingerprint is ********.
Are you sure you want to continue connecting (yes/no)? yes
#
Distribution      : CentOS 6.5
GitLab version    : 6.0 - 6.4
Web Server        : Apache, Nginx
Init system       : sysvinit
Database          : MySQL, PostgreSQL
Contributors      : @nielsbasjes, @axilleas, @mairin, @ponsjuh, @yorn, @psftw, @etcet
Additional Notes  : In order to get a proper Ruby setup we build it from source