Skip to content

Instantly share code, notes, and snippets.

#########################
# .gitignore file for Xcode4 / OS X Source projects
#
# Version 2.0
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects
#
# 2013 updates:
# - fixed the broken "save personal Schemes"
#
# NB: if you are storing "built" products, this WILL NOT WORK,
@dulacp
dulacp / .gitignore
Last active August 29, 2015 14:02
.gitignore for XCode 4/5 with CocoaPods
#########################
# .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
#
# https://gist.github.com/dulaccc/31df7f166a462bf7eacd
#########################
@dulacp
dulacp / aws_s3_user_policy.sh
Created March 22, 2015 19:17
AWS S3 Policy to give access to one user to one bucket
USERNAME="your-username"
BUCKETNAME="my-awesome-bucket-name"
aws iam put-user-policy --user-name $USERNAME --policy-name AmazonS3FullAccess-$USERNAME --policy-document '{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:ListBucket",
@dulacp
dulacp / gist:cb6ba6d0ceeeac7539e7
Created June 5, 2015 14:37
Smooth parallax scrolling
var geometry = {};
geometry.scrollTop = function(win, doc) {
if (win.pageYOffset !== undefined) {
return win.pageYOffset;
} else {
return Math.max(doc.documentElement.scrollTop, doc.body.scrollTop);
}
};
@dulacp
dulacp / sync.sh
Created August 1, 2015 12:10
Synchronize two AWS buckets
aws s3 sync s3://source-bucket s3://destination-bucket --acl=bucket-owner-full-control --source-region <region> --region <destination-region>
@dulacp
dulacp / .gitignore
Created February 13, 2013 23:41 — forked from adamgit/.gitignore
Xcode boilerplate gitignore file
#########################
# .gitignore file for Xcode4 / OS X Source projects
#
# Version 2.0
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects
#
# 2013 updates:
# - fixed the broken "save personal Schemes"
#
# NB: if you are storing "built" products, this WILL NOT WORK,
@dulacp
dulacp / .gitignore
Last active December 22, 2015 15:48 — forked from adamgit/.gitignore
Add CocoaPods rules
#########################
# .gitignore file for Xcode4 / OS X Source projects
#
# Version 2.0
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects
#
# 2013 updates:
# - fixed the broken "save personal Schemes"
#
# NB: if you are storing "built" products, this WILL NOT WORK,
from django import http
try:
from django.conf import settings
XS_SHARING_ALLOWED_ORIGINS = settings.XS_SHARING_ALLOWED_ORIGINS
XS_SHARING_ALLOWED_METHODS = settings.XS_SHARING_ALLOWED_METHODS
XS_SHARING_ALLOWED_HEADERS = settings.XS_SHARING_ALLOWED_HEADERS
XS_SHARING_ALLOWED_CREDENTIALS = settings.XS_SHARING_ALLOWED_CREDENTIALS
except AttributeError:
XS_SHARING_ALLOWED_ORIGINS = '*'
@dulacp
dulacp / Overlay_iOS_app_version_on_icon_README.md
Last active November 19, 2017 11:18
Overlay the iOS application version on top of the icon

Usage

Requirements

Install the two dependencies, ImageMagick and Ghostscript.

$ brew install imagemagick
$ brew install ghostscript
@dulacp
dulacp / keybase.md
Last active November 27, 2017 10:50

Keybase proof

I hereby claim:

  • I am dulacp on github.
  • I am dulaccc (https://keybase.io/dulaccc) on keybase.
  • I have a public key whose fingerprint is 10B3 54B6 F5C5 1E34 6FD9 A800 16C8 459A 0397 834C

To claim this, I am signing this object: