Skip to content

Instantly share code, notes, and snippets.

View RATTLESNAKE-VIPER's full-sized avatar

Gautam RATTLESNAKE-VIPER

  • Mumbai,Maharashtra,India
View GitHub Profile
@RATTLESNAKE-VIPER
RATTLESNAKE-VIPER / helm-cheatsheet.md
Created July 4, 2021 06:58 — forked from tuannvm/cka.md
#Helm #Kubernetes #cheatsheet, happy helming!
@RATTLESNAKE-VIPER
RATTLESNAKE-VIPER / gist:8b79100ca52f2c11e262
Created October 17, 2015 08:20 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
// Useful Macros.
// The best place to import this is in your project's pch file.
// See http://www.cimgf.com/2010/05/02/my-current-prefix-pch-file/ for details.
// Most current version at https://gist.github.com/325926 along with usage notes.
#ifndef jcscommonmacros
#define jcscommonmacros_1_0 10000
#define jcscommonmacros jcscommonmacros_1_0
#endif
From: http://snipt.net/yonishin/about-xcode-4-project-template
XCode 4 Projects and Files Template Folder: /Developer/Library/Xcode/Templates
Examples:
/Developer/Library/Xcode/Templates/Project Templates/Base/Other/Empty.xctemplate
/Developer/Library/Xcode/Templates/Project Templates/Base/Base.xctemplate
/Developer/Library/Xcode/Templates/Project Templates/Mac/Mac Base.xctemplate
/Developer/Library/Xcode/Templates/Project Templates/Mac/Application/Command Line Tool.xctemplate
/Developer/Library/Xcode/Templates/Project Templates/Mac/Application/Cocoa Application.xctemplate
// UIViewController+ModalCheck.h
//
// Created by Felipe Sabino on 06/14/11
#import <UIKit/UIKit.h>
@interface UIViewController (ModalCheck)
-(BOOL)isPresentedAsModal;
@RATTLESNAKE-VIPER
RATTLESNAKE-VIPER / Git Commands Quick Lookup
Created July 29, 2012 15:18
Git Commands Quick Lookup
-----------------------------------------------SET UP GIT-----------------------------------------------
Username:
git config --global user.name "Your Name Here"
# Sets the default name for git to use when you commit
Email:
git config --global user.email "your_email@youremail.com"
# Sets the default email for git to use when you commit
# Your email address for Git should be the same one associated with your GitHub account.