Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mfontani
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
32 ms
·
271.
▲
by
mfontani
9y ago
To prevent this, my iTerm2 has a custom background enabled when logged in on any production servers. I wish the same were easily possible on a Linux terminal without much "trickery" :|
272.
▲
Tmux 2.6 is out
(raw.githubusercontent.com)
3 points
by
mfontani
9y ago
|
1 comments
273.
▲
by
mfontani
9y ago
> wget http://packages.microsoft.com/config/ubuntu/16.04/packages-m... http, no gpg key :/
274.
▲
by
mfontani
9y ago
> At the end of a successful login, tsh login command now sends the SSH certificate to an active SSH agent. Will it ever be able to create, and use, a DIFFERENT agent? I use https://github.com/ccontavalli/ssh-ident
275.
▲
by
mfontani
9y ago
https://www.itefix.net/cwrsync is just one rsync (client) for Windows, I'm sure there are more, including the Cygwin one
276.
▲
by
mfontani
9y ago
> lack of good developers that know how to write idiomatic code … and they're getting fewer and fewer by the year, at least for Perl :|
277.
▲
by
mfontani
9y ago
> A good example would be going from "direct DB access" to "global memcache" to "local memcache backed by global memcache" - all without application changes. I strongly disagree: I'd rather debug someth
278.
▲
What Google AMP Means for the JavaScript Community
(molily.de)
2 points
by
mfontani
9y ago
|
0 comments
279.
▲
by
mfontani
9y ago
The whole point of headless, from what I can tell, is that you don't _have_ to!
280.
▲
by
mfontani
9y ago
For the specific thing the OP mentioned, this: $ perl -pi -e 's/MY_NAME/Marco/g' ./*.txt ... would go through all "*.txt" files in the directory, and globally replace the token "MY_NAME&
281.
▲
by
mfontani
9y ago
Perl is great at "mangling input", absolutely. But doing stuff like executing commands with standard output or standard error redirection, with pipes, etc. is something it's not strong at. That's what a shell script is s
282.
▲
by
mfontani
9y ago
The only thing I can add to everyone else's replies is: VERSION IT. This will allow you to write a parser which parses all versions of your log format, whichever such versions are – based on the version… and allow you to amend the log
283.
▲
by
mfontani
10y ago
At $main_work, the reason is that there's a bunch of RewriteRules which last I checked simply couldn't be done by NGINX. OTOH, Apache suffered from the "slow loris" attack, so the whole shebang ended up being nginx sitti
284.
▲
by
mfontani
10y ago
Sure, let's do just that… from the same location in Sydney; origin server hosting the content is in UK. This domain is on their "free" plan, as it gets hardly any traffic. root@sydney:~# ./rg-diag -json https:/&
285.
▲
by
mfontani
10y ago
Yup, and that's why for thereg we started using Cloudflare's Railgun… with it, the connection to the servers (hosted in the UK) is "bearable"… without, it's abysmal: From a VPS in Sydney, with a Good Enough bandwidt
286.
▲
by
mfontani
10y ago
my @validated = grep { is_validated($_) } @items; I'd argue the Perl version is clearer... assuming you know its syntax, that is.
287.
▲
by
mfontani
10y ago
You might want to set a specific user-agent for your crawler
288.
▲
by
mfontani
10y ago
So... what happens when one runs "git grep foo" on it?
289.
▲
by
mfontani
10y ago
The largest Perl project I work on is http://www.theregister.co.uk/ which is mainly Perl on the back-end :)
290.
▲
by
mfontani
10y ago
Perl 5, of course! It's an awesome language and both the language and the ecosystem is getting better and better all the time
291.
▲
by
mfontani
10y ago
Not the only one; in my case the nginx "rewrite rules" aren't as powerful as Apache's, and it'd be a huge PITA to migrate them over… :|
292.
▲
by
mfontani
10y ago
Merging with --no-ff the just-rebased branch would've had the effect of adding a merge commit detailing what branch was indeed merged then.
293.
▲
by
mfontani
10y ago
Precisely correct, rebasing prior to merging ensures the branch about to be merged has no conflicts with the one being merged to, or that conflicts have been fixed in the branch prior to the merge… and merging with --no-ff ensures that the
294.
▲
by
mfontani
10y ago
Yay now it's only missing rebase then merge with --no-ff to be useful to me!
295.
▲
by
mfontani
10y ago
Isn't that what `tee` does, minus the "also displaying on STDOUT" bit?
296.
▲
by
mfontani
10y ago
I'd be wary of "proving one's identity" via (one of) one's SSH key by connecting to an unknown SSH host. The main reason is a (maybe not on HN) little known scenario where the user has SSH key forwarding enabled, an
297.
▲
by
mfontani
10y ago
Push new static content first to all servers/cdn, _then_ bust the CDN cache / push a cache bust
298.
▲
by
mfontani
11y ago
Considering the last distro upgrade had Apache going from 2.2 to 2.4, which introduced considerable changes to the config file format, "upgrading the servers" is not something that can be done in _all_ cases.
299.
▲
by
mfontani
11y ago
$deity no, then I'd have to rebuild servers every year instead every two/three :/
300.
▲
by
mfontani
11y ago
How about https://github.com/ccontavalli/ssh-ident ? Is that still a "best practice", since the author doesn't mention it in this blog entry?
More ›