Skip to content

Instantly share code, notes, and snippets.

View mystix's full-sized avatar

Marc mystix

  • Singapore
View GitHub Profile
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/ext-core/3.1.0/ext-core.js"></script>
<script>
Ext.onReady(function() {
Ext.get("wrapper").on({
drop: function(e) {
e.preventDefault();
var dt = e.browserEvent.dataTransfer,
@mystix
mystix / groovy-daemon
Created December 19, 2010 06:40 — forked from thekindofme/groovy-daemon
run java program as a daemon
#!/bin/bash
#
# Derived from -
# Joshua Davis
# http://shrubbery.mynetgear.net/c/display/W/Java+Daemon+Startup+Script
#
# This is a modification of the original script (which lets you run a java program as a deamon.
# look bellow for more information) that lets you run a groovy script as a deamon.
#
# ============== OLD SCRIPT TEXT ==============
@mystix
mystix / server.sh
Created March 19, 2011 15:37 — forked from mariusv/server.sh
Rackspace Cloud - script for new servers
#!/bin/sh
#
# server.sh
# Author: Marius Voila
# Edited by: marc
# Created: 06/25/2010
# Updated: 19/03/2011
#
# See my blog post on this script: http://mariusv.com/rackspace-cloud-new-server-script
#
@mystix
mystix / Ext.data.proxy.WebDB.js
Created September 11, 2011 05:14 — forked from tuxcanfly/Ext.data.proxy.WebDB.js
Sencha touch proxy for web database
/**
* @author Grgur Grisogono
*
* WebSQL proxy connects models and stores to local WebSQL database.
*
* WebSQL is only available in Chrome and Safari at the moment.
*
* Version: 0.11
*
* TODO: respect sorters, filters, start and limit options on the Operation; failover option for remote proxies, ..
@mystix
mystix / sencha-webdb-example.js
Created September 11, 2011 05:14 — forked from tuxcanfly/sencha-webdb-example.js
Sencha touch proxy for web database: Example
Ext.regModel('Person', {
fields: [
{name: 'name', type: 'string'},
{name: 'age', type: 'int'},
{name: 'phone', type: 'string'},
{name: 'alive', type: 'boolean', defaultValue: true}
],
proxy: {
type: 'websqlproxy',
@mystix
mystix / text-mate-full-screen.sh
Created November 25, 2011 13:22 — forked from gosuri/text-mate-full-screen.sh
text-mate-full-screen.sh
#!/bin/sh
# Install EGO TextMateFullScreen Plugin for TextMate
# Usage : bash <(curl -s https://raw.github.com/gist/1147847/2a312eb2ebf91c3eb04cc15328dc5fa1f064b199/text-mate-full-screen.sh)
git clone https://github.com/enormego/EGOTextMateFullScreen.git /tmp/EGOTextMateFullScreen
/usr/bin/xcodebuild -project /tmp/EGOTextMateFullScreen/EGOTextMateFullScreen.xcodeproj -target EGOTextMateFullScreen
open /tmp/EGOTextMateFullScreen/build/Release/EGOTextMateFullScreen.tmplugin
@mystix
mystix / LICENSE.txt
Created February 10, 2012 15:25 — forked from LeverOne/LICENSE.txt
generate random v4 UUIDs (107 bytes)
DO WTF YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Alexey Silin <pinkoblomingo@gmail.com>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WTF YOU WANT TO PUBLIC LICENSE
@mystix
mystix / Custom.css
Created February 21, 2012 12:02 — forked from chrisgeo/Custom.css
Chrome Custom.css
/**********************************************/
/*
/* IR_Black Skin by Ben Truyman - 2011
/*
/* Based on Todd Werth's IR_Black:
/* http://blog.toddwerth.com/entries/2
/*
/* Inspired by Darcy Clarke's blog post:
/* http://darcyclarke.me/design/skin-your-chrome-inspector/
/*
@mystix
mystix / securing_rails_updates.md
Created March 6, 2012 08:45 — forked from peternixey/securing_rails_updates.md
How Homakov hacked GitHub and how to protect your application

##How Homakov hacked GitHub and the line of code that could have prevented it


Please note: THIS ARTICLE IS NOT WRITTEN BY THE GITHUB TEAM or in any way associated with them. It's simply hosted as a Gist because the markdown formatting is excellent and far clearer than anything I could manage on my personal Tumblr at peternixey.com.

If you'd like to follow me on twitter my handle is @peternixey


@mystix
mystix / etc_init.d_unicorn_example.co.uk
Created March 8, 2012 12:28 — forked from rubysolo/etc_init.d_unicorn_example.co.uk
Ruby on Rails server setup on Ubuntu 11.04 with Nginx, Unicorn, Rbenv
#! /bin/bash
### BEGIN INIT INFO
# Provides: unicorn
# Required-Start: $local_fs $remote_fs $network $syslog
# Required-Stop: $local_fs $remote_fs $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the unicorn web server
# Description: starts unicorn