Skip to content

Instantly share code, notes, and snippets.

View enterstudio's full-sized avatar
💭
acting busy- forking;

EnterStudios enterstudio

💭
acting busy- forking;
View GitHub Profile
@enterstudio
enterstudio / settings-liferay.xml
Last active January 16, 2017 13:13 — forked from mstahv/settings.xml
An example of liferay profile
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<profiles>
<profile>
<id>liferay</id>
<properties>
<liferayinstall>/Users/mattitahvonenitmill/Applications/liferay-portal-6.2-ce-ga4</liferayinstall>
<plugin.type>portlet</plugin.type>
handler: () => {
return this.data.load().then(() => {
return alert.dismiss();
}).then(() => {
this.nav.pop();
});
return false;
}
{
"Action On Incoming" : "{\n \"cancelButtonLabel\" : \"Cancel\",\n \"setNewActionConfigLabel\" : \"Set New Action Configuration\",\n \"action1DescriptionLabel\" : \"(e.g. Existing contact sends you sms, you can create case or task using that sms automatically)\",\n \"action2Label\" : \" Action 2 : If senders mobile number is unknown\",\n \"createTaskLabel\" : \"Create Task\",\n \"actionOnIncomingTitleLabel\" : \"Create new action on incoming SMS\",\n \"nameLabel\" : \"Name\",\n \"createCaseLabel\" : \"Create Case\",\n \"createOpportunityLabel\" : \"Create Opportunity\",\n \"saveButtonLabel\" : \"Save\",\n \"doNothingLabel\" : \"Do Nothing\",\n \"createContactLabel\" : \"Create Contact\",\n \"configureActionDescriptionLabel\" : \"When Incoming SMS is received in your org, You can configure following actions,\",\n \"action1Label\" : \"Action 1: If senders mobile number is already stored in some Objects Record\",\n \"helpLabel\" : \"Help for this page ?\",\n \"createLeadLabel\" : \"Create Lead
<html>
<head>
<title>API Example</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript">
var accessToken = "<your agent's client access token>";
var baseUrl = "https://api.api.ai/v1/";
@enterstudio
enterstudio / schema.xml
Created January 26, 2017 03:37 — forked from tuxdna/schema.xml
Apache Solr sample schema configuration
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
@enterstudio
enterstudio / db.pp
Created January 26, 2017 04:20 — forked from ipcrm/db.pp
Oracle 12c Puppet
class profile::oracle::db {
$install_type = hiera('oracle_install_type', 'EE')
$install_version = hiera('oracle_install_version', '12.1.0.2')
$oracle_base = hiera('oracle_base', '/oracle')
$oracle_home = hiera('oracle_home', '/oracle/product/12.1/db')
$ora_data_loc = hiera('oracle_data_loc', '/oracle/oradata')
$ora_rec_area_loc = hiera('oracle_recovery_loc',
'/oracle/flash_recovery_area')
$install_file_prefix = hiera('oracle_install_file_prefix',
'linuxamd64_12102_database')
@enterstudio
enterstudio / multipass.js
Created January 31, 2017 00:04 — forked from tstachl/multipass.js
A multipass example written for Node.js.
var crypto = require('crypto')
// site name is your desk.com subdomain
, siteName = 'site_name'
// api key is generated here: https://your_subdomain.desk.com/admin/channels/support-center/auth_settings
, apiKey = 'multipass_token'
, data = JSON.stringify({
uid: '19238333',
expires: (new Date(Date.now() + 120000)).toISOString(),
customer_email: 'john@example.com',
@enterstudio
enterstudio / nginx.conf
Created January 31, 2017 03:39 — forked from jhass/nginx.conf
Nginx Diaspora reverse proxy. - This is not a complete Nginx configuration! It only shows the relevant parts for integrating Diaspora.
# This is not a complete Nginx configuration! It only shows the relevant parts for integrating Diaspora.
# [...]
http {
# Your standard server configuration goes here
# [...]
gzip_static on;
@enterstudio
enterstudio / caldav.js
Created January 31, 2017 19:23 — forked from piglovesyou/caldav.js
Make CalDAV request to Google Calendar
// Mostly came from https://developers.google.com/google-apps/calendar/quickstart/nodejs
var fs = require('fs');
var readline = require('readline');
var google = require('googleapis');
var googleAuth = require('google-auth-library');
// If modifying these scopes, delete your previously saved credentials
// at ~/.credentials/calendar-nodejs-quickstart.json
var SCOPES = ['https://www.googleapis.com/auth/calendar'];