Gitlab exports repositories to tar archive which contains .bundle files.
We have repo.bundle file and we want to restore files from it.
- create bare repo from bundle file
git clone --mirror myrepo.bundle my.git
1. Install user CSS extension (or similar): https://chrome.google.com/webstore/detail/user-css/okpjlejfhacmgjkmknjhadmkdbcldfcb?hl=en | |
2. Apply the following style to news.ycombinator.com | |
.c00, .c00 a:link { color:#000000; } | |
.c5a, .c5a a:link, .c5a a:visited { color:#000000; } | |
.c73, .c73 a:link, .c73 a:visited { color:#000000; } | |
.c82, .c82 a:link, .c82 a:visited { color:#000000; } | |
.c88, .c88 a:link, .c88 a:visited { color:#000000; } | |
.c9c, .c9c a:link, .c9c a:visited { color:#000000; } | |
.cae, .cae a:link, .cae a:visited { color:#000000; } |
# use ImageMagick convert | |
# the order is important. the density argument applies to input.pdf and resize and rotate to output.pdf | |
convert -density 90 input.pdf -rotate 0.5 -attenuate 0.2 +noise Multiplicative -colorspace Gray output.pdf |
Gitlab exports repositories to tar archive which contains .bundle files.
We have repo.bundle file and we want to restore files from it.
git clone --mirror myrepo.bundle my.git
Author: Chris Lattner
package pb | |
import ( | |
"fmt" | |
"reflect" | |
st "github.com/golang/protobuf/ptypes/struct" | |
) | |
// ToStruct converts a map[string]interface{} to a ptypes.Struct |
{ | |
"window.zoomLevel": 0, | |
"go.lintOnSave": "package", | |
"editor.fontFamily": "'Fira Code', Menlo, Monaco, 'Courier New', monospace", | |
"editor.fontLigatures": false, | |
"workbench.iconTheme": "vs-seti", | |
"go.addTags": { | |
"tags": "json", | |
"options": "json=omitempty", | |
"promptForTags": true, |
// @flow | |
function getOptions() { | |
return { num: 42, str: "val" }; | |
// ^ Type of this return is inferred without type annotation. | |
} | |
/*:: | |
// ^ Comments like this are part of Flow's Comment Syntax. | |
// They allow you to include any additional syntax and Flow will parse it |
I recently happened upon a very interesting implementation of popen()
(different API, same idea) called popen-noshell using clone(2)
, and so I opened an issue requesting use of vfork(2)
or posix_spawn()
for portability. It turns out that on Linux there's an important advantage to using clone(2)
. I think I should capture the things I wrote there in a better place. A gist, a blog, whatever.
This is not a paper. I assume reader familiarity with
fork()
in particular and Unix in general, though, of course, I link to relevant wiki pages, so if the unfamiliar reader is willing to go down the rabbit hole, they should be able to come ou