@Ordoviz@lemmy.ml avatar

Ordoviz

@Ordoviz@lemmy.ml

This profile is from a federated server and may be incomplete. Browse more on the original instance.

Ordoviz,
@Ordoviz@lemmy.ml avatar

Don’t blindly run untrusted software, use Bubblewrap at the very least. Keep xkcd.com/538/ in mind.

Ordoviz,
@Ordoviz@lemmy.ml avatar

<span style="font-style:italic;color:#969896;">#!/bin/sh
</span><span style="font-style:italic;color:#969896;"># Select a file with fzf from a database sorted by frecency and open it using
</span><span style="font-style:italic;color:#969896;"># xdg-open. frece can be found at https://github.com/YodaEmbedding/frece
</span><span style="color:#323232;">
</span><span style="color:#323232;">DB_FILE</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">${</span><span style="color:#323232;">FRECE_FILES_DB</span><span style="font-weight:bold;color:#a71d5d;">:-</span><span style="color:#183691;">$</span><span style="color:#323232;">HOME</span><span style="color:#183691;">/.cache/frecent-files.csv}
</span><span style="color:#323232;">item</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">$(</span><span style="color:#323232;">frece</span><span style="color:#183691;"> print "$</span><span style="color:#323232;">DB_FILE</span><span style="color:#183691;">" </span><span style="font-weight:bold;color:#a71d5d;">| </span><span style="color:#323232;">fzf --tiebreak</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">index</span><span style="color:#323232;"> --scheme</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">path)
</span><span style="color:#323232;">
</span><span style="color:#62a35c;">[ </span><span style="color:#323232;">-z </span><span style="color:#183691;">"$</span><span style="color:#323232;">item</span><span style="color:#183691;">" </span><span style="color:#62a35c;">] </span><span style="font-weight:bold;color:#a71d5d;">&</span><span style="color:#323232;">amp;</span><span style="font-weight:bold;color:#a71d5d;">&</span><span style="color:#323232;">amp</span><span style="font-weight:bold;color:#a71d5d;">; </span><span style="color:#62a35c;">exit</span><span style="color:#323232;"> 1
</span><span style="color:#323232;">frece increment </span><span style="color:#183691;">"$</span><span style="color:#323232;">DB_FILE</span><span style="color:#183691;">" "$</span><span style="color:#323232;">item</span><span style="color:#183691;">"
</span><span style="color:#323232;">
</span><span style="color:#323232;">xdg-open </span><span style="color:#183691;">"$</span><span style="color:#323232;">item</span><span style="color:#183691;">"
</span><span style="color:#323232;">
</span><span style="font-style:italic;color:#969896;">#!/bin/sh
</span><span style="font-style:italic;color:#969896;"># Update frece database
</span><span style="color:#323232;">
</span><span style="color:#323232;">DB_FILE</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">${</span><span style="color:#323232;">FRECE_FILES_DB</span><span style="font-weight:bold;color:#a71d5d;">:-</span><span style="color:#183691;">$</span><span style="color:#323232;">HOME</span><span style="color:#183691;">/.cache/frecent-files.csv}
</span><span style="color:#323232;">tmp_file</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">$(</span><span style="color:#323232;">mktemp</span><span style="color:#183691;">)
</span><span style="color:#323232;">fd -H . ~ </span><span style="font-weight:bold;color:#a71d5d;">> </span><span style="color:#183691;">"$</span><span style="color:#323232;">tmp_file</span><span style="color:#183691;">"  </span><span style="font-style:italic;color:#969896;"># use ~/.fdignore file to exclude certain dirs
</span><span style="color:#323232;">frece update </span><span style="color:#183691;">"$</span><span style="color:#323232;">DB_FILE</span><span style="color:#183691;">" "$</span><span style="color:#323232;">tmp_file</span><span style="color:#183691;">"</span><span style="color:#323232;"> --purge-old
</span><span style="color:#323232;">rm </span><span style="color:#183691;">"$</span><span style="color:#323232;">tmp_file</span><span style="color:#183691;">"
</span><span style="color:#323232;">
</span>
Ordoviz,
@Ordoviz@lemmy.ml avatar

OpenStreetMap and Internet Archive because they are operating with a small budget (as opposed to Wikipedia).

Ordoviz,
@Ordoviz@lemmy.ml avatar

The mojo, cpan and pip bash scripts don’t fail my test of “skimming over the source and looking for dangerous external commands like curl or rm” (good syntax highlighting is helpful here). They look like typical completion scripts. However, if your Linux distribution has a pip completion script in their repos, prefer that one.

Ordoviz,
@Ordoviz@lemmy.ml avatar

Wired has removed the story because it “does not meet [their] editorial standards”.

Ordoviz,
@Ordoviz@lemmy.ml avatar

Wired has removed the story because it “does not meet [their] editorial standards”.

Firefox not loading chrome CSS file

Greetings. Today I discovered the world of theming Firefox through something called CSS. I went to the store page, and I wanted to add the Opera GX theme. Therefore, I first enabled the legacy toolkit config in the about:config page. Then, I went to the UserChrome.css file found on github for that theme and copied the raw data....

Ordoviz,
@Ordoviz@lemmy.ml avatar

Make sure that toolkit.legacyUserProfileCustomizations.stylesheets is enabled in about:config.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • anitta
  • InstantRegret
  • magazineikmin
  • Youngstown
  • everett
  • thenastyranch
  • slotface
  • vwfavf
  • mdbf
  • rosin
  • kavyap
  • khanakhh
  • cubers
  • PowerRangers
  • provamag3
  • DreamBathrooms
  • tacticalgear
  • Durango
  • ethstaker
  • osvaldo12
  • ngwrru68w68
  • cisconetworking
  • tester
  • GTA5RPClips
  • normalnudes
  • modclub
  • Leos
  • megavids
  • All magazines