=== ANCHOR POEM ===
════════════════════════════════════════════════════───────────────────────────────
┌─────────────────────────────┐
│ CW: re: computers-mentioned │
└─────────────────────────────┘
@user-1573 `
" Select the font for the hardcopy
set printfont=Courier:h8
:let &printheader = " "
command! -range=% HardcopyPdf , hardcopy > %.ps | !ps2pdf %.ps &&
rm %.ps && echo 'Created: %.pdf'
" vimfolds - use marker as fold method
set foldmethod=marker
set foldtext=MyFoldText()
" Functions
function! MyFoldText()
let line = getline(v:foldstart)
let folded_line_num = v:foldend - v:foldstart
let line_text = substitute(line, '^"{\+', '', 'g')
let fillcharcount = &textwidth - len(line_text) - len(folded_line_num)
return '+'. repeat('-', 4) . line_text . repeat('.', fillcharcount) . ' ('
. folded_line_num . ' L)'
endfunction
let g:rainbow_active = 1
`
Here's the bottom part of the config - I ran out of characters and couldn't
post the whole thing.
If you don't know what vimfolds are here's a good guide:
https://www.vimfromscratch.com/articles/vim-folding
also:
https://vim.fandom.com/wiki/Folding
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧═════════════════════════════════════════──────────────────┴───────────┘
=== SIMILARITY RANKED ===
--- #1 fediverse/6024 ---
═════════════════════════════════════════════════════════════════════──────────────
vimfolds are the best part of vim
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧══════════════════════════════════════════════════════════─┴───────────┘
--- #2 fediverse/3600 ---
════════════════════════════════════════════════════───────────────────────────────
┌─────────────────────────────┐
│ CW: re: computers-mentioned │
└─────────────────────────────┘
@user-1573
Also HardcopyPdf is nice, it turns a file into a pdf. Does what it says on the
tin. ^_^
And it doesn't need anything more than those lines there in the config.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧═════════════════════════════════════════──────────────────┴───────────┘
--- #3 fediverse/4960 ---
════════════════════════════════════════════════════════════───────────────────────
vim plugin where every tab changes the font color
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧═════════════════════════════════════════════════──────────┴───────────┘
--- #4 fediverse/1934 ---
image.png
═════════════════════════════════════════════════──────────────────────────────────
@user-1109
do it in a random color each time! Here's my implementation for viewing txt
files colorfully:
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧══════════════════════════════════════─────────────────────┴───────────┘
--- #5 fediverse/1198 ---
════════════════════════════════════════════───────────────────────────────────────
@user-883
I use DWM and Vim, so yeah I get it ^_^
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧═════════════════════════════════──────────────────────────┴───────────┘
--- #6 notes/perspectives-of-the-reflection.html ---
═════════──────────────────────────────────────────────────────────────────────────
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>~/notes/perspectives-of-the-reflection.html</title>
<meta name="Generator" content="Vim/8.0">
<meta name="plugin-version" content="vim8.1_v2">
<meta name="syntax" content="none">
<meta name="settings"
content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,preve
nt_copy=,use_input_for_pc=fallback">
<meta name="colorscheme" content="none">
<style>
<!--
pre { white-space: pre-wrap; font-family: monospace; color: #ffffff;
background-color: #000000; }
body { font-family: monospace; color: #ffffff; background-color: #000000; }
* { font-size: 1em; }
.LineNr { color: #ffff00; }
-->
</style>
<script>
<!--
/* function to open any folds containing a jumped-to line before jumping to it
*/
function JumpToLine()
{
var lineNum;
lineNum = window.location.hash;
lineNum = lineNum.substr(1); /* strip off '#' */
if (lineNum.indexOf('L') == -1) {
lineNum = 'L'+lineNum;
}
var lineElem = document.getElementById(lineNum);
/* Always jump to new location even if the line was hidden inside a fold, or
* we corrected the raw number to a line ID.
*/
if (lineElem) {
lineElem.scrollIntoView(true);
}
return true;
}
if ('onhashchange' in window) {
window.onhashchange = JumpToLine;
}
-->
</script>
</head>
<body onload='JumpToLine();'>
<pre id='vimCodeElement'>
<span id="L1" class="LineNr"> 1 </span>With ever darkening skies,
the breadth of experience is foreseen.
<span id="L2" class="LineNr"> 2 </span>All eyes are pointed down,
but few do stray above
<span id="L3" class="LineNr"> 3 </span>With a cautious step, the
lesson is learned.
<span id="L4" class="LineNr"> 4 </span>With another, ended.
<span id="L5" class="LineNr"> 5 </span>
<span id="L6" class="LineNr"> 6 </span>For all the Tales of the
Past, love yet remains.
<span id="L7" class="LineNr"> 7 </span>Trading ourselves, for
matters unseen.
<span id="L8" class="LineNr"> 8 </span>The light of the eyes are
keen to behold,
<span id="L9" class="LineNr"> 9 </span>where star ones and
lemonsgrene both most fear
<span id="L10" class="LineNr">10 </span>in breadth do us know,
what's buried in snow
<span id="L11" class="LineNr">11 </span>
<span id="L12" class="LineNr">12 </span>A glass cube for a monitor
is room to breath
<span id="L13" class="LineNr">13 </span>and life for ourselves, if
only we were not
<span id="L14" class="LineNr">14 </span>broadsided ourselves.
<span id="L15" class="LineNr">15 </span>
<span id="L16" class="LineNr">16 </span>Working together, a
prisoners dilemna
<span id="L17" class="LineNr">17 </span>what fools would we be
<span id="L18" class="LineNr">18 </span>as our keeps cracked
around us.
<span id="L19" class="LineNr">19 </span>
<span id="L20" class="LineNr">20 </span>Trust and you'll see,
<span id="L21" class="LineNr">21 </span>what terrors may be,
<span id="L22" class="LineNr">22 </span>beyold the land that is
sanctum.
<span id="L23" class="LineNr">23 </span>
<span id="L24" class="LineNr">24 </span>Our chances may be,
<span id="L25" class="LineNr">25 </span>far from pioneered
<span id="L26" class="LineNr">26 </span>but our chances may be in
our favor.
<span id="L27" class="LineNr">27 </span>
<span id="L28" class="LineNr">28 </span>How cherished is she, that
wanders with ye,
<span id="L29" class="LineNr">29 </span>and yet now I have no way
to beyold her
<span id="L30" class="LineNr">30 </span>Under a great tree, her
last moments with me,
<span id="L31" class="LineNr">31 </span>as a monster came out of
her shoulder.
<span id="L32" class="LineNr">32 </span>
<span id="L33" class="LineNr">33 </span>!("Take her and
not me!") I scream outward at ye,
<span id="L34" class="LineNr">34 </span>yet no one was holding me
over.
<span id="L35" class="LineNr">35 </span>Silent was me, a most
fearsome to be,
<span id="L36" class="LineNr">36 </span>and none was my reach to
beyold her
<span id="L37" class="LineNr">37 </span>
<span id="L38" class="LineNr">38 </span>So now she wanders free,
beyond our beheld scenery,
<span id="L39" class="LineNr">39 </span>Astounded at our steps to
hold her
<span id="L40" class="LineNr">40 </span>Under a big tree, how
starlight must be,
<span id="L41" class="LineNr">41 </span>if only our fellows did
hold her
<span id="L42" class="LineNr">42 </span>Under a big tree, with me
</pre>
</body>
</html>
<!-- vim: set foldmethod=manual : -->
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘════════─┴───────────────────────────────────────────────────────────┴───────────┘
--- #7 fediverse/444 ---
══════════════════════════════════════════─────────────────────────────────────────
@user-336
RUINING? You take that back. Vim needs our homosexual energy.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧═══════════════════════════════────────────────────────────┴───────────┘
--- #8 fediverse/2295 ---
══════════════════════════════════════════════════─────────────────────────────────
┌───────────────────────────────────┐
│ CW: re: your favorite text editor │
└───────────────────────────────────┘
@user-1218
can echo into a file if nothing else, though that's quite a big hassle =P
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧═══════════════════════════════════════────────────────────┴───────────┘
--- #9 fediverse_boost/295 ---
◀═╦══════════════════════════[BOOST]═══════════════════════════──────────────────┐
║ ┌──────────────────────────────────────────────────────────────────────────┐ │
║ │ Vim users can have fully automated luxury gay space communism, as a │ │
║ │ treat │ │
║ └──────────────────────────────────────────────────────────────────────────┘ │
╠─────────┐ ┌───────────┤
║ similar │ chronological │ different │
╚═════════╧══════════════════════════════════════════════════──────┴───────────┴─▶
--- #10 fediverse_boost/126 ---
◀═╦════════════════════[BOOST]═════════════════════──────────────────────────────┐
║ ┌──────────────────────────────────────────────────────────────────────────┐ │
║ │ man page sections │ │
║ │ │ │
║ │ Permalink: https://wizardzines.com/comics/man-pages/ │ │
║ └──────────────────────────────────────────────────────────────────────────┘ │
╠─────────┐ ┌───────────┤
║ similar │ chronological │ different │
╚═════════╧══════════════════════════════════════──────────────────┴───────────┴─▶
--- #11 fediverse/5851 ---
image.png
════════════════════════════════════════════════════════════════════───────────────
@user-1074
I realized there might be a lot of configuration required. Oh well here ya go:
https://pastebin.com/x40VXQnH
https://pastebin.com/H5C4umWq
https://pastebin.com/dgDeS5Xu
https://pastebin.com/JCLrwF1z
https://pastebin.com/As6diaYc
https://pastebin.com/0vwzJUW4
https://pastebin.com/jPKeV7D1
dependencies are dkjson.lua (included), bash, lua, luahpdf, and libharu.
throw that all in a directory and point an AI tool at it. Or just do it
yourself and waste an hour or three on something a computer can do in 2
minutes.
good luck it looks like this when it's done:
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧═════════════════════════════════════════════════════════──┴───────────┘
--- #12 fediverse/5168 ---
image.png
══════════════════════════════════════════════════════════════─────────────────────
this is one of the first scripts I wrote
I can't believe I put the --no-ls AFTER the argument, ha, what a noob.
ah well if it works it works and I can't refactor now because I built it into
random scripts and I'd be fixing errors all the time.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧═══════════════════════════════════════════════════────────┴───────────┘
--- #13 messages/16 ---
═──────────────────────────────────────────────────────────────────────────────────
https://www.reddit.com/r/commandline/comments/na02wx/cute_terminal_animations/
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘─────────┴───────────────────────────────────────────────────────────┴───────────┘
--- #14 fediverse/1762 ---
image.png
═════════════════════════════════════════════════──────────────────────────────────
This was the first bash script I ever wrote.
It's been updated a little, it was a bash alias first, but this is what it
looks like now.
Kinda shows what kinds of problems I needed to solve most.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧══════════════════════════════════════─────────────────────┴───────────┘
--- #15 fediverse/1246 ---
════════════════════════════════════════════───────────────────────────────────────
@user-883
hehe if I don't understand how it works it's difficult for me to use things.
My Linux friends get so exasperated with me because I'm like "cool script
gimme like 2 days to figure it out" and they're like "bro just use these
flags" and I'm like "no"
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧═════════════════════════════════──────────────────────────┴───────────┘
--- #16 messages/971 ---
═══════════════════════════════════════════════════════════════════────────────────
vimcoders can be vibecoders too. it's just about what language you want to use
to talk to the computer, right?
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧════════════════════════════════════════════════════════───┴───────────┘
--- #17 fediverse_boost/65 ---
◀═╦═════════════════[BOOST]══════════════════────────────────────────────────────┐
║ ┌──────────────────────────────────────────────────────────────────────────┐ │
║ │ bash-errors │ │
║ │ │ │
║ │ Permalink: https://wizardzines.com/comics/bash-errors/ │ │
║ └──────────────────────────────────────────────────────────────────────────┘ │
╠─────────┐ ┌───────────┤
║ similar │ chronological │ different │
╚═════════╧════════════════════════════════────────────────────────┴───────────┴─▶
--- #18 fediverse/1228 ---
════════════════════════════════════════════───────────────────────────────────────
@user-883
I love your chaotic energy in this shell script
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧═════════════════════════════════──────────────────────────┴───────────┘
--- #19 fediverse/6377 ---
════════════════════════════════════════════════════════════════════════───────────
gen.nvim crawled so that cloud-code could stand
I trust my allies more than I fear my foes, which is why I make
][myself vulnerable/friends]/myself [vulnerable/friends][ everywhere I go.
I remember distant pasts where I dreamt of every movie I saw. Myself, and the
outdoors. Portrayed on stages of blocks-by-the-candle
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧═══════════════════════════════════════════════════════════╧═──────────┘
--- #20 fediverse/32 ---
═════════════════════════════════──────────────────────────────────────────────────
@user-33 void linux
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧══════════════════════─────────────────────────────────────┴───────────┘
--- #21 fediverse/3429 ---
═══════════════════════════════════════════════════────────────────────────────────
*configuring Linux is programming*
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧════════════════════════════════════════───────────────────┴───────────┘
--- #22 fediverse/582 ---
image.png
══════════════════════════════════════════─────────────────────────────────────────
@user-431
I made an alias that overwrites cd so I don't have to do this. The important
line is line 27, you could probably accomplish something similar like this:
alias cd="cd ${1} && ls -v --color=auto"
I also set it up so I can change more than one directory up using ... or ....
or .....
also I have a few shortcut scripts, cdir and qcd. cdir creates a quick way to
drop a bookmark wherever I'd like, while qcd can make permanent bookmarks.
Also qcd makes it so whenever I open a new terminal it opens to the last
directory I was in, which is nice if you need a new terminal to do something
in the current folder and you don't want to have to walk alllllllll the way
back.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧═══════════════════════════════────────────────────────────┴───────────┘
--- #23 fediverse/3877 ---
═════════════════════════════════════════════════════──────────────────────────────
@user-570
I do`alias ls='ls -v --color=auto'
`
and that seems to cover most things. Then in my cd alias I do`alias cd='cd
${@} && ls -la'
`
so I don't have to type ls everytime I cd ^_^
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧══════════════════════════════════════════─────────────────┴───────────┘
--- #24 messages/19 ---
══─────────────────────────────────────────────────────────────────────────────────
https://www.masteringemacs.org/article/the-emacs-27-edition-of-mastering-emacs-
out-now
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═────────┴───────────────────────────────────────────────────────────┴───────────┘
--- #25 fediverse/6171 ---
══════════════════════════════════════════════════════════════════════─────────────
@user-882
I dunno I just remember having that problem every once in a while and if you
search the man page for "sub" it takes like, 16 n pushes to find what you need
and it's like... can't you just put the flags and keyboard shortcuts at the
beginning??
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧═══════════════════════════════════════════════════════════┴───────────┘
--- #26 fediverse/3587 ---
════════════════════════════════════════════════════───────────────────────────────
┌─────────────────────────────┐
│ CW: re: computers-mentioned │
└─────────────────────────────┘
I realized that script was bugged, so... here's a better one. Plus a fun run
script too!`#!/bin/bash
set -euo pipefail
DIR="/home/ritz/programming/chapel/language-files"
VER="2.1.0"
FIL="chapel-${VER}.tar.gz"
URL="https://github.com/chapel-lang/chapel/releases/download/${VER}/${FIL}"
NUM_THREADS="16"
touch ${DIR}/files
rm -dr ${DIR}/files
mkdir -p ${DIR}/files
wget --output-document ${DIR}/${FIL} ${URL}
tar xf ${FIL} --directory=${DIR}/files
rm ${FIL}
cd ${DIR}/files/chapel-${VER}
export CHPL_LLVM=system
source ${DIR}/files/chapel-${VER}/util/setchplenv.bash
make -j${NUM_THREADS}
echo "now testing, to validate LLVM configuration as suggested in the docs:"
chpl "./examples/hello3-datapar.chpl"
./hello3-datapar
echo "the chapel programming language is now fully installed! Have fun!"
cd -
`
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧═════════════════════════════════════════──────────────────┴───────────┘
--- #27 fediverse/1385 ---
════════════════════════════════════════════───────────────────────────────────────
listen if your man page is more than like, 10 pg-down's, then you might want
to consider breaking that utility up into smaller pieces.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧═════════════════════════════════──────────────────────────┴───────────┘
--- #28 notes/vim-plugins ---
═════════──────────────────────────────────────────────────────────────────────────
Put them here: /home/ritz/.local/share/nvim/site/pack/CATEGORY/start/NAME
where CATEGORY is a general package category and NAME is the specific plugin
If you don't want them to be automatically included then don't put them in the
/start/ folder, put them somewhere else idk
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘════════─┴───────────────────────────────────────────────────────────┴───────────┘
--- #29 fediverse/1773 ---
═════════════════════════════════════════════════──────────────────────────────────
┌─────────────────────────┐
│ CW: programming-is-easy │
└─────────────────────────┘
Need to install a program from Github? Follow these simple steps:
step 1: make an empty text file
step 2: put this at the top: #!/bin/bash
step 3: put this on the next line: set -euo pipefail
step 4: mkdir -p the directory you want to install it to
step 5: rm -dr the directory you want to install it to
step 6: mkdir -p the directory you want to install it to
step 7: git clone the project
step 8: this is the hard part - go through each of the steps listed in the
readme and configure the installation to the needs of your system. Put them in
the bash script one-by-one.
step 9: save the file, it doesn't need an extension like .txt or .sh,
extensions are for windows noobs
step 10: chmod +x the file and then ./the file!
step 11: fix it when they change their installation instructions...
Need a run script? Easy! Write it as a function below your update script, then
echo the bottom half of the update script into a file named "run" that's
placed in the project directory.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧══════════════════════════════════════─────────────────────┴───────────┘
--- #30 fediverse/6007 ---
═════════════════════════════════════════════════════════════════════──────────────
I always get the syntax backwards, for some reason...
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧══════════════════════════════════════════════════════════─┴───────────┘
--- #31 messages/10 ---
───────────────────────────────────────────────────────────────────────────────────
https://www.reddit.com/r/learnprogramming/comments/n0vm6e/im_just_now_understan
ding_gitgithub_and_i_feel/
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘─────────┴───────────────────────────────────────────────────────────┴───────────┘
--- #32 fediverse/1448 ---
═════════════════════════════════════════════──────────────────────────────────────
┌──────────────────────┐
│ CW: cursed │
└──────────────────────┘
that one option flag in the config file that you don't know what it does
because the documentation intentionally doesn't explain it very well (or
explains that it solves a use-case that like, nobody would ever have, and
certainly you don't have) that secretly sets a flag which sends your [redacted]
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧══════════════════════════════════─────────────────────────┴───────────┘
--- #33 fediverse/5949 ---
═════════════════════════════════════════════════════════════════════──────────────
@user-138
I don't know what it does yet T.T
it's Lua, not C
what's the message? maybe I can help, I'm much better at bash than... actually
I'm not very good at bash, but only the cool kids are.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧══════════════════════════════════════════════════════════─┴───────────┘
|