Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| package main | |
| import ( | |
| "bytes" | |
| "crypto/des" | |
| "errors" | |
| ) | |
| func PKCS5Padding(ciphertext []byte, blockSize int) []byte { | |
| padding := blockSize - len(ciphertext)%blockSize |
| #!/bin/sh | |
| # If you are new to arch, I encourage you to at least read and understand what | |
| # this script does befor blindley running it. | |
| # That's why I didn't make a one-liner out of it so you have an easier time | |
| # reading and understanding it :) | |
| # | |
| # This scripts purpose is purly to save you a few seconds on your new installation. | |
| # | |
| # Enjoy your time on an awesome system. Arch FTW! |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| // Related to https://gist.github.com/tfnico/5926374 | |
| // and http://stackoverflow.com/questions/14464486/guava-input-output-suppliers-and-urlconnection | |
| static final HttpTransport HTTP_TRANSPORT = new NetHttpTransport(); | |
| public void sendMessage(String url, String params){ | |
| final HttpURLConnection connection; | |
| try { | |
| HttpRequestFactory requestFactory = HTTP_TRANSPORT.createRequestFactory(); |
| @echo off | |
| SET st3Path=C:\Program Files\Sublime Text 3\sublime_text.exe | |
| rem add it for all file types | |
| @reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f | |
| @reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_EXPAND_SZ /v "Icon" /d "%st3Path%,0" /f | |
| @reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3\command" /t REG_SZ /v "" /d "%st3Path% \"%%1\"" /f | |
| rem add it for folders | |
| @reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f |