Note: spaces and casing matter, always!
Unless otherwise stated, all commands are executed against a GNU/Linux OS.
| #!/bin/bash | |
| # Setup a cron job to check on your servers every 5 minutes. # | |
| # # | |
| # crontab -e # | |
| # */5 * * * * /path/to/checkServers.sh # | |
| # # | |
| #!/bin/bash | |
| cryptsetup luksOpen /dev/sdb external | |
| mount /dev/mapper/external /external |
| <!-- | |
| A useful keyboard shortcut. Below is an example of ctrl+`+1 | |
| { "keys": ["ctrl+`", "ctrl+1"], "command": "insert_snippet", "args": {"name": "Packages/User/HTML.sublime-snippet"} } | |
| --> | |
| <snippet> | |
| <content><![CDATA[ | |
| <!DOCTYPE html> | |
| <!--[if lt IE 7]> <html lang="en-US" class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> | |
| <!--[if IE 7]> <html lang="en-US" class="no-js lt-ie9 lt-ie8"> <![endif]--> | |
| <!--[if IE 8]> <html lang="en-US" class="no-js lt-ie9"> <![endif]--> |
| <?php | |
| foreach(PDO::getAvailableDrivers() as $driver) { | |
| echo "$driver, "; | |
| } | |
| // EOF |
| git config --global alias.conflicts "diff --name-only --diff-filter=U" |
| // Separate Object into key and value arrays | |
| var obj = {'a': 7, 'b': 8, 'c': 9}; | |
| var k = Object.keys(obj); // [a, b, c] | |
| var v = k.map(function(k, i) { return obj[k]; }); // [7, 8, 9] |
| // Mozilla | |
| function reqListener () { | |
| console.log(this.responseText); | |
| } | |
| var oReq = new XMLHttpRequest(); | |
| oReq.onload = reqListener; | |
| oReq.open('get', 'yourFile.txt', true); | |
| oReq.send(); |
| # | |
| # Automatically generated file; DO NOT EDIT. | |
| # Linux/x86 3.18.26-docker Kernel Configuration | |
| # | |
| CONFIG_64BIT=y | |
| CONFIG_X86_64=y | |
| CONFIG_X86=y | |
| CONFIG_INSTRUCTION_DECODER=y | |
| CONFIG_PERF_EVENTS_INTEL_UNCORE=y | |
| CONFIG_OUTPUT_FORMAT="elf64-x86-64" |
I hereby claim:
To claim this, I am signing this object: