/etc/hosts:
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
task:
| $ sudo touch /etc/NetworkManager/dispatcher.d/hotspot.sh | |
| $ sudo chmod +x /etc/NetworkManager/dispatcher.d/hotspot.sh | |
| $ sudo echo '#!/bin/bash | |
| IF=$1 | |
| STATUS=$2 | |
| if [ "$STATUS" = "up" ] && [ "$IF" = "wlan0" ]; then | |
| curl -d "param1=value1¶m2=value2" http://example.com/resource.cgi | |
| fi' > /etc/NetworkManager/dispatcher.d/hotspot.sh |
| <?php namespace Laravel\Database\Eloquent; | |
| use Laravel\Str; | |
| use Laravel\Event; | |
| use Laravel\Database; | |
| use Laravel\Database\Eloquent\Relationships\Has_Many_And_Belongs_To; | |
| abstract class Model { | |
| /** |
| <?php | |
| class OutOfSerialsException extends Exception {} | |
| function next_bind_serial($serial) { | |
| $today = date("Ymd"); | |
| for ($i = 0; $i < 100; $i++) { | |
| $new_serial = $today.sprintf("%02d",$i); | |
| if ($serial < $new_serial) { |
| #!/bin/bash | |
| sp="⣾⣽⣻⢿⡿⣟⣯⣷" | |
| sp="⠁⠂⠄⡀⢀⠠⠐⠈" | |
| #sp="◢ ◣ ◤ ◥" | |
| #sp="▉▊▋▌▍▎▏▎▍▌▋▊▉" | |
| #sp="▁ ▃ ▄ ▅ ▆ ▇ █ ▇ ▆ ▅ ▄ ▃" | |
| progressbar () { | |
| local processed=$1 |
| <?php | |
| class Base extends Eloquent { | |
| /** | |
| * @var | |
| */ | |
| public static $timestamps = true; | |
| /** |
| --- | |
| - hosts: localhost | |
| connection: local | |
| gather_facts: no | |
| remote_user: root | |
| tasks: | |
| - name: test add a record | |
| host: hostname=foobar ip=192.168.123.1 | |
| register: result | |
| failed_when: not result.changed |
| #!/bin/bash | |
| OK=0 | |
| WARNING=1 | |
| CRITICAL=2 | |
| UNKNOWN=3 | |
| domain=$1 | |
| if [[ -z "$domain" ]] |
I hereby claim:
To claim this, I am signing this object:
| Host 10.100.9.* 10.100.209.* | |
| User root | |
| IdentityFile ~/.ssh/id_rsa_cloudstack | |
| StrictHostKeyChecking no | |
| ProxyCommand ssh -q -o ControlPersist=no cloudstack-mgmt.example.com -W %h:3922 |