#arpnetworks 2015-10-23,Fri

↑back Search ←Prev date Next date→ Show only urls(Click on time to select a line by its url)

WhoWhatWhen
mercutiomercutio didn't know that and has used vi forever
oh mine says that by default
i know what mode i'm in anyway
oh vim experts, does anyone know how to cut and paste code from elsewhere into vim without using "set noai"
and then changing back to "set ai"
[00:30]
.... (idle for 15mn)
mike-burnsmercutio: pastetoggle. [00:46]
mercutioi've been googling
and running around in circles not getting anywhere
[00:46]
mike-burnsThere's also a clever plugin that I cannot find right now. [00:47]
mercutiosome things say you can toggle with F2 or such
but i use F2 to open a new terminal
[00:47]
mike-burns> googling
:h 'pastetoggle'
:set pastetoggle=<F9> " press F9 before pasting, press it again after.
[00:48]
mercutiohmm
yeah that works
i'd rather it be automagic
mercutio adds it to vimrc anyway
[00:49]
mike-burnsThere's a plugin that will detect clipboard start/end codes and automatically pastetoggle for you, but I can't find it now.
https://coderwall.com/p/if9mda/automatically-set-paste-mode-in-vim-when-pasting-in-insert-mode - this.
[00:50]
mercutiowoot it works!
i tried it on itself
thanks so much
it had been bugging me for years
so nice!
[00:51]
............ (idle for 59mn)
up_the_ironsholy. fuck. [01:51]
BryceBotThat's what she said!! [01:51]
up_the_ironshahahaa
that's awesome
I always manually did it with F11
[01:51]
.... (idle for 16mn)
mnathani_traceroute6 2001:550:0:1000::9a18:231d doesn't work on devio.us I guess its not connected to the entire IPv6 Internet, rather just the He.net connected subset [02:07]
brycecNot sure I understand [02:09]
BryceBotThat's what she said!! [02:09]
brycecWhat do you mean it doesn't work?
Like, at all?
the command dies etc?
fwiw I can't traceroute that from my home connection
Oh, HE won't route to Cogent, is that what's happening?
*HE IPv6 tunnels
[02:10]
***dwarren has quit IRC (Read error: Connection reset by peer)
dwarren has joined #arpnetworks
hive-mind has quit IRC (Ping timeout: 265 seconds)
jpalmer has quit IRC (Ping timeout: 265 seconds)
jpalmer has joined #arpnetworks
hive-mind has joined #arpnetworks
[02:23]
........ (idle for 37mn)
dj_goku has joined #arpnetworks
lteo_ has joined #arpnetworks
meingtsil has joined #arpnetworks
hive-mind has quit IRC (Disconnected by services)
hive-mind has joined #arpnetworks
grody has joined #arpnetworks
toddf has joined #arpnetworks
ChanServ sets mode: +o toddf
hycer- has joined #arpnetworks
jpalmer has quit IRC (*.net *.split)
ydorg has quit IRC (*.net *.split)
joepie91_ has quit IRC (*.net *.split)
toddf_ has quit IRC (*.net *.split)
meingtsla has quit IRC (*.net *.split)
dj_goku_ has quit IRC (*.net *.split)
hycer has quit IRC (*.net *.split)
trobotham-cloud has quit IRC (*.net *.split)
lteo has quit IRC (*.net *.split)
meingtsil is now known as meingtsla
joepie91_ has joined #arpnetworks
jpalmer has joined #arpnetworks
[03:02]
trobotham-cloud has joined #arpnetworks [03:19]
.................................................................... (idle for 5h39mn)
hycer- is now known as hycer [08:58]
......... (idle for 41mn)
milki_ is now known as milki [09:39]
........................ (idle for 1h59mn)
mnathani_yea he.net / cogent ipv6 connectivity [11:38]
.... (idle for 15mn)
meingtslaWhat connectivity? :)
(Yeah, I realize that's exactly your point)
[11:53]
.... (idle for 15mn)
brycecHow come, any idea? Can't say as I've noticed any loss of ipv6 websites due to it...
wow, seems to be a loooong running peering dispte, google results back to 2009
http://www.datacenterknowledge.com/archives/2009/10/22/peering-disputes-migrate-to-ipv6/ lol
[12:08]
.............. (idle for 1h8mn)
mercutioso with cogent doing that what's to stop people going further?
like cogent could block russia because they don't like russians (say)
cogent customers should make lots of noise about it, but that's about all that can happen?
[13:18]
brycecI'm surprised it's gone on as long as it has. I guess most customers/ISPs work around it with multiple peerings.
If they didn't have that option, then everybody would (logically) abandon Cogent.
But nobody does that, they just keep living with their redundant multiple peerings and work around the issues.
(or never even realize there's an issue, like me)_
[13:24]
***mnathani_ has quit IRC (Ping timeout: 250 seconds) [13:33]
mnathani_ has joined #arpnetworks [13:39]
mercutiowhenever i check ebay tracking history they seem to send me an e-mail with updates.
i suspect it triggers updates when you look at it
i've heard multiple times that cogent is better than it used to be.
but i have my doubts/suspicions. "better" might just mean cheaper.
[13:43]
brycecI've been hearing that too, specifically better quality links. But in light of this pathetic feud, they're back on my shit list. [13:50]
mnathani_I wonder if they include that in contracts; ie he.net connects to the IPv6 internet except for cogent and its single homed customers and vice versa [14:00]
mercutioi don't think it belongs in contracts [14:01]
brycecMore likely contracts state "we'll connect you to our peers" nice and generic
Can't be updating thousands of contacts every time they add or remove peers
[14:04]
mnathani_removing a peer is fine as long as they have transit to reach said peer
this he.net issue creates ipv6 islands
[14:05]
mercutiomnathani_: things can fall back on ipv4 though
you can't actually be single homed on ipv6 yet and expect the internet to work normally
[14:06]
mnathani_as both providers are striving to attain tier 1 status [14:06]
mercutiolike google has ipv6 - but they don't have ipv6 name servers [14:06]
mnathani_I guess you can as long as that single homed network is neither he.net nor cogent [14:07]
mercutiogoogle's name servers aren't even close to here.
it's a constant rather than random thing
so if you want to ssh to someone with ipv6 on cogent from he.net tunnel you can't.
like to get to individual servers.
that's one of the ipv6 use cases i hear the most atm that actually matters.
i mean having web sites and e-mail and so on with dual stack doesn't actually require ipv6..
there are things like ipv6 reducing cgnat, .. with some mobile providers moving to cgnat to free up ip address space.
but again if you can't reach ipv6 destination then it'll just fallback
[14:07]
mnathani_464xlat seems promising for mobile as well [14:11]
mercutioapparently nat is very common in china [14:11]
mnathani_rather 646xlat? [14:11]
mercutiowhich explains how APNIC can get away with having so little IP's for so much population [14:11]
***lteo_ is now known as lteo [14:16]
brycecThey do, actually 2001:4860:4860::8888 and 8844 https://developers.google.com/speed/public-dns/docs/using?hl=en 14:04:01 mercutio | like google has ipv6 - but they don't have ipv6 name servers [14:22]
mercutioi mean for authorative [14:23]
mnathani_I think they have not yet worked out geolocation databases using IPv6 as yet [14:24]
mercutioahh mnathani_ [14:25]
mnathani_also a lot of broken IPv6 configs out there [14:25]
brycecThat's the fun thing about tunelled ipv6 and geolcation - Google assumes I'm in the city of my POP and not 5 hours east. [14:28]
mercutiogoogle picks up my location from my phone
and shares it with desktop chrome
so it knows not only the city i'm in but suburb.
[14:29]
.... (idle for 16mn)
mnathani_does your phone use IPv6 though? [14:45]
brycecMine does :) [14:46]
mnathani_from the carrier, as in native/
?
or wifi tunnel
[14:47]
brycecmy home wifi
though I know of US carriers that have native/network ipv6
(just not AT&T)
[14:48]
mnathani_T-Mobile I believe [14:49]
.... (idle for 19mn)
mercutiomnathani_: my phone would but i don't use ipv6 at home
and mobile doesn't do ipv6 here yet
doesn't android have buggy ipv6 support?
[15:08]
........................................................................... (idle for 6h12mn)
***DaCa has quit IRC (Quit: WeeChat 1.0) [21:21]
mnathani_mercutio: what was that copy paste / vim thing from earlier? [21:27]
brycec2015-10-23 00:47:13 @mike-burns There's a plugin that will detect clipboard start/end codes and automatically pastetoggle for you, but I can't find it now.
2015-10-23 00:47:46 @mike-burns https://coderwall.com/p/if9mda/automatically-set-paste-mode-in-vim-when-pasting-in-insert-mode - this.
[21:28]
mnathani_I read that, but couldn't make out what it did
also this didn't make sense: [04:48] <@up_the_irons> I always manually did it with F11
[21:28]
brycecbrycec shrugs [21:30]
mercutioi can pastebin my .vimrc snippet [21:31]
mnathani_sure [21:31]
brycecI can look up logs, but I don't speak Vim beyond the very basics (insert/replace-one/replace-many/write/quit etc)
(I can do a little bit more than those too, but you get the idea)
[21:31]
mercutiohttp://pastebin.com/CbaZViEp
just append that to your vimrc
[21:32]
mnathani_I guess I should start at the top : what problem is this trying to solve? [21:32]
mercutiodo you use set ai? [21:33]
mnathani_dont think so [21:33]
mercutiothen it may not help you so much :)
in vim type :set ai
then do tab some text
and press enter
and see how it stays at the same indentation level.
which is really useful when coding.
or for lots of things in general.
but then you have something like say that vimrc fragment which you want to paste in
and it starts indenting more and more with every line
[21:33]
mnathani_I see the auto indent [21:35]
mercutioso you can do ":set noai" and paste, and then do ":set ai" again
but that's a pita
so that vimrc snippet means whenever you paste it doesn't autoindent.
but your normal text can continue to be indented.
[21:35]
mnathani_ok, I think I get it [21:36]
mercutioit's bugged me so many times [21:36]
mnathani_but what text are you copying and pasting from I mean what program
is it another vim instance?
[21:36]
mercutiothat when people were talking about things to do in vim i was keen if anyone knew how to fix it.
any program
like that pastebin web site
[21:36]
mnathani_has to be text based though? [21:37]
mercutioif you want to cut and paste the vimrc snippet into your vimrc
it'll auto indent crazy like normally
well yeah vim is for text
[21:37]
mnathani_can you copy from gui to textbased vim and still expect that behavior? [21:37]
mercutiofrom chrome and pastebin sure
but you have to copy text in not images :)
[21:37]
mnathani_ofcourse [21:38]
mercutioit's like magic :)
i love it so much
the other thing i love is when i found a way to do shared persitent history for zsh shells.
persistent
it really sucks when you have more than one shell open and you lose blobs of history
[21:38]
mnathani_is there a bash equivalent to that? [21:40]
mercutionot that i know of
but i haven't used bash in a very long time
don't really see the point in using bash when zsh is available
but zsh vs bash is kind of like vim vs emacs i suppose
[21:40]
mnathani_I havent really tried zsh
bash is usually set as default on linux
[21:45]
mercutiozsh is smaller binary than bash, freeer license, better programmable completion, and lots of cool things you can do with it easily
zsh comes with osx by default
and is readily available.
if using ubuntu zsh will complete apt-get install <package name> by default.
whereas bash wouldn't by default last i knew
that's one of the easiest most visible ways to see the improved completion
you can also complete things like scp :)
although you need to use keys for that to work
err things like remote files with scp
so you can do scp server:somefile<tab> and complete to .tar.gz or whatever
[21:46]
mnathani_does it open a connection in the background? [21:48]
mercutioyeah [21:48]
mnathani_cool [21:48]
mercutioit's really quick to close servers.
but really slow to far away ones :)
[21:48]
mnathani_does zsh have to be set on remote and local server
?
[21:49]
mercutionope
just locally
you can just type zsh too
without changing your default shell
if you want to play
[21:49]
..... (idle for 20mn)
brycecbrycec <3 the grml zsh config
And speaking of ssh/scp completion - it will complete hostnames from your ssh_config and known_hosts
https://grml.org/zsh/ so many perfect defaults IMO :) And it's what ArchLinux uses in the install iso, and have a package 'grml-zsh-config' too
It's how I got hooked on zsh. I'd been wanting to try it for awhile, and gave bare zsh a shot but was relatively "meh" on it. Then I was installing Arch one day and discovered that the shell was zsh and it looked nice and did nice things... And here I am now, devout zsh user 80% of the time.
[22:09]
mercutioi haven't done much config on mine
"prompt -p" is pretty cool
it's like thre are a few default prompt styles you can choose easily
i'm using "clint"
[22:12]
brycecMine's pretty much stock :D I have a .zshrc.pre with> [ "x${TERM:0:6}" = "xscreen" ] && NOPRECMD=1 < which makes my tmux life easier. And .zshrc that sets my HISTFILE/SIZE, bindkey -e, and the three lines to load the completion stuff. [22:14]
mercutiowhich isn't ideal, but "good enough" [22:14]
bryceclol I'd forgotten all about prompt
I'm using, unsurprisingly, grml theme
[22:14]
mercutioheh i was just looking through it and bumped my history size up from 12,000 to 25,000 [22:15]
brycec(grml-chroot) [22:15]
mercutiozsh will also tell you when you're in a git repo etc [22:15]
brycecI love zsh's history - shared between instances, and I can just start typing then up-arrow to complete from my history [22:15]
mercutioand which branch you're following [22:15]
brycecYes! Love that (and svn and cvs and hg...) Totally necessary for me to keep track of where I am and what I'm doing.
clint theme is spiffy, but way too much. I had a two-line prompt in bash for a long time, and I'm enjoying being back to a single useful line. I don't need the current pty or version info...
[22:16]
mercutioyeah i don't need that either [22:17]
brycecbrycec is tempted by the fade/fire themes though, they're so pretty... but too big. [22:17]
mercutiobut having the date, time, hostname is useful
and having a separate line from that stuff to having my commands.
like i said it's not ideal, but it's sufficient. and the colours don't bug me
[22:17]
brycecgotta have the hostname. time/date, my wm or tmux take care of (though I sometimes miss knowing what time I started a command running - zsh does display the `time` after long running processes at least) [22:18]
mercutioyeah for me i like to see when commands were [22:18]
brycecI like having my prompt go red if I'm root, that was something I first saw in Gentoo's default bashrc and I've carried it forward since then. [22:18]
mercutiowhen i went from 1440p to 4k i went down in time size in wm
doesn't bother me :)
nothing else really got samller
smaller
hmm so i don't need pts, linux version, arch etc, zsh versino
and the histoy line number could move to that line
i don't need zsh/2 either
i wonder what that is
maybe i should try and figure out how to do prompts :)
is anyone here using redshift?
[22:19]
mnathani_is command line options completion a feature of zsh? [22:21]
mercutiomnathani_: yes [22:21]
brycecmnathani_: yes!! [22:21]
mercutioit doesn't do everything though [22:21]
brycecmercutio: I used to use redshift, but meh [22:21]
mercutiobrycec: got annoying? [22:22]
mnathani_bash: zsh: command not found [22:22]
brycechttp://zsh.sourceforge.net/Doc/Release/Prompt-Expansion.html have fun with your $PROMPT and $RPROMPT [22:22]
mercutiomnathani_: ubuntu?
apt-get install zsh
[22:23]
brycecmercutio: kinda. Didn't really benefit me. [22:23]
mercutioi find it nice. [22:23]
mnathani_centos, figured yum install zsh [22:23]
mercutiobut i use subtle settings.
oh centos is a bitch
but it's somewhere i think
centos had bash1 for ages
even if it has zsh it's probably old :)
[22:23]
mnathani_not sure how old it is zsh: 4.3.11-4.el6.centos [22:24]
mercutiooh new version of zsh added cut and paste thing so if you paste something into zsh it won't run it until you press enter [22:24]
brycec5.1.1 is current [22:24]
mercutioyeah i'm using 5.1.1
that's what version added the cut+paste thing
but yeah old versions are still fine
[22:24]
mnathani_[root@compaq ~]# zsh
[root@compaq]~# echo $SHELL
> /bin/bash
do I need to log out and log back in?
[22:25]
mercutionope
it probably isn't setting SHELL
[22:26]
mnathani_I am in tmux though [22:26]
mercutiobecause it's not a login shell
try zsh -l
[22:26]
mnathani_ok makes sense I guess [22:26]
mercutioerr
it's sudo that has -l isn't it
[22:26]
mnathani_no output for zsh -l [22:26]
mercutiotry "prompt -p"
inside zsh
[22:26]
mnathani_zsh: command not found: prompt [22:27]
mercutiosee
you're in zsh
autoload -U promptinit
promptinit
prompt -p
[22:27]
mnathani_how do I get the command line options for ls though [22:27]
mercutiobah you need a .zshrc :)
makes it easier :)
it should offer to help you
when you first login
maybe centos doesn't do that
[22:27]
trobothamoh-my-zsh
:P
[22:28]
mercutiosounds good
ohmyz.sh
[22:28]
trobothamya
it is awesome
[22:28]
mnathani_I have a freebsd vm here as well with zsh [22:29]
mercutiofreebsd will have old zsh too
probably 5.0.7?
[22:29]
mnathani_zsh 5.1.1 (amd64-portbld-freebsd10.1 [22:30]
mercutioor do i need to update :)
oh hmm
woot
the cut+paste thing is cool
from someone who's accidentally run something cut+pasted before
but not any time recently
i used to type echo and cut and paste :)
[22:30]
trobothamgoing to be a long night ;[22:35] <mercutio> this blinks theme seems ok [22:32]
ya, I use bira myself [22:39]
mercutiook i gone back to my normal one already heh
but yeah it gives a nice starting point
mnathani_: what'd you think?
[22:39]
mnathani_I tried the command line option completion and its not working
need to research zsh features some more
[22:42]
mercutiodid you try oh-my-zsh [22:43]
brycec(or grml for that matter) [22:43]
mnathani_grml worked for completion [22:44]
brycecCool :) [22:45]

↑back Search ←Prev date Next date→ Show only urls(Click on time to select a line by its url)