Skip to content

Instantly share code, notes, and snippets.

@Chetan496
Chetan496 / sampleCF.yaml
Created November 13, 2020 15:47
A Cloudformation template which creates a VPC, a private subnet and a public subnet with a EC2 instance inside it
AWSTemplateFormatVersion: 2010-09-09
Description: Create basic Infra with a VPC, a private subnet, and a public subnet with an EC2 instance in it.
Parameters:
EnvironmentPrefix:
Type: String
Default: dev
Description: Prefix for Env Name
VpcBlock:
Type: String
Default: 192.168.0.0/16
@Chetan496
Chetan496 / powerpointFindObjectsName.md
Created March 22, 2017 10:39
Find names given by powerpoint to the objects
  1. Click on Format Menu
  2. Then select "Selection Pane". You will get the list of all objects with their names
@Chetan496
Chetan496 / InspectingAppianAppsPerformance.md
Last active January 19, 2024 04:34
Appian Performance checklist

Points/Questions to investigate the performance

What kind of performance issues? Is it too much of memory consumption, is it page load slow etc.

Performance Issues can be due to application slowness - due to the way the developr has implemented OR it could be due to factors not associated with the implementation

  1. Was Appian health check run on all the applications in the Appian env? Appian Health Check is an automated way to get information about potential issues in the Appian applications.
@Chetan496
Chetan496 / GenerateDynamicDictionary.md
Created January 23, 2017 12:24
generate dynamic dictionary

dynamic dictionary in Appian

a!fromJson(substitute(a!toJson({bgfyubg_89:ri!intCmpntId}), "bgfyubg_89", ri!txtLabel))

@Chetan496
Chetan496 / sql snippets
Last active January 5, 2017 14:16
Find if two tables are containing identical data
SELECT 1 FROM (
SELECT * FROM table1
UNION ALL
SELECT * FROM table2
) t
GROUP BY col1, col2, col3
HAVING count(*) = 1
LIMIT 1
List all the columns in GROUP BY to compare the entire table.
@Chetan496
Chetan496 / commonHowTosInHaskell.md
Last active February 16, 2017 17:30
COmmonHaskellHowTos

Enable multiline input in GHCI

use the command :set +m

Starting the yesod-web minimal template

use the command stack runghc Main.hs

running Stack repl in context of Yesod packages

use the command stack repl

@Chetan496
Chetan496 / instructionsToEnableDebuggingForParticularClassInAppianPlugin.md
Created December 28, 2016 10:23
Enabling Debugging for an appian plugin class
  1. Open the file appian_log4j.properties. This file is somewhere in the <APPIAN_HOME> directory.
  2. Note down the fully qualified name of the Java class in the plugin for which you want the debugging enabled in Application server log.
  3. Now, edit appian_log4j.properties and at the end of the file append extra lines. These lines should contain the fully qualified class name prefixed by log4j.logger
  4. example: log4j.logger.com.myplugins.package.classname=DEBUG. Here, we are specifying that we want DEBUG enabled in the application server log for the given class name
  5. The log will now show the Debug statements. A JBoss restart maybe needed.
@Chetan496
Chetan496 / configForUsingLambdaExpressionInAndroidDev
Created December 18, 2016 09:28
Using lambda expressions in Android projects
To use lambda expressions, you just have to enable the jack toolchain in build.gradle of your module.
Open build.gradle for you app, and configure it as follows:
android {
...
defaultConfig {
...
jackOptions {
enabled true
}
/*An example of uploading a document to the KC */
public void uploadDocumentToAppianKC(
ContentService contentService,
byte[] bytes,
String extFileName,
Long folderId,
String uniqueIdentifier) throws InvalidContentException, StorageLimitException, PrivilegeException,
InsufficientNameUniquenessException, DuplicateUuidException, IOException {
@Chetan496
Chetan496 / ApachePOI.md
Last active December 15, 2016 16:55
Apache POI snippets

/* contains code samples and explanation of apache poi*/

HSLF - Horrible slide layout format

for reading, creating, editing PPT files

OLE - Object linking and Embedding is a proprietary technology by Microsoft which allows embedding and linking to other doucments and objects

OLE allows embedding one document within another