Posts

vscode tabs

Image
Taken up vscode with avengence - lovely stuff. There’s a few little bugs, like code folding in vim mode, but I figure I can live with that ‘til it gets sorted. Anyways, here’s what to add to keybindings.json to make my usual alt+arrow keys move back and forth through open tabs: { "key" : "alt+right" , "command" : "workbench.action.nextEditor" }, { "key" : "alt+left" , "command" : "workbench.action.previousEditor" } Oh, and here’s how you embed an image in md, just ‘cause I happen to be here: ![ image ]( https : //www.royalcanin.com/~/media/Royal-Canin/Product-Categories/cat-senior-landing-hero.ashx)

testing syntax highlighting add

OK! Got this working with gruvbox theme same as my vim setup. Basically, just add < link href = 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.11.0/styles/gruvbox-dark.min.css' rel = 'stylesheet' /> < script src = '//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js' /> <script type= 'text/javascript' > hljs.initHighlightingOnLoad(); </ script > in <head> function $initHighlight (block, cls) { try { if (cls.search( /\bno\-highlight\b/ ) != - 1 ) return process(block, true , 0x0F ) + ` class = "${cls}" `; } catch (e) { /* handle exception */ } for ( var i = 0 / 2 ; i < classes.length; i++) { if (checkCondition(classes[i]) === undefined ) console.log( 'undefined' ); } } export $initHighlight; // note - you use csh for this not css! body { background : black; color : white; margin : 0 ...

sort within blocks

Started using style guides, one of which specifies that CSS declarations be listed alphabetically. Not sure what most people’s solutions to that is, but I’m just going to whack CSS in however and periodically run vi{ :sort v - enter visual mode i{ - select inside braces : - enter command mode sort - sort alphabetically look at :help sort for other options, eg: %sort! - reverse alphabetical %sort u - sort and remove duplicate values %sort n - sort numeric etc

Node issues

Not sure quite what happened, but I pacman -Syu ‘d as normal and got a bunch of errors relating to npm (basically a whole list of exists in filesystem errors). Now, if I’d been sensible with the xps like I was with the latitude I would’ve done $sudo pacman -Syu --ignore npm , seen a missing ca-certificates.crt file and (hopefully) found my way to the Arch news posting that told me how to resolve. I could then have --ignore ‘d npm or whatever and figured out the real deal later. What I did do was rename /usr/lib/node_modules/npm (the source of the files I could see) to npm.bak then upgrade as normal. This has fucked me. Then I get errors any time I try to run any node or npm command saying shared library error, libcrypto.so.1.0.0 does not exist. Symlinked that to whatever libcrypto I did have, got same issue for libssl.so.1.0.0. Symlinked that , got some error about undefined ssl symbols or I dunno what. So. uninstalling and resintalling npm and node doesn’t work. downgra...

wifi confirmation

`systemctl start netctl-auto@wlp58s0` is definitely the way to go in the first instance when I don't automatically connect to an established profile. I think in the past I would restart netctl and that would take ownership away from from netctl-auto and that's when things started getting additionally messed up.

Statusline Arrows

I really want to use input mono as my main font for coding, but it seems to push out the alignment on my vim-airline and powerline-shell statuslines. Rather than get into a whole thing patching fonts with super-tweaked arrow icons I just decided I could live with square separators. Vim-Airline Add this to .vimrc : let g:airline_left_sep = '' let g:airline_right_sep = '' Add what you like between the quotes for separators. Powerline-shell Add --mode flat as a flag to the line that calls the python script in .bashrc . The other thing I did with powerline-shell was edit powerline-shell.py to the ‘untracked’ character is not u2753 , which is not available on any of the patched fonts. I used u26A0 which is a triangle with an exclaimation mark. Seems appropriate. I also finally figured out that the colors in powerline-shell/themes/default.py are the ones shown here - cterm or something, I dunno. Backup default.py change the colors as you...

Blogging Like a Hacker

Testing YAML front matter for pushing blogposts to blogger from stackedit.io .