Skip to content

Instantly share code, notes, and snippets.

View FullStackForger's full-sized avatar
👾
forging...

Mark FullStackForger

👾
forging...
View GitHub Profile
@FullStackForger
FullStackForger / limit.maxproc.plist
Last active August 29, 2015 14:15
Adjusting limit of maximum number of process limits on a system-wide basis
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple/DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>limit.maxproc</string>
<key>ProgramArguments</key>
<array>
<string>launchctl</string>
<string>limit</string>
@FullStackForger
FullStackForger / limit.maxfiles.plist
Created February 11, 2015 13:42
Adjusting open files limits on a system-wide basis
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>limit.maxfiles</string>
<key>ProgramArguments</key>
<array>
<string>launchctl</string>
<string>limit</string>
@FullStackForger
FullStackForger / org.mongodb.mongod.plist
Created February 11, 2015 13:43
Launch daemon configuration file for mongodb startup
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>org.mongodb.mongod</string>
<key>ProgramArguments</key>
<array>
<string>/opt/local/bin/mongod</string>
# Git colors and aliases configuration provided by @rusticode
git config --global color.ui auto
git config --global color.interactive auto
git config --global alias.s status
git config --global alias.r reset
git config --global alias.alias '!git config --list | grep alias | cut -c 7-'
@FullStackForger
FullStackForger / install_php.sh
Created February 12, 2015 01:42
Installing different PHP versions
sudo port install php53 +apache2 +pear php53-apache2handler php53-curl php53-iconv php53-mbstring php53-mcrypt php53-mysql php53-openssl php53-gd php53-uploadprogress php53-pear php53-zip php53-xdebug
sudo port install php54 +apache2 +pear php54-apache2handler php54-curl php54-iconv php54-mbstring php54-mcrypt php54-mysql php54-openssl php54-gd php54-uploadprogress php54-pear php54-zip php54-xdebug
sudo port install php55 +apache2 +pear php55-apache2handler php55-curl php55-iconv php55-mbstring php55-mcrypt php55-mysql php55-openssl php55-gd php55-uploadprogress php55-pear php55-zip php55-xdebug
sudo port install php56 +apache2 +pear php56-apache2handler php56-curl php56-iconv php56-mbstring php56-mcrypt php56-mysql php56-openssl php56-gd php56-uploadprogress php56-pear php56-zip php56-xdebug
sudo port select php php55
sudo port install pear-PEAR
# ~/.profile
# MacPorts PHP PEAR
@FullStackForger
FullStackForger / nginx.conf
Created March 4, 2015 11:47
NginX configuration for NodeJS web app on AWS EC2
events {
worker_connections 768;
# multi_accept on;
}
http {
##
# Basic Settings
##
@FullStackForger
FullStackForger / rc.local
Last active August 29, 2015 14:16
disabling transparent hugepage for MongoDB on Ubuntu
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
/*
* Copyright (c) 2013 Calvin Rien
*
* Based on the JSON parser by Patrick van Bergen
* http://techblog.procurios.nl/k/618/news/view/14605/14863/How-do-I-write-my-own-parser-for-JSON.html
*
* Simplified it so that it doesn't throw exceptions
* and can be used in Unity iPhone with maximum code stripping.
*
* Permission is hereby granted, free of charge, to any person obtaining
@FullStackForger
FullStackForger / .gitignore
Last active August 29, 2015 14:19
.gitignore for Web projects
# Logs and temp files
[Ll]ogs/
[Tt]emp/
*.log
# Runtime data
pids
*.pid
*.seed
@FullStackForger
FullStackForger / PlayerPrefsSerializer.cs
Created December 10, 2015 09:26 — forked from bzgeb/PlayerPrefsSerializer.cs
Player Prefs Serializer
/**
* @file PlayerPrefsSerializer.cs
* @brief Code snippet from UnityForum (http://forum.unity3d.com/threads/72156-C-Serialization-PlayerPrefs-mystery)
* @author mindlube+FizixMan
* @version 1.0
* @date 2012-06-15
*/
using UnityEngine;
using System;