Skip to content

Instantly share code, notes, and snippets.

@Noyabronok
Noyabronok / disable-address1-only.html
Created Jan 29, 2018
example of form where chrome autofill works for all fields except address1
View disable-address1-only.html
<!DOCTYPE html>
<head>
<title>Some Site</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
</head>
<body>
<p>Some other website</p>
<form id="test-form" action="#" autocomplete="disabled">
First Name: <input type="text" name="fname" id="fname-id" autocomplete="given-name"><br/>
Last Name: <input type="text" name="lname" id="lname-id" autocomplete="family-name"><br/>
View gist:15f93580601917c1b8c0937233068c30
$(".js-comment-container.outdated-comment").addClass("open")
@Noyabronok
Noyabronok / jdks.sh
Last active Jan 9, 2018
JDK switching
View jdks.sh
#list available jdks
alias jdks="/usr/libexec/java_home -V"
# jdk version switching - e.g. `jdk 6` will switch to version 1.6
function jdk() {
echo "Switching java version";
export JAVA_HOME=`/usr/libexec/java_home -v 1.$1`;
java -version;
}
export PATH=\$JAVA_HOME/jre/bin:$PATH