Skip to content

Instantly share code, notes, and snippets.

@peterkc
peterkc / IntelliJ_IDEA__Perf_Tuning.txt
Created March 28, 2022 14:25 — forked from P7h/IntelliJ_IDEA__Perf_Tuning.txt
Performance tuning parameters for IntelliJ IDEA. Add these params in idea64.exe.vmoptions or idea.exe.vmoptions file in IntelliJ IDEA. If you are using JDK 8.x, please knock off PermSize and MaxPermSize parameters from the tuning configuration.
-server
-Xms2048m
-Xmx2048m
-XX:NewSize=512m
-XX:MaxNewSize=512m
-XX:PermSize=512m
-XX:MaxPermSize=512m
-XX:+UseParNewGC
-XX:ParallelGCThreads=4
-XX:MaxTenuringThreshold=1
@peterkc
peterkc / .git-commit-template
Last active April 23, 2017 00:35 — forked from adeekshith/.git-commit-template.txt
This commit message template that helps you write great commit messages and enforce it across your team.
# <type>: (If applied, this commit will...) <subject> (Max 50 char)
# |<---- Using a Maximum Of 50 Characters ---->|
# Explain why this change is being made
# |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->|
# Provide links or keys to any relevant tickets, articles or other resources
# Example: Github issue #23
/**
* {@see textbox role}
* {@link https://www.w3.org/TR/html-aria/}
* {@link https://www.w3.org/TR/wai-aria/roles#textbox}
* {@link https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_textbox_role}
*/
.directive('input', function(spAriaUtil) {
function link($scope, $element, attr) {
var role;
switch (attr['type']) {
@peterkc
peterkc / idea64.exe.vmoptions
Created June 13, 2016 21:53 — forked from edwardbeckett/idea64.exe.vmoptions
Java 8 Intellij 64 JVM Options
-server
-Xms2g
-Xmx2g
-Xss16m
-XX:+UseConcMarkSweepGC
-XX:+CMSParallelRemarkEnabled
-XX:ConcGCThreads=4
-XX:ReservedCodeCacheSize=128m
-XX:+AlwaysPreTouch
-XX:+TieredCompilation
# (<type>): <subject>
# <body>
# <footer>
# <type> should be one of the following:
#
# Fix - for a bug fix.
@peterkc
peterkc / toolbar.cson
Last active August 29, 2015 14:27
Use this config with the flex-tool-bar plugin for tool-bar
[
{
type: "url"
icon: "calendar"
url: "https://www.google.com/calendar/render?tab=wc#main_7"
tooltip: "Google Calendar"
}
{
type: "spacer"
style: {
@peterkc
peterkc / toolbar.cson
Created August 19, 2015 21:17
Use this config with the flex-tool-bar plugin for tool-bar
[
{
type: "url"
icon: "octoface"
url: "https://github.com/peterkc"
tooltip: "Github Page"
}
{
type: "url"
icon: "link"

This is a short article on how we integrate stash and slack in openmind

First of all i assume you have:

  • a working stash installation
  • a repository you to notify slack on pushes
  • stash user with administration priviledges
  • full access to the server (linux) where stash is installed on
  • a team configured on slack
  • slack user with administration priviledges

Keybase proof

I hereby claim:

  • I am peterkc on github.
  • I am peterkc (https://keybase.io/peterkc) on keybase.
  • I have a public key whose fingerprint is 5521 24A1 2988 F388 A8D1 EFB3 40F8 0F23 FACF 3553

To claim this, I am signing this object:

@peterkc
peterkc / async.copy.js
Last active August 29, 2015 14:12 — forked from Floby/async.copy.js
#!/usr/bin/env node
var fs = require('fs');
var async = require('async');
async.parallel([
copyFile.bind(null, 'resources/file1.txt', 'resources/file1_copy.txt'),
copyFile.bind(null, 'resources/file2.txt', 'resources/file2_copy.txt'),
copyFile.bind(null, 'resources/file3.txt', 'resources/file3_copy.txt')
], function (err, results) {