- Execute Java with something like:
javac Test.java; java Test
- The comments are valuable feedback in interpreting lines of Java code and understanding what they do
- The output of the program discusses why certain things are occurring, and offers ideas on answering the question
- My (attempt at a) final answer: This is just a defensive programming technique, meant for programmers. It doesn't technically do anything, and is just a "best practice" convention to follow when assigning values to float-typed variables
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
default: | |
clang udp.c -o udp | |
clean: | |
rm udp |
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
diff --git a/async.c b/async.c | |
index 923a329..a3fc05f 100644 | |
--- a/async.c | |
+++ b/async.c | |
@@ -127,8 +127,13 @@ static redisAsyncContext *redisAsyncInitialize(redisContext *c) { | |
ac->ev.delWrite = NULL; | |
ac->ev.cleanup = NULL; | |
- ac->onConnect = NULL; | |
- ac->onDisconnect = NULL; |
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
➜ ~>sudo dd if=/dev/zero of=/dev/sdb bs=4096 | |
[sudo] password for wolf: | |
dd: writing `/dev/sdb': No space left on device | |
244190647+0 records in | |
244190646+0 records out | |
1000204886016 bytes (1.0 TB) copied, 39976.3 s, 25.0 MB/s |
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
name type emb sub uni object ID | |
------------------------------------ ----------------- --- --- --- --------- | |
VKDJWY+NimbusRomNo9L-Medi Type 1 yes yes no 112 0 | |
OCZXCK+NimbusRomNo9L-Regu Type 1 yes yes no 113 0 | |
OQISCG+NimbusMonL-Regu Type 1 yes yes no 114 0 | |
FRNIHB+CMSY8 Type 1 yes yes no 115 0 | |
YDTRWL+NimbusRomNo9L-ReguItal Type 1 yes yes no 116 0 | |
AQTFCU+CMSY10 Type 1 yes yes no 117 0 | |
KUFRRX+CMMI10 Type 1 yes yes no 181 0 | |
AIGLQZ+DejaVuSans CID TrueType yes yes yes 183 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
#!/bin/bash | |
java -jar hyperfind/hyperfind.jar \ | |
/usr/local/share/diamond/predicates:/usr/local/share/diamond/codecs \ | |
/usr/local/share/diamond/filters |
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
grep '128\.\|monsoon\|127\.\|localhost' * -R 2> /dev/null | |
test.txt:128.213.1.15 | |
test.txt:localhost | |
test.txt:monsoon.elijah.cs.cmu.edu | |
test.txt:127.0.0.1 | |
test.txt:127.0.1.1 |
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
78 | |
96 | |
100 | |
114 | |
125 | |
135 | |
163 | |
176 | |
181 | |
193 |
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
sudo strace -p 1238 -r | |
sudo: unable to resolve host test-ceph-bw | |
Process 1238 attached - interrupt to quit | |
0.000000 write(1, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4194304) = 4194304 | |
0.000472 read(0, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4194304) = 4194304 | |
0.622269 write(1, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4194304) = 4194304 | |
0.000211 read(0, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4194304) = 4194304 | |
0.658587 write(1, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4194304) = 4194304 | |
0.000153 read(0, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4194304) = 4194304 |
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
iptables -t filter -I INPUT 1 -p tcp --dport 1928 -j LOG --log-prefix 'gabriel: ' --log-level 4 --log-tcp-sequence | |
# might need to use chain FORWARD, unsure | |
# probably use prefixes to differentiate packets |