Skip to content

Instantly share code, notes, and snippets.

View identor's full-sized avatar
🌴
On vacation

Irvin Denzel Torcuato identor

🌴
On vacation
View GitHub Profile
@identor
identor / designer.html
Created August 1, 2014 14:24
designer
<link rel="import" href="../components/polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
@identor
identor / EmployeeCrud.js
Last active August 29, 2015 14:15
Recipe for Employee CRUD methods.
/* Get: all */
Employee.query(
function success(employees, httpResponse) {},
function error(error) {}
);
/* Query specify parameter. Resoves to /api/employees?firstName=Irvin123 */
Employee.query({firstName: 'Irvin123'}, function success(data) {
console.log(data);
});
@identor
identor / beaver.conf
Last active August 29, 2015 14:15
Basic Apache httpd configuration for Beaver.
<VirtualHost beaver.localhost:80>
ProxyPreserveHost Off
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
<Location />
@identor
identor / chatserver.js
Created March 23, 2015 11:22
Share ko lang po sa mga nag aaral ng JavaScript. Pwede din kayo mag Socket programming (NodeJS), eto multi client chat server.
var net = require('net');
var clients = [];
net.createServer(function (socket) {
clients.push(socket);
socket.write('Who are you? ');
socket.on('data', function (message) {
if (!socket.chatname)
return socket.chatname = message.toString().trim();
clients.forEach(function (client) {
@identor
identor / vici_install.md
Last active April 26, 2025 17:16
Guide: Vici Dial Installation

Vici Dial Installation Guide

This guide shows a simple Vici Dial installtion on a debian6_x64 droplet in Digital Ocean.

Create the Droplet

General Guidelines:

  • Create the Droplet by selecting Create Droplet in the Droplet's UI.
  • Select the 64 bit image of debian 6.

Dependency installation

We need to install all dependencies before proceeding to install the astguiclient.

@identor
identor / CONTRIBUTING.md
Last active August 29, 2015 14:22
General Coding Guidelines

Summary

This document serves as a guide to contributing in the admin project.

SQL

Since we have used MySQL for our database component. A scheme for naming things in MySQL has been developed, we follow this general guidelines:

  • Table names should be words in their noun form.
  • Table names should be pluralized.
  • Table names containing multiple words should be separated with the underscore character _.
  • Every table should contain an id column, which serves as the Surrogate key.
  • Pivot tables should be named as follows: the first table name is determined alphabetically, it should be appended with an underscore and the pluralized second table's name. Ex. pivot table for students and courses: course_students.
@identor
identor / Summary.md
Last active February 3, 2017 04:34
Deployment Test with simple auto deployment server update by git push.

Deployment Summary

Deployment summary, all commands are tested in debian 8.1 x64. The new user to be created will be deploy under the host yourhost-here.

Create new user for deployment

Access the root user's shell. Note that the adduser command will prompt for a password, enter a new password and remember it.

apt-get install sudo -y
adduser deploy
gpasswd -a deploy sudo
@identor
identor / Initial configurations.md
Last active February 6, 2023 16:28
Git deployment in Centos 7

General

Created a user named git, this shall function as the user where git repos are put into. The git repos in the home directory of the user are supposed to be bare repositories. To initialize a repository issue the command:

git init --bare <site-name>.git

Create new site script for host

#!/bin/bash
@identor
identor / _gvimrc.vim
Last active April 22, 2017 15:01
Windows Vim config
" Recommended settings
set clipboard=unnamed
set nocompatible
" Syntax and plugin settings
filetype plugin indent on
syntax enable
set nowrap
set list
+----+--------------------+
| id | quantity_text |
+----+--------------------+
| 1 | 250mg;500mg |
| 2 | 500mg/vial |
| 3 | 125mg/5mL;250mg/mL |
| 4 | 500mg |
| 5 | 250mg;500mg |
+----+--------------------+