Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View uzysjung's full-sized avatar

Jaehoon Jung uzysjung

View GitHub Profile
@uzysjung
uzysjung / Macros.h
Last active December 14, 2015 03:59 — forked from numo16/Macros.h
#define ApplicationDelegate ((AppDelegate *)[[UIApplication sharedApplication] delegate])
#define UserDefaults [NSUserDefaults standardUserDefaults]
#define NotificationCenter [NSNotificationCenter defaultCenter]
#define SharedApplication [UIApplication sharedApplication]
#define Bundle [NSBundle mainBundle]
#define MainScreen [UIScreen mainScreen]
#define ShowNetworkActivityIndicator() [UIApplication sharedApplication].networkActivityIndicatorVisible = YES
#define HideNetworkActivityIndicator() [UIApplication sharedApplication].networkActivityIndicatorVisible = NO
#define NetworkActivityIndicatorVisible(x) [UIApplication sharedApplication].networkActivityIndicatorVisible = x
#define NavBar self.navigationController.navigationBar
@uzysjung
uzysjung / UzysDebugLog.h
Last active December 19, 2015 12:19
Enable NSLog in Debug mode.
//
// DebugLog.h
// Uzys DebugLog
//
// Created by UzysJung on 13. 2. 25..
// Copyright (c) 2013년 Uzys. All rights reserved.
//
/*
How to use
//
// NSLocale+ios8_1.m
//
// Created by Uzysjung on 2014. 11. 11..
// Copyright (c) 2014년 SKPlanet. All rights reserved.
//
#if TARGET_IPHONE_SIMULATOR
#import "NSLocale+ios8_1.h"
#import <objc/runtime.h>
@uzysjung
uzysjung / NSLocale+ios8_1.h
Created November 11, 2014 07:19
iOS 8.1 simulator keyboard bug temporary solution.
//
// NSLocale+ios8_1.h
//
// Created by Uzysjung on 2014. 11. 11..
// Copyright (c) 2014년 SKPlanet. All rights reserved.
//
#import <Foundation/Foundation.h>
#if TARGET_IPHONE_SIMULATOR
@interface NSLocale (iOS8_1)
@uzysjung
uzysjung / eb.config
Last active January 22, 2020 05:59
increase max connections in elasticbeanstalk
commands:
01limits:
command: echo -e "#commands\nroot soft nofile 65536\nroot hard nofile 65536\n* soft nofile 65536\n* hard nofile 65536" >/etc/security/limits.d/custom.conf
02sysctl:
command: sysctl -w fs.file-max=131072 fs.nr_open=131072 net.ipv4.netfilter.ip_conntrack_max=131072 net.nf_conntrack_max=131072
@uzysjung
uzysjung / ebFont.config
Last active September 24, 2023 18:05
add custom font to Amazon linux
container_commands:
01_download_nanum_font:
command: wget http://static.campaign.naver.com/0/hangeul/renew/download/NanumFont_TTF.zip
02_unzip_font:
command: unzip Nanum*.zip
03_creat_fontdir:
command: mkdir -p /usr/share/fonts/nanumfont
04_mv_font:
command: mv *.ttf /usr/share/fonts/nanumfont
05_add_font_cache:
//
// ClassInfo.m
// sentinelShuttleValidationCheck
//
// Created by uzysjung on 2016. 1. 28..
// Copyright © 2016년 skpdi. All rights reserved.
//
#import "ClassInfo.h"
#import "RakeClientMetricSentinelShuttle.h"