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
| local function degrees(radians) | |
| return radians * 180 / math.pi | |
| end | |
| io.write("Height of the pole: ") | |
| local height = io.read("*n") | |
| io.write("Length of the shadow: ") | |
| local wide = io.read("*n") |
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
| local initial_velocity, time, gravity, height; | |
| -- The gravitational acceleration of the Earth is 9.80665 m/s². | |
| gravity = 9.80665; | |
| io.write("Initial acceleration of the object: "); | |
| initial_velocity = io.read("*n"); | |
| io.write("Times the object is dropped from a height: "); | |
| time = io.read("*n"); |
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
| #!/usr/bin/env php | |
| <?php | |
| if ($argc < 3) { | |
| echo sprintf('%s <domainList> <domain/ip>%s', $argv[0], PHP_EOL); | |
| exit(1); | |
| } | |
| /** | |
| * ValidateDomainOrIp |
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> | |
| void call(void(*ptr)()) { | |
| ptr(); | |
| } | |
| void printString() | |
| { | |
| printf("Hello\n"); | |
| } |
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 AAAAB3NzaC1yc2EAAAADAQABAAACAQCZBvzPGCDLur81+X7K/DyvTb9UIHRiSSVrDX7m0sox9aK60SkWKItbGhsdTJcssUhf02KuMmZAAh9ZQ48SCSUNM7sZUzm0wt0EkOdvple7wPW6Linagx0V6MoU5/xkk62+XzVn8OMJpf0YoJyN5WRHe6iMo2wQZe9AnfZLqO+jd73iD3BPrHfCnkoCQ6pl4lgeBBHZaYKsxBU8W3beHTS3zpyleiqp0bSn3k4iYklB6dHLNSgmOICisCx0LO8sv1F2f+2TQYsLO5zBqNEiN8RFX69Ha/Ptjwq/DcF0hZhabV8oIMC7UNHRzdEJLN6jOL12nLE5UNzsw7tRCs+HQIZoEMFWj4Urn5Aiy0SSUAMGW/vKKFOaK9jrd4yvD1bTuKuh5nAgi1MsFmmxzj7jHLkOIl1kJZKTbb8hIxPcc9mgL9KGNiVZlxEHmKyZvGkpnpuGnRE2+6Xw6dc3HTuPQ0Bvp+R6Vs9Ojw1qUd8WNb4fv6bD/DgsR9E90vufWQGfl33t8i/8LRKXYMOj/3aux1up0hhjeOu7DRp2koTjj1MqBu5nt64g2mdutjKOXhSbvQgWTJVG0qWbnOAT4dNnGUGxfL1REpi/D2J2bmsnAjeOHxSrPpMIfN2bFgJKZLVnIOrwl/BIo3DLYnbB28vVedgdumMinnpQgtLTc3LIwfGLiQ== [email protected] |
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
| uint8_t 1byte | |
| uint16_t 2bye | |
| uint32_t 4byte | |
| unsigned int 4byte | |
| uint64_t 8byte | |
| uintptr_t Unsigned integer of size equal to a pointer on 32bit machine 4byte on 64bit machine 8byte | |
| unsigned means no negative number | |
| signed means can hold both |
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> | |
| int main(){ | |
| int a = 1; | |
| int *b = &a; | |
| printf("addr of B is %p value of B is %p (which is address of pointer A: %p) so *B will have value of %d\n",&b, b, &a, *b); | |
| return 0; | |
| } |
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
| #!/usr/bin/bash | |
| # NEW state matches a packet creating a new connection or is part of a two-way connection that has not seen packets in both directions. | |
| # ESTABLISHED his state indicates that the packet’s linked to a connection that has seen packets in both directions. | |
| # RELATED state means that the packet’s starting a new connection, but is associated with an existing connection. | |
| # Reset all chains | |
| iptables -F | |
| iptables -X LOGGING |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> | |
| <url> | |
| <loc>http://xxxxx</loc> | |
| <lastmod>2011-12-06T17:38:21+00:00</lastmod> | |
| <priority>1</priority> | |
| <changefreq>weekly</changefreq> | |
| </url> | |
| </urlset> |
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
| [ | |
| "/var/log/apache/access.log", | |
| "/var/log/apache/error.log", | |
| "/usr/local/apache/log/error_log", | |
| "/var/log/httpd/access_log", | |
| "/var/log/httpd/access.log", | |
| "/var/log/httpd/error_log", | |
| "/var/log/httpd/_error_log", | |
| "/var/log/httpd/_access_log", | |
| "/etc/httpd/conf/logs/error_log", |