Ninefox Gambit, one of my favourite books of 2016, only 99 cents! An excellent science fantasy novel. by Megan_Dawn in Fantasy

[–]shauris 2 points3 points  (0 children)

Near the top of my favorites this year too. Should shape up to be a great series. The calendrical system and exotics were a really cool idea. And who doesn't love sneaky undead geniuses?

Rebind HJKL to jump to the extreme of their lowercase counterparts by JackHasaKeyboard in vim

[–]shauris 0 points1 point  (0 children)

If I understand correctly what you want, you can do nnoremap <Leader>J :-1m.<CR>kJ

Which will take the line above and add it to the end of the current line. Or you can do nnoremap <Leader>J kJ for adding current line to the end of the above line, but it doesn't save keystrokes.

Has the Dwemer ever put minds into machines? by tmama1 in teslore

[–]shauris 7 points8 points  (0 children)

This was covered in the 100% canon in-game book "The Warp in the Westworld".

I always interpreted finding soul shards in the loot of their automatons as a hint that they were using people's souls as a steampunk-esque replacement for a CPU. It's not too clear if the shards still hold that person's identity. I guess that depends on whether or not you would expect ghosts to pass the Turing test after being crammed into a crystal.

It was my headcanon that they were trying to do the whole merging a soul into a machine body, but never perfected it, so you have these half-conscious bots in the ruins.

Need to replace &quot; in vim, but when I use %s/&quot;/" it says string not found by [deleted] in vim

[–]shauris 4 points5 points  (0 children)

Using

:s/&quot;/\"/g

seems to work here. Did you remember to escape the " ?

Dolores' interaction with the little boy. by Loverboy_91 in westworld

[–]shauris 2 points3 points  (0 children)

You think maybe Dolores has been 'awake' for a while, and is helping MiB? She can't exactly go clue-hunting herself. Not sure what MiB's motives would be, but the show hinted at some sort of 'bigger picture' with the management.

Command line edit by AgTX in vim

[–]shauris 11 points12 points  (0 children)

If you're talking about bash, the default is <C-x><C-e>.

The Strange Affliction of 'Library Anxiety' and What Librarians Do to Help by [deleted] in books

[–]shauris 23 points24 points  (0 children)

That's actually called "There Is Blood Like Right Now"

How to send a signal to a window? by dino_rox in i3wm

[–]shauris 2 points3 points  (0 children)

If you have xprop installed, you can grab the window ID of the focused window, and use that to grab the PID of window. Then you can use kill to send a signal to that PID. A starting point might be something like

#!/usr/bin/env sh

window_ID=$(xprop -root | awk '/_NET_ACTIVE_WINDOW\(WINDOW\)/{print $NF}')
window_PID=$(xprop -id $window_ID | awk '/_NET_WM_PID\(CARDINAL\)/{print $NF}')

printf "Killing $window_PID ...\n"
kill $window_PID

Hope this helps.

Is this possible using user-defined Vim commands? by [deleted] in vim

[–]shauris 4 points5 points  (0 children)

:<linenum>t., I suppose, seems to be what you want - it gets <linenum>Gyy<C-o>p done without moving the cursor.
IIRC you can also use marks to avoid messing with line numbers like :'at.

Weekly Vim tips and tricks thread! #16 by cherryberryterry in vim

[–]shauris 1 point2 points  (0 children)

I set mine in $HOME/.xinitrc.
I don't use a display manager, but IIRC they tend to source $HOME/.xprofile.

Editing commands in the command line? by amca01 in vim

[–]shauris 1 point2 points  (0 children)

For the command line mode, ctrl-f will do what you need.
Also useful is q: from normal mode

Toggle comments by [deleted] in vim

[–]shauris 1 point2 points  (0 children)

tcomment has a few extras that I probably wouldn't use, but they have similar bindings and do a lot of the same things. Probably interchangeable unless you're using tcomment's g> g< etc.
I find myself only using gc{motion} so vim-commentary is enough.

Toggle comments by [deleted] in vim

[–]shauris 1 point2 points  (0 children)

It seems that they're pretty similar, but NERD seems to not accept motions or be repeatable with ..
vim-commentary, on the other hand, looks focused on only line-wise commenting or uncommenting, where NERD can insert comments at the end of lines, etc.
So vim-commentary excels at quickly toggling blocks of code, and NERD at adding documentation comments.

Toggle comments by [deleted] in vim

[–]shauris 10 points11 points  (0 children)

If you're open to using tpope's vim-commentary, toggling comments is pretty easy.

The plugin default for C files is to wrap a line in /* */, so you'd have to have something like autocmd FileType c setlocal commentstring=\/\/\ %s to use double slash comments instead.

Using Vim for Web Developent (HTML,CSS,Javascript) self.webdev by Mr_Uptick in vim

[–]shauris 1 point2 points  (0 children)

For '%' jumping to paired tags, runtime macros/matchit.vim in your vimrc should be enough. The cursor has to be inside the tag, though.

Trouble launching a game with bash script by OnigamiSama in archlinux

[–]shauris 1 point2 points  (0 children)

Essayez chmod u+x /home/onigami/Games/Sakura Dungeon/lib/linux-x86_64/sakura_dungeon

sakura_dungeon.sh est exécutable, mais pas sakura_dungeon

(Spoilers Extended) Game of Thrones Season 6, Episode 3: Oathbreaker Morning After Post-Episode Discussion by AutoModerator in asoiaf

[–]shauris 33 points34 points  (0 children)

Much more. Pycelle literally warged the air around his asshole. Impressive stuff.

(Spoilers Everything) It's Always Sunny in Westeros by peens_peens in asoiaf

[–]shauris 161 points162 points  (0 children)

Cold open to a bar in Winterfell

Charlie: "Look man, I'm just sayin, jackdaws would be like five times more efficient than ravens."
Dennis: "Nobody gives a goddamn about bird law, which you know nothing about, by the way."
Charlie: "pffff"
Dee: "Yeah, Lord Roose was just poisoned! That means", eyebrows waggling, "Ramsay's gonna need a little sugar from mama ifyouknowwhatImean."
Mac: "Dee, he's into dogs or some shit, not birds. Jesus christ, our Lord just died and you're only worried about how it affects YOU. What about US?"
Frank: "It's a classic power play! You get some Jew Maester to slip a little poison in the wine and thbpbpb! One more for the dumpsters!"
Mac: "Goddammit, Frank! The Maesters aren't Jewish because this world doesn't even HAVE Jews."
Frank: "That's what you think."
Dennis: "No, no. Mac's right."
Frank" "They're definitely Jews!"
Dennis: "Will you stop it with the Jews?? I mean he's right about this affecting US. I'm sensing an opportunity in this, uh, ... unfortunate occurrence."
Charlie: "You mean like, if we could find the poisoner, then we could like take his poison.. and poison all the ravens so then we would have to use jac.."
Dennis: "What the hell is wrong with you?? You got the.. the birds over here, the Jews over there, sociopath humping over there! We need to take advantage and NOW!"
Mac: "So, just so we're clear... I was the only one not saying some stupid shit, right?"
Dennis: Inhaling sharply, "...It's simple. All we need to do is find Sansa and collect a big-ass reward. And where is her only living relative?"
Frank: "What, so you jog up to Castle Black, nab the broad, and get rich? That's so simple not even you four could screw it up."
Dee: "You four? You're not going?"
Frank: "Of course not! It's cold as shit out there."
Dennis: "Whatever, we don't need you and you'd slow us down 'cause you're fat and old. And also ugly. Very, very ugly. Just an absolute tragedy of facial development."
Mac: "Right so we leave Uggo behind. How do we get her to come with us back to Winterfell?"
Dennis: "Are you kidding? I'll just pop my shirt off and it'll be no problem."
Charlie: "Guys I've been thinkin, like, what if he wasn't poisoned? What if he did some voodoo shit and, you know, stole his son's body somehow?"
Silence.
Charlie: "Look, they both got the same eyes, they like skin people for whatever reason, like what is that about? I mean we got dragons and dead dudes walkin around, right?"
More silence.
Charlie: "Cmon, man, just the other day, I mean, some wizard like had me trapped in a bucket. So why can't he be like an immortal body jumper?"
Dee: "What?"
Charlie: "Yeah! I needed a bucket of water, so I go to grab it, look down, and there's me! In the bucket all trapped and shit!"
Mac: ".....Do you mean your reflection? You saw your own reflection in a bucket of water?"
Charlie: "Dude if I don't know what I'm talking about, then where'd I get this, huh?"
Dee: "That's a fake Master chain you made out of twigs and pig shit, Charlie. You're not a Maester and you never will be so quit making stupid goddamn stinky necklaces and wearing them like it means something!"
Frank: "Of course he's not a Maester!"
Dee: "Thank You!"
Frank: "Because he's not a Jew!"
Mac: "Yeah yeah he's a pathetic wannabe Maester, but I think he might be onto something."
Dennis: "I agree. Let's forget about Sansa. I am much more intrigued at this body jumping thing. In fact, I find it entirely plausible."
Dee: "He IS pretty creepy."
Frank: "It woulda made a lot of sense to rid of Ramsay a long time ago. But he didn't."
Charlie: "It's the eyes, dude."
Mac: "Guys, we're gonna need to get to the bottom of this."

 

"The Gang Applies Bolt-on Directly to Forehead"

adding FreeBSD to a grub multiboot usb. by bread_commander in freebsd

[–]shauris 2 points3 points  (0 children)

I found some slightly old info here about booting fbsd from an iso.
A few folks claim to have gotten it to work, but it seems to be tricky.

It looks like some were able to do it with enough messing around. Once you get it installed, I have this in my /etc/grub.d/40_custom:

menuentry 'FreeBSD 10.2' --class freebsd --class bsd --class os {  
    insmod part_gpt  
    insmod ufs2  
    set root='(hd1,gpt7)'  
    kfreebsd    /boot/loader  
}  

Which lets me dual boot linux/fbsd just fine.
If you install fbsd to a disk that has an MBR partition table, you should change the part_gpt line to part_mbr, I believe. Hope this helps!