Skip to content

Instantly share code, notes, and snippets.

View ilmsg's full-sized avatar
😍
love me love my bug

Eak Netpanya ilmsg

😍
love me love my bug
View GitHub Profile
@ilmsg
ilmsg / .gitignore
Created February 12, 2014 10:37 — forked from Jxck/.gitignore
node_modules
var LINE = require('./line.js');
var line = new LINE();
var email = 'your email';
var password = 'your password';
line.login(email, password, function(error, result) {
if (error) {
return;
}
Ext.Date.fuzzy = function(time, local){
(!local) && (local = Date.now());
if (typeof time !== 'number' || typeof local !== 'number') {
return;
}
var
offset = Math.abs((local - time)/1000),
var mysql = require('mysql');
var connection = mysql.createConnection({
host : 'localhost',
user : 'node-test',
password : '',
database : 'node_test'
});
exports.open = function (callback){
connection.connect(function(err){
* ry/node
* ry/node_chat
* ry/node_docs
* Connorhd/node_debug
* extjs/Connect
* jcoglan/faye
* Sannis/node-mysql-libmysqlclient
* creationix/wheat
* felixge/node-formidable
* LearnBoost/mongoose
//author: lsauer.com 2012, CC-BY-SA
//description: Fullscreen consoles were common until the last few years.
// Currently Windows XP, and Windows Vista, Windows 7’s Safe Mode allow fullscreen console mode.
// The reason is that the current display driver model does not support VGA text mode programs.
using System;
using System.IO;
using System.Collections.Generic; //for dictionary
using System.Runtime.InteropServices; //for P/Invoke DLLImport
class App

Vagrant Setup

This tutorial guides you through creating your first Vagrant project.

We start with a generic Ubuntu VM, and use the Chef provisioning tool to:

  • install packages for vim, git
  • create user accounts, as specified in included JSON config files
  • install specified user dotfiles (.bashrc, .vimrc, etc) from a git repository

Afterwards, we'll see how easy it is to package our newly provisioned VM

@ilmsg
ilmsg / java.pp
Created April 18, 2014 06:04 — forked from hameno/java.pp
class java {
class { 'apt': }
# Add PPA
apt::ppa { 'ppa:webupd8team/java': } ->
# Prepare response file
file { "/tmp/oracle-java7-installer.preseed":
source => 'puppet:///modules/java/java.response',
mode => 600,
backup => false,
} ->
package rss
import "encoding/xml"
type Channel struct {
XMLName xml.Name `xml:"channel"`
Title string `xml:"title"`
Description string `xml:"description"`
Link string `xml:"url"`
LastBuildDate string `xml:"lastBuildDate"`