git checkout -b otherrepo-master mastergit pull https://github.com/otherrepo/my-repo-name.git master| /* This document is for quick ref while learning golang */ | |
| // Allocating Slices | |
| // Using slice literals | |
| // Make a slice of strings | |
| strs := []string{"aaa", "bbb", "ccc", "ddd"} | |
| // Bytes | |
| key := []byte("5e8487e6") | |
| // Declaring a var my_slice for later makeage |
| <?php | |
| /** | |
| * PHP's curl extension won't let you pass in strings as multipart file upload bodies; you | |
| * have to direct it at an existing file (either with deprecated @ syntax or the CURLFile | |
| * type). You can use php://temp to get around this for one file, but if you want to upload | |
| * multiple files then you've got a bit more work. | |
| * | |
| * This function manually constructs the multipart request body from strings and injects it | |
| * into the supplied curl handle, with no need to touch the file system. |
| /** | |
| * Convert a `Map` to a standard | |
| * JS object recursively. | |
| * | |
| * @param {Map} map to convert. | |
| * @returns {Object} converted object. | |
| */ | |
| function map_to_object(map) { | |
| const out = Object.create(null) | |
| map.forEach((value, key) => { |
What are you looking for?
The file name bootmgfw.efi to fix window shjt cannot boot?
This is here for you :D
| import falcon | |
| from falcon import testing | |
| class RedirectorComponent(object): | |
| def process_request(self, req, resp): | |
| raise falcon.HTTPMovedPermanently('http://example.org/foo') | |
| class HelloResource(object): |
| <?php | |
| /** | |
| * deploy.php by Hayden Schiff (oxguy3) | |
| * Available at https://gist.github.com/oxguy3/70ea582d951d4b0f78edec282a2bebf9 | |
| * | |
| * No rights reserved. Dedicated to public domain via CC0 1.0 Universal. | |
| * See https://creativecommons.org/publicdomain/zero/1.0/ for terms. | |
| */ | |
| // random string of characters; must match the "Secret" defined in your GitHub webhook |
| Service | SSL | status | Response Type | Allowed methods | Allowed headers |
|---|
System: Debian/Ubuntu/Fedora. Might work for others as well.
As mentioned here, to update a go version you will first need to uninstall the original version.
To uninstall, delete the /usr/local/go directory by: