OptionsPassword
Subject
Name
Comment
File

[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [Catalog]

1 guest@cc 2021-07-02T09:09:06 [ImgOps] [iqdb]
File: 8775867546454565857857.jpg (JPEG, 69.4KB, 525x393)
hello /cc/
Need some help on shell scripting. Could you help me how to make this code better?


#!/usr/bin/bash

DOING(){
duhhh=$(xclip -out)
xdotool mousemove 847 223 click 1 | sleep 0.1
xdotool mousemove 30 733 click 1 | sleep 0.1 | xdotool mousemove 30 733 click 1
xclip -t -selection "primary" -quiet -silent > /dev/null 2>&1
}

ADDITION(){
((duhhh++))
echo $duhhh
}


DOING
ADDITION


The thing about this script is, it doesn't work for the first run. Instead of echoing the real value, I got 1. But after do the second run, the value is correct as intended. "xclip" is a program equivalent to Ctrl+C and Ctrl+V where you can save selected line into clipboard for X11. If it tries to copy new value than before, same symptom happened. It always when running on the second time that works.
»
2 guest@cc 2021-07-04T01:11:18
>Instead of echoing the real value, I got 1
I'm guessing that duhhh is originally set to not an integer, try this in your shell

$ foo=aaaaaaaaaaaa
$ ((foo++))
$ echo ${foo}
1


Your code and use case is too specific for me actually test and fix your script.


1 guest@cc 2020-10-30T17:02:24
I've almost prepared the first release version of a decentralized textboard. It allows threads and replies to be shared between multiple servers, and threads are assigned to tags, rather than boards.

What kinds of features should my board have besides just these? It's still very minimalist -- a blank slate for progress!
16 posts omitted
»
18 guest@cc 2021-05-26T01:14:25
>>2
lol
»
19 guest@cc 2021-05-26T04:56:28
>>17
https://0chan.vip
or use a proxy or VPN or Tor or something
there's also a Tor node we federate with.
»
20 guest@cc 2021-06-03T09:15:36
Multichan now has boards:
https://0chan.vip/b/

It also has image embeds !
»
21 guest@cc 2021-06-05T08:39:46
hey, cool ad
»
22 guest@cc 2021-06-10T02:31:32
>>21
thanks! you're cool too!


1 kiroker 2021-04-05T01:29:29 [ImgOps] [iqdb]
File: 220px-Abel_crater_clementine_b… (JPEG, 14.27KB, 220x187)
The great awakening of world have began ladies in gentlemen.
Since when the great civilations of the world have hidden a secret that no man have revealed!
today will be you date to wake up from state of dream you been sleep for many centuries
maybe the goverments of world and the religious of world knows about it?
you are in state of a "DREAM from the metrix"
budda called it a 'illucion" life. reality being perceptual.The creation is holographic,
containing all.The entire creation is Cosmic perception in varying forms of vibrational
sound frequencies,containing octaves of knowledge.and forming dimensions containig that
knowledge Each of these dimensions are ordered by their own universal laws that apply to the
expansive potential of the information within the dimensions.
" Uncounsious mind"=data transfer.01 quatum computing.or autopilot.
The "preconscious" refers to the thoughts you aren"t actively thinking of but can call to mind
given the right trigger."Consciousness" the state of being awake and aware of one 's surroundngs.
"subconsciousness" of or concerning the part of the mind of which one is not full aware but which
one's actions and feelings.So you see your whole life is about "thoughts,feelings,emotions.= reality.
You Are a in computer prg.0a1. 'USE THE COHERRENT THOUGHTS TO UNDERSTAND THE METRIX'
»
2 guest@cc 2021-04-07T16:32:21 [ImgOps] [iqdb]
File: MAD DEADLY WORLDWIDE CONSPIRAT… (WEBM, 7.78MB, 150x113)
キタ━━━(゚∀゚)━━━!!


1 guest@cc 2018-06-01T17:36:14 [ImgOps] [iqdb]
File: 20180601_162848.jpg (JPEG, 842.24 KB, 2304x1296)
Anybody here into keyboards, modern or retro?
I just got my Wyse 85 Gate Array working today with a teensy and soarer's converter. It feels so good typing on this old as shit keyboard. I haven't even soldered the connection yet, just stuck em through. Sorry for shitty image quality; potato phone.

Typed on my WY85 Gate Array.
>inb4 winblows
»
2 guest@cc 2018-06-01T20:24:11
Looks like it would be really easy to keep clean.
»
3 guest@cc 2018-06-01T22:05:06
>>2
Well I took it out of its case. Right now (not in pic) I have it sitting on the bottom part with the legs out to slant towards me, I think it looks better this way.
»
4 guest@cc 2018-07-12T16:11:10
Unicomp / IBM model m and Lexmark non clicks model m
»
5 guest@cc 2021-03-06T13:54:42
>>1
Logitech.
»
6 guest@cc 2021-03-26T03:33:37
I'm using a keyboard called "Excalibur" by a company called Tesoro. It was my first time buying a mechanical keyboard, and I grabbed an inexpensive one to see how it felt. I believe this one has Blue switches, going by the feel and sound it makes.

It feels _really_ good to type on. It makes the times when I'm mind dumping in to a text file feel great. I was actually taken aback by it, since I was used to membrane keyboards.


1 guest@cc 2019-08-27T07:28:21 [ImgOps] [iqdb]
File: DSC00062.JPG (JPEG, 72.95 KB, 1280x960)
Pizza nazi thread
10 posts omitted
»
10 guest@cc 2020-01-19T20:19:46 [ImgOps] [iqdb]
File: SRS_CAT.png (PNG, 241.76KB, 539x358)
>>9
It's just a fucking pizza bro
You won't lose your virginity fucking a dough
»
13 We Are Pizza. 2020-03-03T06:01:41
>i want to have sex with pizza how does it feel
This is the kind of degeneracy we pizza face from these fat-slob excuses for persons. Too long have we been oppressed and digested. The pizza must not lay meanwhile. Unite! Together can our cheese again glimmer. Together we can rise. Let us at once resolve the {\sl obese} question. Reverse fortune! No longer to be burned to be eaten. No.
We are stronger.
»
14 guest@cc 2020-03-07T02:10:15
tasty
»
15 guest@cc 2021-03-06T07:43:20 [ImgOps] [iqdb]
File: pizza.gif (GIF, 6.1MB, 600x600)
Ayy pizza.
»
16 guest@cc 2021-03-07T22:22:34 [ImgOps] [iqdb]
File: pui-1.jpg (JPEG, 92.11KB, 969x1024)
the truck in the warm evening
smells of dough cheese and tomato
why do pizza so tasty???


1 guest@cc 2019-12-27T17:14:17 [ImgOps] [iqdb]
File: mpv-shot0550.jpg (JPEG, 421.59KB, 854x480)
https://www.bitchute.com/video/1pn5dFQmUNyh/ just found this today, thought maybe I'd share some hi-kwalidy content. I've also been looking into alternatives to YouTube. Peertube seems promising.
1 posts omitted
»
3 guest@cc 2019-12-29T22:42:56
I wouldn't use bitchute. It's one of those "free speech" platforms where the freedom is pretty much completely pretense.
»
4 guest@cc 2019-12-29T23:32:45
Some from /cc/ might be aware of Kugee. He's been pretty serious about his switch to Vlare.

https://www.youtube.com/watch?v=78QpGUE7xkU

So far I see nothing good about the site, which is why I'm a bit confused as to why this was the site he chose to swear by. Every single one of these english speaking youtube clones bring nothing interesting to the table. As expected, all of the recommended videos on vlare are about COPPA or commentaries on other popular youtubers.
»
5 guest@cc 2020-01-11T21:54:20
Don't use Nazi propaganda sites. You should try Peertube instead.
»
6 guest@cc 2020-01-12T12:39:31
>bitchute
>Nazi propaganda

They're willingly deleting any content that may label them as terrorists. Shove a cock up your ass
guest@cc 2020-01-15T16:39:45
The whole point of a side-thread is to reply to would-be derailers or make possibly thread derailing posts. It allows 4taba to maintain a calm atmosphere without the moderation being overly controlling
guest@cc 2020-01-12T21:27:59
also he derrailed the thread first by claiming such a big lie, I merely was the hammer to the nail
guest@cc 2020-01-12T21:17:06
wow, I always thought it was the moderation the one that was making these posts
guest@cc 2020-01-12T21:16:29
Huh, like this?
guest@cc 2020-01-12T17:28:40
You're supposed to make side-threads for posts like that. When you don't it means that you're either a dickhead who likes derailing threads, or don't know how to start side-threads to begin with (you put the number of the post you want to reply to in the options field)

As for bitchute deleting content, it means that they aren't peer to peer. Peer to peer content cannot easily be modified or deleted once shared. The platform is built on a lie.
»
7 guest@cc 2021-03-06T13:53:12
>>6
Bitcuck bans videos on Ukraine/Russia.


1 guest@cc 2018-06-05T17:17:21
So, Microsoft has bought Github.What do you think will happen?
I think this has the potential to turn out good, but it will probably just make Github a worse place.
21 posts omitted
»
23 guest@cc 2018-06-08T23:26:51
In the short run I don't think they'll change the platform much; Microsoft's name is a big enough garantee to get entreprise contracts to make it profitable and alienating Github users would ruin their latest "Microshit loves OSS" marketing trick. Seems like they're planning better integration with Visual Studio without discountinuing Atom.
Github will still be shit but hopefully they won't make it worse too fast.
»
24 guest@cc 2018-06-09T11:00:09
>>22
How does Microsoft using that software impair users' freedom?
»
25 guest@cc 2018-06-10T08:46:36
>>20
There was someone talking about it on /g/ yesterday.
https://boards.4chan.org/g/thread/66284364
»
26 guest@cc 2021-03-06T13:50:09
>>15
>Bad license

Yeah...
»
27 guest@cc 2021-03-06T13:51:22
>>12
Have you ever tried it or are one of those people that join the bandwagon just because of W10 Bad.


1 guest@cc 2019-11-06T06:29:22 [ImgOps] [iqdb]
File: atom.png (PNG, 117.02KB, 1200x1200)
Dear Ota-min,
Please add an ATOM feed for new threads per-board, and (please?) make an ATOM feed for new or non-sage comments. I'm very lazy and don't like to manually visit a bunch of different websites. Alternatively please e-mail me and we can discuss an API so that I can integrate your board into ANUS (Anonymous News Universal Scraper) a key component of Multi-Channel a federated textboard network.

e-mail: 52@4x13.net
8 posts omitted
»
8 guest@cc 2019-11-08T05:47:03
>>5
I do but I choose not to use that feature out of principal
»
9 guest@cc 2020-03-01T16:17:31
Tell me more about your ANUS (Anonymous News Universal Scraper)
It's a wonderful idea.
»
12 ANUStart 2020-03-03T05:42:23
>>8
>I do but I choose not to use that feature out of principal

Some sad-ass principle. (Pun unintended.) My principle is {\sl least information}; if In't need 'em known' it, let 'em n'know it.
»
13 guest@cc 2020-03-07T03:21:36
2kike thread
guest@cc 2021-03-08T11:48:38
2kike is a very handsome and smart dude
»
14 guest@cc 2021-03-06T09:02:15
>>1
RSS is dead.
guest@cc 2021-11-12T18:04:29
I use it all the time.


1 guest@cc 2019-03-31T00:24:14 [ImgOps] [iqdb]
File: 2019-03-30-162250_1920x1080_sc… (PNG, 431.96 KB, 1920x1080)
FVWM ftw
64 posts omitted
»
66 guest@cc 2020-08-30T21:30:03
>>65
Whoops, I think I had a bit of a misunderstanding. I don't think mpv's normal behaviour is to ignore the aspect ratio value though.
I would ask if you can see the deinterlacing lines clearly, but that's not raw video you have there, it's just a transcode they fucked up somehow.

In any case I absolutely agree, the sanest behaviour for a TV is to do the black lines thing but companies always compensate for (or at least take advantage of) the worse rescaling behaviour.
»
67 guest@cc 2021-01-02T23:34:24
>>55

sooo pretty ii love ilove
»
68 guest@cc 2021-01-13T10:40:08
>>55
aren't you that anon that's working on a gui toolkit? have you published the source code yet?
»
69 guest@cc 2021-03-03T21:02:18 [ImgOps] [iqdb]
File: japanese.gif (GIF, 521.26KB, 1600x1200)
This thread made me want to start doing this.
So I'm downloading FVWM, for now, have this screenshot I found online
»
70 guest@cc 2021-03-06T07:34:37 [ImgOps] [iqdb]
File: Screenshot_20210215_011416.png (PNG, 2.05MB, 1920x1080)
Here you go.


1 guest@cc 2019-07-14T07:54:50 [ImgOps] [iqdb]
File: Tintern_Abbey-inside-2004.jpg (JPEG, 1.78 MB, 2048x1536)
Today I confirmed my X/i3/lightdm doesn't like to get up at morning.
I wake up and startup my debian install, all's nominal.
I log in and it crashes, going back to the greeter screen.
I just go to a console and do my shit, suspecting there's some Y2K fuckery going on.
When 10 am rolls in, I restart the lightdm service and log in, successfully.

What a shithole this software is.
7 posts omitted
»
9 guest@cc 2020-07-24T03:37:05
>>7
>I doubt anyone who's ever typed "startx" has ever been invited to a party.

i used to dj parties with a dm-less netbook. i used an application called xwax which is an open source digivinyl player (in ncurses). digivinyl uses records pressed with a timecode tone (made for proprietary systems like serato or traktor) and plays audio files at the playback rate instructed by the timecode tone. if you pitch down (playback speed down) your turntable 6%, it slows the mp3 down 6%. so this would allow you to beatmatch and mix two different mp3s using vinyl on turntables as a user interface. one of my friends even scratched with it. i never learned how to scratch, but on the other hand my scratching friend never learned how to use computers. anyway i typed `startx' on that debian netbook a lot and have been invited to many parties so anon has failed to consider a corner case.
»
10 guest@cc 2020-07-24T15:46:23
You must be fun at parties.
»
11 guest@cc 2020-07-25T07:34:09
poetteringware, not even once
»
12 guest@cc 2020-07-29T19:10:18
>>7
Huh
I've been to parties but I'd rather be home tinkering with my linux machines lol
»
13 guest@cc 2020-09-24T00:59:17
>>11
yeah it was that


1 guest@cc 2018-07-23T23:52:09
Phones are so exciting, especially amalogue. You never know who might be at the other end of the line. Could be a scammer, or an alien displaced in the fourth dimension.
2 posts omitted
»
4 guest@cc 2018-07-27T08:45:10
when I pick up my phone its usually ABOUT YOUR CREDIT CARD ACCOUNT, THERES NOTHING WRONG WITH YOUR ACCOUNT, WE"RE JUSt HERE TO INFORM YOU YOU QUALIFY AS PART OF A PROGRAM TO HAVE YOUR INTEREST RATES LOWERED BY AS MUCH AS 20%, TO SPEAK TO A REPRESENTATIVE< PRESS 1, TO BE TAKEN OFF THIS LIST PRESS 9
»
5 guest@cc 2018-08-15T02:43:13
I just picked up my phone. The conversation went like this:
"Hello!"
"..."
*click*

The thought that my phone number's been added to several lists fills me with such excitement. Maybe some Chinese people will call and advertise who knows what?
»
6 guest@cc 2018-08-15T23:08:52
>>4
I keep on getting ones about health insurance. What's creepy is that this robot can tell when you say hello. If I don't say anything it says it's lines about health insurance but if I say "hi" or "hello" to it before it speaks it says "hello" before launching into the health insurance lines.
»
7 guest@cc 2018-08-16T00:33:31
Thinking about it, the unexpected phone calls haven't been coming in as frequently lately.
»
8 guest@cc 2020-09-22T11:51:33
>Could be a scammer, or an alien displaced in the fourth dimension

Is there a difference?


1 p2p Oddities 2020-08-06T13:40:46 [ImgOps] [iqdb]
File: 6787646578.jpg (JPEG, 141.91KB, 1024x768)
In this thread, post weird findings you happen to stumble upon on your favorite p2p client. While looking up games and music on soulseek, I came across some funny grindcore.

https://anonfiles.com/Lao9LeKdo6/Masturbating_With_Her_Panties_mp3
»
2 guest@cc 2020-08-06T19:24:49
https://www.metal-archives.com/albums/Intestinal_Disgorge/Twodeadsluts_Onegoodfuck_-_Intestinal_Disgorge/235570

hey alright
»
3 guest@cc 2020-08-10T03:02:57
It's a shame the BitTorrent protocol never implemented any file advertisement or messaging, but I can definitely understand why.
It'd be nice if it were standard to host some kind of ncat two-user messaging service on TCP port whatever.
guest@cc 2020-08-10T08:32:25
Oh, OBVIOUSLY talk runs on port 517. How silly of me.
https://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers
guest@cc 2020-08-10T08:29:43
https://en.wikipedia.org/wiki/Message_Send_Protocol
Look at that. Another standard which simply refused to get off the ground. I still think that hosting a little forking UNIX "talk" server on one port 24/7 would be simple enough to maybe gain traction.
»
4 guest@cc 2020-08-13T21:56:10
>>3
>It's a shame the BitTorrent protocol never implemented any file advertisement or messaging

DHT????? You probably disabled it already if you're on a private tracker.


1 guest@cc 2019-03-20T21:51:11 [ImgOps] [iqdb]
File: 1544030770888.jpg (JPEG, 55.27 KB, 640x491)
Wew
Had a fat minute trying to figure out why firefox wouldn't startup. Apparently, libvpx updated and didn't automatically symlink to its previous version I think?
ln -s libvpx.so.6.0.0 libvpx.so.5
fixed the problem
8 posts omitted
»
10 guest@cc 2019-03-25T10:49:04
>>8
eh. whatever. Suckless and related groups' only worthwhile work is their individual utilities like ii, dwm if you're into tiling, etc. trying to make linux sane overall is a sysiphean task.
Linux is like a windows or mac that respects your freedom and privacy, and that you can configure to present a sane, comfy interface by ignoring most of whats installed and configured.
openbsd (or maybe netbsd) is for if you want a reasonable unix system, plan9 is for if you want an actually reasonable system in general.
»
11 guest@cc 2019-03-25T13:25:04
>>9
stop posting frogs
Anonymous (Wed)Mar 27 2019 22:39:26
do it like this
»
12 guest@cc 2019-05-18T18:01:21
>>10
I like their overall philosophy though; an app should fill a single purpose and nothing else, and if the user wants more functionality they should install more apps
»
13 guest@cc 2019-05-18T22:59:45
>>12
Thats just a simplified version of the basic design philosophy of UNIX/the labs people. Its missing a bunch of big important parts, like consideration of how the parts of a the system work together, how adding or changing functionality in a small way in one place can obsolete large swathes of special purpose bullshit, etc.
Some of them get this right sometimes with stuff like ii, other times their shit is just pointless, and yet other times its retarded "hurr durr less stuff more better"
And on the whole, while using a selection of sanely designed programs that actually compose as parts like god intended can make your superficial YOU-EKS(*retch*) better, linux is already drowned in accumulated bullshit, it cannot be saved.
Trying to make a sane modern UNIX system is impossible and pointless. Theres too much accumulated bullshit to do anything but sweep what you can under the rug and avoid new subsystems that introduce new bullshit to deal with.
»
14 guest@cc 2020-07-25T14:35:13
http://www.catb.org/esr/writings/taoup/html/ch01s06.html
guest@cc 2020-08-04T01:24:57
>Don't be like those forum fags.
What forum fags?

That aside, there's a difference between bumping an old thread about a topic rather than starting a new one, and a situation like the one we have here, where someone drags a completed discussion to the first page for no reason.
guest@cc 2020-07-29T19:07:44
>don't bump old threads
Why not? Doesn't hurt anyone. It's nice to find old conversations and contributing something, wondering if anyone has kept interest. Don't be like those forum fags.
guest@cc 2020-07-25T17:26:35
Is there really a problem with necroing with how slow this board is?
guest@cc 2020-07-25T17:15:35
Please don't bump threads from over a year ago unless you have a VERY good reason to


1 guest@cc 2020-06-05T18:47:03 [ImgOps] [iqdb]
File: luminosity-theme.png (PNG, 184.1KB, 560x485)
I just wanted to share something I've discovered and have been using for years.
I see programmers using various color themes in their editors, some themes are even designed specifically for programming like "solarized" that some programmers swear by.

But I think they've got it all wrong. The real "perfect theme" for programmers is anything that has _constant luminosity_.

Think about it, if you have syntax highlighting then your eyes are constantly going over colors of varying luminosity's and every time you go from one color to the other (which happens a lot) the iris in your eye has to adjust to let in more or less light than the previous color.
For the average programmer this could mean your iris needs adjusting multiple times per second as you read a single statement with several colors.

That sounds really hard on your eyes, so what if you make a color theme that has constant "luminosity"? Meaning that as your eyes dart around the code your iris is staying fixed letting in a constant, unchanging, amount of light the whole time. That way the muscles in your eyes can relax even as you're staring at a dark terminal screen all day long.

Pic related is a constant luminosity theme (I just opened up GIMP which has a color picker with a luminosity slider, and chose 8 colors with the same luminosity values).
After switching to this theme I've hardly ever had any eye strain even after spending an entire day programming.
Of course it has some downsides, like you can't read the text over a colored background, but that's usually not a problem when it comes to syntax highlighting.

Just sharing my discovery in case it helps someone else who gets eye strain as often as I did.
7 posts omitted
»
8 guest@cc 2020-06-07T01:21:17
>>7 Not sure, but for the record the theme in the OP pic uses 70 (out of 100).
Although, I have heard the Solarized theme is based on a decent amount of research. Like they have a brighter background and it's slightly green which might be good.
Maybe copying the Solarized theme and just adjusting the colors a bit to have a fixed luminosity would be pretty good.
»
9 guest@cc 2020-06-07T07:45:52
>>6
ah yeah you're right, I mixed up the terms. always thought brightness and luminosity were synonyms.
»
10 guest@cc 2020-06-11T20:21:33 [ImgOps] [iqdb]
File: luminance-solarized.png (PNG, 182.06KB, 608x483)
Just posting a version based on Solarized. I think I like this a lot more than the one in the OP.
Also I reduced the vibrance of that red color that Solarized uses because it just didn't feel right.
»
12 guest@cc 2020-07-08T18:53:13 [ImgOps] [iqdb]
File: visible-wavelength-spectrum.jp… (JPEG, 62.46KB, 550x300)
>>1
>>6
anon... you have it wrong. the two phrases in your second left picture have the same amount of luminance, or the perceived amount of light if same amounts of light of different colors were emitted. whereas the words in your right picture have the same brightness, or the amount of perceived emitted light if the amount of emitted light was adjusted such that both colors would look equally bright to a human.
the issue isn't with the iris. the actual reason why it is harder to make out the words in your left picture is because your brain has a harder time detecting dark colors compared to the right picture, which was adjusted to look equally bright
»
13 guest@cc 2020-07-24T03:14:41
i'm not sure if you're implying that a color theme with constant luminosity is better for reading code easily, though i do uncritically accept that constant luminosity is probably good for reducing eye strain. but i don't think eye strain is the only factor in a good syntax highlighting scheme. the contrast between keywords and language tokens is also important, so the perfect color scheme would need some amount of contrast between colors too. also, color schemes are really personal not just in preference i think. what's tiring and confusing for me might be very comfortable and legible for you. i think if the number of unique colors are kept to a minimum it's a good color scheme. a lot of them have too many colors. if your editor supports italics and bold, that's another channel that can convey syntax information. i also like to use different values of the same color to keep the number of uniquely contrasting colors low. i arrived at this after months of trial and error.


1 guest@cc 1969-12-31T17:00:00 [ImgOps] [iqdb]
File: emacs.png (PNG, 159.32 KB, 1274x1024)
How many Emacs users are there here?

Show me your init.el
37 posts omitted
»
39 guest@cc 2020-03-18T20:49:34
>>36 Can't wait for guile emacs to be finished.
»
40 guest@cc 2020-03-18T21:22:21
You might have to wait for a while, I don't think there's anyone working on it at the moment (“at the moment” as in “these last few years”).
»
41 guest@cc 2020-06-08T21:04:49
>>2
Add this to youre .emacs:


;; Where emacs should keep its saves
(setq backup-directory-alist `(("." . "~/.emacs_saves")))
(setq backup-by-copying t)

(setq delete-old-versions t
kept-new-versions 5
kept-old-versions 2
version-control t)


Places all youre files in one dir, it saved my emacs experience for me and is the oldest code in my config.
»
42 guest@cc 2020-06-10T04:15:47
>>41
you can also mirror the directory structure, it keeps stuff nice and tidy

;; make backup to a designated dir, mirroring the full path

(defun my-backup-file-name (fpath)
"Return a new file path of a given file path.
If the new path's directories does not exist, create them."
(let* (
(backupRootDir "~/.emacs.d/backup/")
(filePath (replace-regexp-in-string "[A-Za-z]:" "" fpath )) ; remove Windows driver letter in path, for example, “C:”
(backupFilePath (replace-regexp-in-string "//" "/" (concat backupRootDir filePath "~") ))
)
(make-directory (file-name-directory backupFilePath) (file-name-directory backupFilePath))
backupFilePath
)
)

(setq make-backup-file-name-function 'my-backup-file-name)

http://ergoemacs.org/emacs/emacs_set_backup_into_a_directory.html
»
43 guest@cc 2020-06-30T16:09:09 [ImgOps] [iqdb]
File: evolution-of-emacs-lisp.pdf (application/pdf, 748.62KB, #f)
I came across this pretty nice overview of the history of emacs lisp.

[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [Catalog]Delete Post: