Skip to content

Instantly share code, notes, and snippets.

View tanb's full-sized avatar
:shipit:
๐Ÿ๐Ÿ—ฏ

Tomonori Tanabe tanb

:shipit:
๐Ÿ๐Ÿ—ฏ
View GitHub Profile
@shortjared
shortjared / list.txt
Last active April 11, 2025 14:12
List of AWS Service Principals
a4b.amazonaws.com
access-analyzer.amazonaws.com
account.amazonaws.com
acm-pca.amazonaws.com
acm.amazonaws.com
airflow-env.amazonaws.com
airflow.amazonaws.com
alexa-appkit.amazon.com
alexa-connectedhome.amazon.com
amazonmq.amazonaws.com
@dealforest
dealforest / slack.py
Last active January 24, 2018 01:53
send to slack in LLDB
#!/usr/bin/env python
import lldb
def slack(debugger, command, result, internal_dict):
frame = lldb.debugger.GetSelectedTarget().GetProcess().GetSelectedThread().GetSelectedFrame()
path = command
lldb.debugger.HandleCommand("""
expr -l swift --
/*
Dead simple com.apple.companion_proxy client.
This allows you to forward ports bound to your Watch's 127.0.0.1 to a random port on your iPhone.
-- qwertyoruiop, 2016
*/
#include <stdio.h>
@bjhomer
bjhomer / currentTrack.swift
Last active March 20, 2024 02:21
Using ScriptingBridge from Swift.
#! /usr/bin/swift
import ScriptingBridge
@objc protocol iTunesTrack {
optional var name: String {get}
optional var album: String {get}
}
@objc protocol iTunesApplication {
@kautaleksei
kautaleksei / gist:19afe866371bf3168a3d
Last active July 5, 2020 13:24 — forked from anonymous/gist:5356982
Objective-C fastes method for get min and max value from array.
#import <Foundation/Foundation.h>
void method1(NSArray *numbers)
{
NSArray *sorted = [numbers sortedArrayUsingSelector:@selector(compare:)];
}
void method2(NSArray *numbers)
{
NSNumber *max=[numbers valueForKeyPath:@"@max.doubleValue"];

Greetings, NSHipsters!

As we prepare to increment our NSDateComponents -year by 1, it's time once again for NSHipster end-of-the-year Reader Submissions! Last year, we got some mind-blowing tips and tricks. With the release of iOS 7 & Mavericks, and a year's worth of new developments in the Objective-C ecosystem, there should be a ton of new stuff to write up for this year.

Submit your favorite piece of Objective-C trivia, framework arcana, hidden Xcode feature, or anything else you think is cool, and you could have it featured in the year-end blowout article. Just comment on this gist below!

Here are a few examples of the kind of things I'd like to see:

  • Using NSStringFromSelector(@selector()) as a safer way to do KVC / KVO / NSCoding.
  • Panic's [rather surprising discovery about the internals of the Lightning Digital AV Adapter](http://www.panic.com/blog/the-lightning-di
@voluntas
voluntas / django-s3-imagekit-celery.rst
Last active May 13, 2022 13:46
S3 ใจ้žๅŒๆœŸใ‚ตใƒ ใƒใ‚คใƒซไฝœๆˆ ใ‚ณใƒˆใƒใ‚ธใƒก

S3 ใจ้žๅŒๆœŸใ‚ตใƒ ใƒใ‚คใƒซไฝœๆˆ ใ‚ณใƒˆใƒใ‚ธใƒก

ๆ›ดๆ–ฐ:2013-12-08
ใƒใƒผใ‚ธใƒงใƒณ:0.1.8
ไฝœ่€…:@voluntas
URL:http://voluntas.github.io/

ๆฆ‚่ฆ

@voluntas
voluntas / shiguredo_tech.rst
Last active March 15, 2025 00:17
ๆ™‚้›จๅ ‚ใ‚’ๆ”ฏใˆใ‚‹ๆŠ€่ก“

ๆ™‚้›จๅ ‚ใ‚’ๆ”ฏใˆใ‚‹ๆŠ€่ก“

ๆ—ฅๆ™‚:2025-03-15
ไฝœ:ๆ™‚้›จๅ ‚
ใƒใƒผใ‚ธใƒงใƒณ:2025.2
URL:https://shiguredo.jp/

ๆ™‚้›จๅ ‚ใ‚ฏใƒฉใ‚ฆใƒ‰ใ‚ตใƒผใƒ“ใ‚นใ‚’ๆ”ฏใˆใ‚‹ๆŠ€่ก“

@Gab-km
Gab-km / whyILeftHeroku.rst
Last active December 30, 2022 10:56
ไฝ•ๆ•…็งใฏ Heroku ใ‹ใ‚‰้›ขใ‚ŒใŸใ‹ใ€ใŠใ‚ˆใณๆ–ฐใ—ใ„ AWS ใ‚ปใƒƒใƒˆใ‚ขใƒƒใƒ—ใฎใƒกใƒข

ไฝ•ๆ•…็งใฏ Heroku ใ‹ใ‚‰้›ขใ‚ŒใŸใ‹ใ€ใŠใ‚ˆใณๆ–ฐใ—ใ„ AWS ใ‚ปใƒƒใƒˆใ‚ขใƒƒใƒ—ใฎใƒกใƒข

ๅŽŸ่‘—่€…:Adrian Holovaty
ๅŽŸๆ–‡:Why I left Heroku, and notes on my new AWS setup

้‡‘ๆ›œๆ—ฅใ€็งใฏ Heroku ใ‹ใ‚‰ Amazon Web Services(AWS) ใ‚’็›ดๆŽฅไฝฟใ†ใ‚ˆใ†ใซ Soundslice ใ‚’็งป่กŒใ—ใพใ—ใŸใ€‚็งใฏใ“ใฎๅค‰ๆ›ดใŒใงใใฆใจใฆใ‚‚ใ€ใใ†ใจใฆใ‚‚ๅฌ‰ใ—ใใฆใ€็งใŒใฉใ†ใ‚„ใฃใŸใ‹ใจใ„ใ†ใ“ใจใจใ€ใ‚‚ใ—็š†ใ•ใ‚“ใŒๅŒใ˜ใ‚ˆใ†ใช็ซ‹ๅ ดใ ใฃใŸใ‚‰ไฝ•ๆ•…ใใ‚Œใ‚’ๆคœ่จŽใ™ในใใ‹ใจใ„ใ†ใ“ใจใซใคใ„ใฆๅบƒใไผใˆใŸใ„ใจๆ€ใ„ใพใ™ใ€‚

@ole
ole / update_storyboard_strings.sh
Last active April 4, 2022 06:11
Automatically extract translatable strings from Xcode storyboards and update .strings files. Original version by MacRumors forum user mikezang (http://forums.macrumors.com/showpost.php?p=16060008&postcount=4). Slightly updated by Ole Begemann. NOTE: this Gist moved to a regular repo at https://github.com/ole/Storyboard-Strings-Extraction.
# (File moved to https://github.com/ole/Storyboard-Strings-Extraction)