This file contains 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 [formGroup]="form"> | |
<input | |
type="checkbox" | |
[ngModel]="!form.get('myControl').value" | |
(ngModelChange)="form.get('myControl').patchValue(!$event)" | |
[ngModelOptions]="{standalone: true}" | |
> | |
</form> |
This file contains 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
docker rmi $(docker images -a | grep "^<none>" | awk '{print $3}') |
This file contains 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
<select> | |
<option value="AF">Afghan</option> | |
<option value="AL">Albanian</option> | |
<option value="DZ">Algerian</option> | |
<option value="AS">American Samoan</option> | |
<option value="AD">Andorran</option> | |
<option value="AO">Angolan</option> | |
<option value="AI">Anguillan</option> | |
<option value="AG">Antiguan, Barbudan</option> | |
<option value="AR">Argentine</option> |
This file contains 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
ssh-agent -s | |
eval "$(ssh-agent -s)" | |
ssh-add ~/.ssh/id_rsa |
This file contains 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
{ echo -ne "HTTP/1.0 200 OK\r\nContent-Length: $(wc -c <index.html)\r\n\r\n"; cat index.html; } | nc -l 8080 |
This file contains 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
Exec { path => [ '/bin/', '/sbin/' , '/usr/bin/', '/usr/sbin/'] } | |
exec { "install_git": | |
command => "apt-get install -y git-all", | |
} | |
class { 'apt': | |
update => { | |
frequency => 'always', | |
}, |
This file contains 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
forge "https://forgeapi.puppetlabs.com" | |
mod 'puppetlabs-apt' |
This file contains 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
#!/bin/sh | |
# Check the received options in order to set up some variables | |
PREFER_PACKAGE=1 | |
while getopts ":g" opt; do | |
case $opt in | |
g) | |
echo "Using the gem installer" | |
PREFER_PACKAGE=0 | |
;; |
This file contains 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
Exec { path => [ '/bin/', '/sbin/' , '/usr/bin/', '/usr/sbin/'] } | |
exec { "install_git": | |
command => "apt-get install -y git-all", | |
require => [ Exec['apt_update'] ], | |
} | |
exec { "apt_update": | |
command => "apt-get update", | |
} |
This file contains 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
#!/usr/bin/env bash | |
apt-get update | |
apt-get install -y git-all |
NewerOlder