Skip to content

Instantly share code, notes, and snippets.

View luckymancvp's full-sized avatar

ダン・タイン・トゥー luckymancvp

View GitHub Profile
@luckymancvp
luckymancvp / application.js
Created September 1, 2012 03:12 — forked from tbranyen/application.js
code for organization post
var chat = {
// Create this closure to contain the cached modules
module: function() {
// Internal module cache.
var modules = {};
// Create a new module reference scaffold or load an
// existing module.
return function(name) {
// If this module has already been created, return it.
@luckymancvp
luckymancvp / building.unicorn.cf
Created November 5, 2012 02:46
Unicorn config file
upstream building {
server unix:/tmp/unicorn.sock;
}
server {
listen 80;
root "/home/ec2-user/building";
access_log "/home/ec2-user/building/log/access.log";
error_log "/home/ec2-user/building/log/error.log";
@luckymancvp
luckymancvp / background.html
Created November 9, 2012 09:19
One Of Them APVN Count Down
<html>
<head>
<script src="jquery.min.js"></script>
<script src="notify.js"></script>
</head>
<body>
</body>
</html>

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@luckymancvp
luckymancvp / .gitconfig
Created May 29, 2013 02:30
gitconfig file
[alias]
co = checkout
br = branch
ci = commit
st = status
[color]
diff = auto
status = auto
branch = auto
[format]
sudo su
yum install -y php-devel php-mysql php-pdo php-pear php-mbstring php-cli php-odbc php-imap php-gd php-xml php-soap
yum install -y php-pecl-apc
sudo yum install -y pcre-devel
yum -y install mysql-server mysql
yum install vsftpd
yum install git
service httpd restart
service mysqld restart
@luckymancvp
luckymancvp / date
Created January 17, 2014 09:35
Date Setup
date -s "01/19/2014 00:00:29"
date -s "01/20/2014 12:00:29"
date -s "01/25/2014 00:00:29"
date -s "01/17/2014 17:40:30"
-- ExportSQLite: SQLite export plugin for MySQL Workbench
-- Copyright (C) 2009 Thomas Henlich
-- Edited by luckymancvp to fix insert command with WorkBench
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
guard 'livereload' do
watch(%r{.+\.(css|js|ejs|html)})
end
^(?!installd|PackageManager|GTalkService|WpsStateMachine|jdwp|AndroidRuntime|LockPatternUtils|MTPR|BooksSync|MyEbooksFetcher|MusicSyncAdapter|SurfaceFlinger|Sensors|SensorManager|power|InputDispatcher|BookmarksSync|SyncManager|Quickoffice|ActivityThread|AttachmentService|MediaExtractor|DrmManager|TabletStatusBar|nvos_linux|NuHTTPDataSource|MediaPlayer|FactoryTestPhone|AndroidMusic|DSM|AESCrypto|OrientationDebug|TimedEventQueue|ActivityManager|GpsLocationProvider|GoogleMeeting|DFTRil|DftRil|NvOmx|gcomm|MediaUploader|GooglePlus|MPL-ml|libmpu|AudioPlayer|AudioFlinger|MusicDL|MusicStore|KeepOnScheduler|NetworkMonitor|MusicContent|AsyncCursor|AudioPolicyManager|DBG_WSS|OMX|NuCached|HTTPStream|AwesomePlayer|alsa|AudioHardware|ApplicationStartDetector|DrmManagerClient|MMT|szipinf|ANDROID_DRM|PlayreadyPlugIn|Flx|wpa|vending|UpdateService|Venezia|TelephonyManager|System\.out|Plume|web|ProvisionLog|TLINE|libEGL|OpenGLRenderer|FotaClient|CursorWrapperInner|jykim|WindowManager|PerformBackupThread|Background Updates|Sessi