Skip to content

Instantly share code, notes, and snippets.

View CocoaBeans's full-sized avatar

Kevin Ross CocoaBeans

View GitHub Profile
@CocoaBeans
CocoaBeans / .gitignore
Created January 16, 2013 19:53
Common .gitignores for Cocoa development
*.xcuserdatad/
docset-installed.txt
# OS X Finder
.DS_Store
# Xcode per-user config
*.mode1
*.mode1v3
*.mode2v3
@CocoaBeans
CocoaBeans / Localizable.strings.m
Created January 16, 2013 19:51
Trick to add a warning comment to the top of Localizable.strings
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///
/// Localizable.strings.m
/// Checkmate
///
/// The following macro displays a message at the top of the Localizable.strings file warning anyone to not edit the file directly.
/// This is not meant to be localized by anyone and only serves as a warning.
/// We've placed this here so the genstrings build phase will process it and add it to Localizable.strings
///
/// Copyright (c) 2011 Micromat, Inc. All rights reserved.
@CocoaBeans
CocoaBeans / .profile
Created January 16, 2013 19:48
Custom Bash Prompt
###############################################################
## Add custom command prompt
# Fill with minuses
# (this is recalculated every time the prompt is shown in function prompt_command):
fill="--- "
reset_style='\[\033[00m\]'
status_style=$reset_style'\[\033[0;90m\]' # gray color; use 0;37m for lighter color
prompt_style=$reset_style
#command_style=$reset_style'\[\033[1;29m\]' # bold black
@CocoaBeans
CocoaBeans / git-delete-tag
Created January 16, 2013 19:26
Delete a tag from the local git repository and push it to origin
#!/bin/bash #-x
GIT_TAG="${1}"
echo "Deleting remote git tag: ${GIT_TAG}"
git tag -d "${GIT_TAG}"
git push origin ":refs/tags/${GIT_TAG}"
@CocoaBeans
CocoaBeans / DirectoryDestoryer.command
Last active October 4, 2015 15:37
Corrupt journal and bitmap of a given disk identifier
#!/bin/bash
#########################################################################################
###
### DirectoryDestoryer.command
### Corrupt journal and bitmap of a given disk identifier
###
### Copyright (c) 2013 Kevin Ross. All rights reserved.
###
### Redistribution and use in source and binary forms, with or without modification,
@CocoaBeans
CocoaBeans / gdbinit
Created February 21, 2012 21:58
.gdbinit - A user-friendly gdb configuration file
# INSTALL INSTRUCTIONS: save as ~/.gdbinit
#
# DESCRIPTION: A user-friendly gdb configuration file.
#
# REVISION : 7.3 (16/04/2010)
#
# CONTRIBUTORS: mammon_, elaine, pusillus, mong, zhang le, l0kit,
# truthix the cyberpunk, fG!, gln
#
# FEEDBACK: https://www.reverse-engineering.net
@CocoaBeans
CocoaBeans / KRStaticAnalyzerAnnotations.h
Created February 21, 2012 20:05
KRStaticAnalyzerAnnotations.h - Source code notations for the clang static analyser
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///
/// KRStaticAnalyzerAnnotations.h
///
/// The Clang frontend supports several source-level annotations in the form of GCC-style attributes and pragmas
/// that can help make using the Clang Static Analyzer more useful. These annotations can both help suppress
/// false positives as well as enhance the analyzer's ability to find bugs.
///
/// For more info see: http://clang-analyzer.llvm.org/annotations.html
///