Skip to content

Instantly share code, notes, and snippets.

View peterkc's full-sized avatar

Peter Chanthamynavong peterkc

View GitHub Profile
# (<type>): <subject>
# <body>
# <footer>
# <type> should be one of the following:
#
# Fix - for a bug fix.
@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
/**
* {@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 / .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
@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
{
"permissions": {
"allow": [
"Read(**)",
"Edit(**)",
"MultiEdit(**)",
"Write(**)",
"Glob(**)",
"Grep(**)",
"LS(**)",
@peterkc
peterkc / settings.json
Last active November 2, 2025 20:09 — forked from ljw1004/you_are_not_right.sh
A UserPromptSubmit hook for Claude Code to stop it saying "You're right"
{
"hooks": {
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "$CLAUDE_PROJECT_DIR/.claude/hooks/you_are_not_right.sh"
}
]