Skip to content

Instantly share code, notes, and snippets.

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

Mark FullStackForger

👾
forging...
View GitHub Profile
@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 / .gitignore
Last active March 30, 2016 04:29 — forked from salcode/.gitignore
Wordpress .gitignore file
# -----------------------------------------------------------------
# Minimalistic .gitignore for WordPress
#
# To get this file rub bellow wget command from project root directory
# wget -O .gitignore https://gist.github.com/indieforger/d915d8b430fef748f966/raw
#
# To ignore uncommitted changes in a file that is already tracked,
# use `git update-index --assume-unchanged`.
#
# To stop tracking a file that is currently tracked,
@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;
@FullStackForger
FullStackForger / TriggerContainerEditor.cs
Created December 10, 2015 09:30 — forked from bzgeb/TriggerContainerEditor.cs
Example Drag & Drop area in a custom inspector for the Unity editor
using UnityEngine;
using System.Collections;
using UnityEditor;
[CustomEditor (typeof(TriggerContainer))]
public class TriggerContainerEditor : Editor
{
private SerializedObject obj;
@FullStackForger
FullStackForger / nodejs-tcp-example.js
Created January 4, 2016 17:40 — forked from tedmiston/nodejs-tcp-example.js
Node.js tcp client and server example
/*
In the node.js intro tutorial (http://nodejs.org/), they show a basic tcp
server, but for some reason omit a client connecting to it. I added an
example at the bottom.
Save the following server in example.js:
*/
var net = require('net');
@FullStackForger
FullStackForger / cors.js
Created January 11, 2016 18:03 — forked from balupton/cors.js
Acheiving CORS via a Node HTTP Server
// Create our server
var server;
server = http.createServer(function(req,res){
// Set CORS headers
res.setHeader('Access-Control-Allow-Origin', '*');
res.setHeader('Access-Control-Request-Method', '*');
res.setHeader('Access-Control-Allow-Methods', 'OPTIONS, GET');
res.setHeader('Access-Control-Allow-Headers', '*');
if ( req.method === 'OPTIONS' ) {
res.writeHead(200);
@FullStackForger
FullStackForger / install-mongodb.sh
Last active February 16, 2016 13:24
Bash script setting up node web server for ubuntu 14.04LT
# install mongodb
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list
sudo apt-get update
sudo apt-get install -y mongodb-org
@FullStackForger
FullStackForger / .gitconfig
Last active March 18, 2016 15:29
GIT Aliases .gitconfig
[core]
legacyheaders = false
quotepath = false
pager = less -r
excludesfile = /Users/Marek/.gitignore
# autocrlf = true #uncomment on windows
[color]
ui = auto
interactive = auto
[alias]
#export REPO="repo-name"
#export LOC="./local/path"
APP_INDEX="index.js"
#APP_PM2="process-name"
source ~/.profile
mkdir -p ${LOC}/${REPO}
rm -Rf ${LOC}/${REPO}-old
mv ${LOC}/${REPO} ${LOC}/${REPO}-old
mv indieforger_${REPO} ${LOC}/${REPO}
@FullStackForger
FullStackForger / test-id-list.json
Last active April 18, 2016 07:25
bit of test json
{ "items": ["id_1","id_3"] }