This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form> | |
<input type="radio" id="test" name="test" value="0" oninvalid="this.setCustomValidity('Click me')" onclick="clearValidity();" required>Zero<br> | |
<input type="radio" name="test" value="1" onclick="clearValidity()" class="wrapper">One <br> | |
<input type="radio" name="test" value="2" onclick="clearValidity()" class="wrapper">Two <br> | |
<input type="submit"> | |
</form> | |
<script> | |
function clearValidity(){ | |
document.getElementById('test').setCustomValidity(''); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
su | |
# ivann + general | |
mkdir /root/.ssh | |
curl --silent https://github.com/yelizariev.keys | xargs echo -n >> /root/.ssh/authorized_keys | |
echo -ne " [email protected]\n" >> /root/.ssh/authorized_keys | |
sed -i 's/PermitRootLogin no/PermitRootLogin without-password # changed by Ivan Yelizariev from value "no"/' /etc/ssh/sshd_config |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Забираем репо - https://github.com/burkostya/terraform-provider-vscale | |
2. Собираем все зависимости для проекта (да, я не знал как сделать это автоматически в go, потому собрал руками). | |
3. Собираем провайдер - go build github.com/terraform-providers/terraform-provider-vscale | |
4. Кладем провайдер в нужный каталог - mv terraform-provider-vscale ~/.terraform.d/plugins | |
5. Выполнив terraform init удостоверимся, что с провайдером все ОК. | |
6. Пойдем на vscale.io и создадим токен. | |
7. Напишем тестовый конфиг для terraform и проверим работу провайдера. | |
provider "vscale" { | |
token = "%VSCALE_TOKEN%" |