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
| kly@leia:~/Documents/ansible$ ansible-playbook -i inv/inv -l leia play/basics.yml | |
| ______ | |
| < PLAY > | |
| ------ | |
| \ ^__^ | |
| \ (oo)\_______ | |
| (__)\ )\/\ | |
| ||----w | | |
| || || |
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
| # This is a perfectly good template to get started with Varnish. | |
| # Well behaved sites will get pretty decent results from this, and it | |
| # should work for the vast majority of web sites out there. | |
| # This bit is mandatory. It will say "4.0" even for Varnish 4.1. | |
| # (don't ask) | |
| vcl 4.0; | |
| # This is where your content lives. Adjust it to point at your web server. | |
| backend foo { |
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
| ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDwoUgEC/C7cfNvb9FRL1LMYHgOn8dqMMDeDDpQc2yugqjNfRgsxB/jwJYzruV5rdOQogrJZ9l9H9UIye2A9BvBEPLEhH7jKTUMEuicObh12cA/noxgR5nLTAIgtRhFiksctji0akxyw+GCpPPVAx1ZJJAqXjCeM/9X1h7GmPyP/AJ4/v3cyhAKQMAFzktuAT/7nkxhIIIq5aweGuzEonhAcAg/UeURhlz/IWN8lrkwMXG/W7i18bKnTX9S1sppqd85vnbgnwmB+N8m+c3nydjnTZmUNKSar4JqHDN6o+/6jLA1S1iEVVnekNfaFhuD5GOe+QRTpn0by/wspPE4d8Afqah/MQbvyMIsOR5O/LFA+kCJa/63wRObtxkly/q/MZjESHCikZzCtlJqeDo1TzXVqq7H7voVlbT8mqfTCJE4u3br3mfAqB46gk3TwEqH4cUbj1STiIBcMVGhVP66CG//sY5pqwEaBnJlwY8V47h8VhPiQhEd6D8SIcdP2yRAIT004N69GXTissDgRg5pIGmNWm/b6HLaRrat6YyjrNxFvrqEW03Ha2bPbQNKAgno+hPIaMqCbnu5a6Sz9qmq+xkGAmzTqnh/WmmJQtRtpr0/qB4H/sZAnE+NlpN7DkM5pNfNPm6ZLUJK62x/x2F+psdMFRFhYoEl3UEanjktB3LN3Q== /home/kristian/.ssh/id_rsa |
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
| kly@leia:~$ cat foo.c | |
| #include <stdio.h> | |
| int main(char *b, char **a) | |
| { | |
| b = ((int) b > 1 ? a[1] : "meh" ) -1; | |
| while (*++b || !putchar('\n')) { | |
| putchar(*b > 96 && *b < 123 ? *b - 32 : *b); | |
| }; | |
| } | |
| kly@leia:~$ gcc -Wno-pointer-to-int-cast foo.c |
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
| kly@leia:~$ cat foo.c | |
| #include <stdio.h> | |
| int main(char *b, char **a) | |
| { | |
| b = (int) b > 1 ? a[1] : "meh"; | |
| do { | |
| putchar(*b - 32); | |
| } while (*++b || !putchar('\n')); | |
| } | |
| kly@leia:~$ ./a.out |
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
| #include <stdio.h> | |
| #define peval(f,s) do { \ | |
| printf("%s: " f "\n", #s, (s)); \ | |
| } while(0); | |
| int main() { | |
| peval("%zu", sizeof(size_t)); | |
| peval("%zu", sizeof(long)); | |
| peval("%zu", sizeof(int)); |
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
| $ gcc -O0 foo.c -o test-O0 | |
| $ gcc -O2 foo.c -o test-O2 | |
| $ ./test-O0 | |
| intmax_t x = LONG_MAX; | |
| uintmax_t y = ULONG_MAX; | |
| x > x+1: true | |
| y > y+1: true | |
| $ ./test-O2 |
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
| ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCWf+ATwOK6VTpWEHxOWpEM6fWmWe8+6/eq11bYt1vcLHeZo3yXdWurHkF+EVMdVZFtoGJKr4XY8CICxPVdXb0EWMTTJHkzpQn58/yeT2Jf9u5/QuKShvZLYrNNfkAkmqyGrVJPhhLKZaK9KEoRGjf9esr6jQkBekJRJm9irTB9H3o25abx+pNcoZ3JysiCdbibFilvgT7FmYcEDke9+kq7Utah/qh/vtxmokimPUw7xY79dHG4rm/JAlhloY88ZmLOksTgisSncNOZV7VGx4Qt8xr5MiAEmqHRzA7Y24RWb1QIzBsPAhZ+5+TGgnOcjIHQjWYk2jOSGcjdTJbU+u1b /home/kly/.ssh/id_rsa |
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
| #!/bin/bash | |
| NOW=$(date +%s) | |
| WEEKEND=$(date -d 'friday 16:00:00' +%s) | |
| FRIDAY=$(date -d 'friday 00:00:00' +%s) | |
| DIFF=$(( ${FRIDAY} - ${NOW} )) | |
| DIFFD=$(( ${DIFF} / 86400 )) | |
| DIFFH=$(( (${DIFF} - ${DIFFD}*86400) / 3600 )) | |
| DIFFM=$(( (${DIFF} - ${DIFFD}*86400 - ${DIFFH}*3600) / 60 )) |
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
| root@ara:/srv/chef-server/chef-repo# git diff | |
| diff --git a/chef-repo/cookbooks/bind/recipes/server_flex.rb b/chef-repo/cookbooks/bind/recipes/server_flex.rb | |
| index fde1358..b3dc0d0 100644 | |
| --- a/chef-repo/cookbooks/bind/recipes/server_flex.rb | |
| +++ b/chef-repo/cookbooks/bind/recipes/server_flex.rb | |
| @@ -54,7 +54,7 @@ masters.each do |master| | |
| if not node[:bind][:autodigest].has_key?(master) | |
| node[:bind][:autodigest][master] = { "foo" => "sukk" } | |
| end | |
| - if master[:type] == "" or master[:type] == "forward" |