Share a script/alias you use a lot
# Download clipboard to tmp with yt-dlp
tmpv() {
cd /tmp/ && yt-dlp "$(wl-paste)"
}
like this
# Download clipboard to tmp with yt-dlp
tmpv() {
cd /tmp/ && yt-dlp "$(wl-paste)"
}
like this
@HebrideanHecate @Flick @polarisera @TriptychTwinsRidesAgain
Check out who bans spinster
This war may lead to regime change, but more likely in Israel than in #Iran
Chas Freeman
retired US diplomat
The Baltic region has convinced itself that it will be the first target if a war breaks out on Europe’s eastern flank. Join us on…Strategic Culture Foundation
"This default position is so naked in its hypocrisy, so ignorant and parochial in its worldview, so clear in its disregard for human life, that it represents a colossal erosion of sophistication in political discourse, and a new low in contempt for the public. Support for Israel can only be defended by facile, logic-defying references to its right to defend itself even when it is the aggressor, and Iran’s “threat to the free world”."
theguardian.com/commentisfree/…
The political centre sees the US and Israel’s war on Iran as a crisis to be managed, while the gap between their detached politics and bloody rhetoric widens, says Guardian columnist Nesrine MalikNesrine Malik (The Guardian)
reshared this
Government is violence...
"Because your fight has not been with flesh and blood, but with Principalities and The Rulers and The Powers of this dark world and with wicked spirits which are under Heaven." Ephesians 6:12
Huxley predicted today's world with uncanny accuracy...THINK WHILE YOU STILL CAN...
And breath...do not fear...it is all just scripted drama, designed to instill fear...and fear is how they rule over you.
HB9ERY likes this.
At least 202 Palestinians were killed and 1,037 others were injured in the Gaza Strip over the last 48 hours as a result of the ongoing Israeli genocide in the region, according to medical sources.Orinoco Tribune - News and opinion pieces about Venezuela and beyond
Contact the White House: https://whitehouse.gov/contact/Support the show: Antiwar.com/donatePhone bank for Defend the Guard: https://defendtheguard.us/phoneb...YouTube
Expectations for a restrained foreign policy by a Trump administration were naïve. We now have strong evidence.Antiwar.com
with their censorship of free speech
and moslem stabbings and rapes of whites
great plan
Ironically, Iran is a member of the Non-Proliferation Treaty (NPT), which Israel shuns. As shown by The Fall of Israel (2025), the US/Israeli path to the carnage across the Middle East was paved almost 60 years ago.Antiwar.com
relentless_eduardo reshared this.
Twenty years ago, one day in June 2005, I talked with an Iranian man who was selling underwear at the Tehran Grand Bazaar. People all over the world want peace, he said, but governments won’t let them have it.Antiwar.com
I guess everybody wants everybody else genocided these days
it's go-to solution for all problems
Reprinted from Bracing Views with the author’s permission. U.S. messaging to Iran, courtesy of President Trump, is quite simple: We slugged you (with our bombing attacks on three nuclear sites in your country), and if you don’t like it, we’ll slug yo…Antiwar.com Blog
By Dae-Han Song | June 17, 2025Dae-Han Song (Korea Policy Institute)
While global diplomats were still exchanging draft terms to revive the nuclear agreement with Iran, the United States launched airstrikes on Iranian nuclear infrastructure.Antiwar.com Blog
#Esther #Bockwyt & #Raphael #Bonelli
RPP Institut
#Wokismus = #Religion
#Woke #Wokeness = #NAZI #NoNazi #Gender #Gendern #Linke
*Wokismus, Tabus und das Ende der Vernunft*In diesem Gespräch analysieren Esther Bockwyt und Raphael Bonelli die psychologischen Hintergründe des Wokismus: D...YouTube
like this
Slowly but surely everyone is now exposing the ridiculous lies of the orange clown's "successful mission".
How hard it is to understand that being a lying clown is far worse than being just a clown.
#WashingtonPost | In the two days before #US strikes on three Iranian nuclear facilities, satellite images revealed "unusual truck and vehicle activity" at #Iran's #Fordow enrichment facility, according to a senior Maxar analyst.
Rutgers University
Eine Studie ließ Studenten vermeintlich „antirassistische“ Aufsätze lesen – danach sahen die Probanden Rassismus, wo nach objektiven Kriterien keiner war. Die Studie soll so aufzeigen, dass Diversitätsprogramme vor allem mehr Vorurteile verursachen.
apollo-news.net/studie-zeigt-d…
#Woke #narrative #diversity #monomyth #hero #journey #hollywood #movie #storytelling #influence #imagination #hope #coping
#Wokismus = #Religion
#Woke #Wokeness = #NAZI #NoNazi #Gender #Gendern #Linke
like this
Wir sind jetzt in #Israel bei einer neuen Deutung des 7.10.2023 angekommen:
7.10.23? Der hat Israel gerettet, sonst hätten wir den Iran nicht bombardieren können.
So ein Vertrauter von Netanyahu heute.
»💥Aryeh Dery, ostensibly a man of faith and one of the people closest to Netanyahu, just said "The massacre of October 7th saved the people of Israel." 1200 citizens killed. Almost 1000 soldiers killed. Some 50,000 Gazans killed. 50 hostages still held.«
(Noga Tarnopolsky)
By Arnold August and Luis Toledo Sande Despite the US blockade, Cuba, like many other countries worldwide, has a high level of mobile telephone users. In a population of nearly 11 million (this pop…Network in Defense of Humanity-Cuba
#Gaza changed us - now let's change the world
by Yasmeen Daher, University of Potsdam
But Gaza has changed us, and I found myself in a frenzy of uninterrupted speaking since the genocide began. In November 2023, I found myself mentioning my father for the very first time in a political writing.
Perhaps because, after a month of carpet bombing in Gaza, I finally admitted what I had refused to admit until then—that we might be living (in the Palestinian lexicon, “reliving”)
a horrendous moment, worse
than the ethnic cleansing of the Nakba in 1948, that my father lived.
This, in addition to the fact that when we are invited to speak, we often need special permission to narrate, to use Edward Said’s words.
(Said 1984). And when such permission is granted, after we have paid a tormenting and excruciating price- through considerable destruction both in actual and potential lives—the permission is limited to what is
acceptable, in tone, and does not upset the audience.
These directions vary according to context, geography, and language. I have often felt the need to perform a certain identity of Palestinianism, for better or for worse, which I was not always successful in inhabiting
through my political practice.
Following the judicial-political notion of “the right to have rights,”
which Hannah Arendt offers us, I want to offer an understanding of the German hegemonic public discourse around Palestine
Historian DESTROYS #NATO War Lies About #Yugoslavia
youtube.com/watch?v=_uCXjrTZd2…
You can’t understand the Ukraine War unless you understand the neocon poster-child which was the Yugoslav Wars. The way the US-NATO establishment managed not...YouTube
London (Quds News Network)- Israel’s continued prevention of international journalists from entering Gaza appears to be motivated less by concerns for their safety and more by a desire to avoid properEditing Team (Quds News Network)
actually rather meaningless
"rewrite the entire corpus of human knowledge" silly pipedream
When Emperor Hadrian visited Alexandria, the poet Pancrates presented him with a beautiful lotus flower. Awestruck by the magnificent rosy-red petals, Hadri...YouTube
A gender equality study shows that gender inequality is worsening financial hardship in deprived regionsKate Bermingham (Byline Times)
The government’s attempt to brand non-violent direct activists as “terrorists” has already backfired ~ Tabitha Troughton ~ This was the week when language in the UK temporarily gave up.anarchy (Freedom Press)
Iran’s president says Tehran’s decisive response to the Israeli regime’s acts of aggression forced US to “step in” and attack the peaceful nuclear sites.PressTV
Is there any legitimacy to hit whoever has (alleged) nuclear, putting at risk millions of people, animals and the nature as a whole?
Hands off Iran now.
Proletarian Rage reshared this.
"For those of you who are “nuclear curious”, the attack on Iranian nuclear sites could have resulted in trace amounts of radioactive material getting kicked into the atmosphere. The Earth’s atmosphere is a river that flows across the globe, and other places will “see” those isotopes with sensitive enough instruments."
mastodon.cooleysekula.net/@ste…
#nuclear #imperialism #USa #uspol #ClimateCrisis #pollution #warcrimes #crimesagainsthumanity #usimperialism #deathtoamerica #Iran
remap.jrc.ec.europa.eu/Advance…
The Radioactivity Environmental Monitoring (REM) group of the European Commission Joint Research Centre (JRC)remap.jrc.ec.europa.eu
Proletarian Rage reshared this.
Wolfbrigade - HIDE AND SEEK
Conscious killing
World on hold
No reaction made
Worldpolice in control
Still they get to play their game
Hide and seek
Weapons of mass destruction
Create your terrorists
Bloodspill for oil
Their dirty dollars
Try to keep the truth untold
Still they get to play their game
Hide and seek
Weapons of mass destruction
Suck the earth dry then soak in with blood
Pass the blame on something else
Cover up what's corrupt
Still they get to play their game
Hide and seek
Weapons of mass destruction
youtube.com/watch?v=njVmGeTreG…
#warmongers #imperialism #music #crust #dbeat #Iran #FuckUSImperialism
01. Pray 0:0002. Mindprowler 0:4803. Hide And Seek 3:0304. Done Got Wise 4:5605. Dogmas Corrode 6:4406. Sad Attempt 8:5207. Waist Deep 11:4808. Why I Fight 1...YouTube
Proletarian Rage reshared this.
World leaders, including the EU and the UK, have called on Iran to engage in negotiations with the US and Israel.TheJournal.ie
Our socials: fediverse.blog/~/ActaPopuli/fo…
#geopolitics #imperialism #war
After Israel's genocide became untenable for even Israel's staunchest allies to support, the West needed a more “perfect villain” to keep backing Israel. And there was no better villain for an indoctrinated mind than Iran.
mondoweiss.net/2025/06/how-isr…
After Israel’s genocide became untenable for even Israel’s staunchest allies to support, the West needed a more “perfect villain” to keep backing Israel. And there was no better villain for an indoctrinated mind than Iran.Qassam Muaddi (Mondoweiss)
ocram oubliat likes this.
Bonjour à tous. Ici le juge Andrew Napolitano pour Judging Freedom.Bienvenue dans cette édition spéciale du dimanche — nous sommes le vingt-deux juin deux mi...YouTube
Trump has announced a successful attack on the Fordow, Natanz and Esfahan facilities using B-2 bombers and submarine-launched missilesRT
Wow Linus Has Gotten Really Old.
Long-time rivals Bill Gates and Linus Torvalds meet for the first time, have dinner — 'No major kernel decisions were made, but maybe next dinner'
It is quite a surprise that the kingpins behind Windows and Linux never met previously.
Emmanuel Florac reshared this.
A "sulfide-based solid-state battery that offers driving ranges of up to 3,000 kilometres and ultra-fast charging in just five minutes" has been patented by Huawei.
"The patent outlines a solid-state battery architecture with energy densities between 400 and 500 Wh/kg, potentially two to three times that of conventional lithium-ion cells. The filing also details a novel approach to improving electrochemical stability: doping sulfide electrolytes with nitrogen to address side reactions at the lithium interface, a long-standing obstacle to the commercialisation of sulfide-based batteries. Huawei's design aims to boost safety and cycle life by mitigating degradation at this critical junction."
"China's EV and tech sectors are aggressively exploring solid-state battery technologies to reduce reliance on established battery suppliers such as CATL and BYD."
"CATL aims to begin pilot production of a hybrid solid-state battery by 2027. Going High-Tech's 'Jinshi' battery -- featuring 350 Wh/kg energy density and 800 Wh/L volume density -- has entered small-scale production. At the same time, Beijing WeLion has begun manufacturing a 50 Ah all-solid-state cell with national certification."
Keep in mind, this is a patent. Nothing happens with most patents. They get filed, but the idea is never commercialized. Sometimes they get involved in patent lawsuits or threats of patent lawsuits. Or they just sit around as part of a corporations "war chest" that protects it against patent lawsuits.
Huawei's 3,000km solid-state battery patent with 5-minute charge ignites industry race
Huawei’s patent filing describes a sulfide-based solid-state battery targeting higher energy density and reduced charging timeAdrian Leung (CarNewsChina.com)
like this
Emmanuel Florac reshared this.
Probably -- that would be the norm these days I guess.
Still nothing about this on electrek, though I do see three stories from back in Feb about, Toyota, Mercedes-Benz, and Nissan announcing things about all-solid-state EV batteries. Dunno how those differ from hybrid solid-state batteries.
Lorsque le génocide israélien est devenu insoutenable, même pour les alliés les plus fidèles d’Israël, l’Occident avait besoin d’un...mcinformactions.net
Emmanuel Florac reshared this.
like this
Emmanuel Florac reshared this.
#US officials admit they don't know the fate of #Iran's uranium reserves - #NYT
And yet that doesn't stop them from gloating over some shity hits on some rocks.
Iran had proactively moved enriched uranium and now has every reason to build nuclear weapons to defend itself against #US aggression.
With the support of the whole world.
Now US will never be able to add Iran to the pile of countries they have destroyed.
This is what the orange clown has achieved.
Cheers morons
like this
Emmanuel Florac reshared this.
You can follow us in other languages. Visit our website for more information wordsmith.social/protestation/…
“We are not moving in a vacuum - we know what we are doing and why we are doing it: for justice, dignity and humanity. I commend those of you who are activists here, because you are the antibodies of healthy societies, so please continue doing what you are doing.”
“The Gaza humanitarian foundation is a criminal enterprise, and it’s ludicrous that a state accused of committing genocide, war crimes and crimes against humanity is the one in charge of delivering aid. End the genocide, end the permanent occupation that Israel has maintained in the occupied territories and end the Apartheid.”
#Iran #Israel #Trump #War #Gaza #UN #USA #Hyprocrites #Europe #FreePalestine #SaveGaza #Genocide #Uk #EU #West #Palestine #USPol #Zionism
reshared this
Faggot Tourney 2025 Quarterfinals, Match 3 VOTING THREAD ( #faggottourney ) (VOTE HERE BY REPLYING):
Jeff Cliff vs. Wiz!
First, it's Jeff Cliff! Having remained relatively silent about the tournament hasn't helped him much: he's managed to make it to quarterfinals this year, having been knocked out round 1 last year by Trevor! Most famous for ABSOLUTELY LOVING IT when a man INJECTS a HOT CREAMY VAXX right into them, this is the most milquetoast person to make it this far. Willing to talk to anyone - even if they're defederated - this man's simple idealism and adherence to government health protocols has taken him pretty far this tournament.
Next is...Wiz.
I refuse to play him up. He's going to post pics of himself wearing a skirt and faggot socks if you make him win.
If that's what you want, you are a faggot... that's what you want isn't it? Seriously kill yourself. No he doesn't get a proper intro. Not even a pic. Please vote for Jeff.
Voting starts an hour early because whatever. Treat it like a bonus hour of time.
Pacers up by 1 at half. And Halliburton is out with an Achilles (that’s a shame🙄)
I was flipping channels so I only watched the last 4 minutes of the half, but my two big takeaways from what I saw:
First, these refs suck. They have swallowed their whistles and are letting them play. Second, the announcers are HORRIBLE!
Finding a billion factorials in 60 ms with SIMD
Link: codeforces.com/blog/entry/1432…
Discussion: news.ycombinator.com/item?id=4…
"I urge all sides to step back, return to the negotiating table and prevent further escalation," Kaja Kallas saidTASS
3/
Iran’s president Masoud Pezeshkian said it would be easy to veryfy #Iran was not developing atomic weapons, state TV reported on Thursday, a day after US president Donald Trump said he would like to have a verified nuclear peace agreement with Tehran.
Iran is not seeking a nuclear weapon as the mass killing of innocent people is prohibited in the Islamic Republic’s doctrine, Pezeshkian said in a televised meeting with foreign ambassadors in Tehran, reports Reuters.
“Verifying [our nuclear programme] is an easy task, they have come and verified every time they wanted to do so and they can come verify a hundred more times,” Pezeshkian said.
#Trump said on Wednesday he would like to have a verified nuclear peace agreement with Iran. During his previous term in office in 2018, Trump pulled the United States out of Tehran’s 2015 nuclear pact with world powers and reimposed sanctions that have crippled the country’s economy. The harsh measures prompted Tehran to violate the pact’s #nuclear limitations, reports Reuters.
#JCPOA #US #imperialism
theguardian.com/world/live/202…
For the first time in decades, a U.S. president has directly implied willingness to use nuclear weapons against a claimed adversary.
President Trump has issued what amounts to a #Ukraine-style ultimatum to #Iran: abandon your nuclear program within two months or face severe consequences.
“We can’t let them have a nuclear weapon,” Trump stated. “I would rather have a peace deal than the other option but the other option will solve the problem.”
youtube.com/watch?v=aHjLICrl5O…
Via @EndIsraeliApartheid
#USA administration is a back and forth on everything. The same with Iran. Their great desire is to destroy it. Their proxy, #IsraelTerroristState , waits on the corner to provoke a total war.
REPORTS show the Pentagon is preparing for a potential nuclear war with Iran. Ana Kasparian discusses on The Young Turks. Do you agree with TYT's take? Tell ...YouTube
The American government is more predictable than the laws of nature. They threat a country when they were the same people retreated from the previous agreement...
"US President Donald Trump is “seriously considering” Iran’s offer of indirect nuclear talks – but at the same time is beefing up forces in the region for a potential escalation, according to sources cited by Axios on 2 April."
thecradle.co/articles/trump-co…
#imperialism #iran #usa #nuclearwar #nuclear #usa
The US president renewed his threat against Iran a few days ago, vowing to bomb the country if Tehran does not make a dealthecradle.co
IOF admits radar failure let an Iranian missile hit #Haifa with no siren on Sunday
‘A localized detection failure led to the warhead falling without alert’ — IOF
Says lessons learned, but defense ‘is not hermetic’.
Try "defense is not at all"
🤣😂
like this
#Music on #Blue-Cosmic-Monkey
#HankSnow 5/9/1914 #Birth US country music singer and songwriter
Hank Snow- ~ (Now And Then There's) A #Fool Such As I
nowisthetime reshared this.
He just published a new 70-page essay called “Hard New World: Our Post American Future”, in which he argues - with considerable evidence to prove it - that while everyone debates about whether America will ultimately let China become the dominant regional power in the Western Pacific, it has in fact already withdrawn. White says that, effectively, beyond all the rhetoric, the contest is already over.
arnaudbertrand.substack.com/p/…
This is probably the single most important geopolitical analysis that I’ve heard this year, if not this decade.Arnaud Bertrand
New: open access article:
Language Gardens: Returning to the Poetics found in the Linguistic Diversity of the land.
We look at the way language ‘gardens’ and language gardens We consider the way dominant languages enslave and plantate; and think with permaculture.
TEHRAN – The United Nations Children’s Fund (UNICEF) has warned that kids in Gaza risk dying from thirst after the region’s water systems collapsed.Tehran Times
you can still use OpenRC instead if you want, and sxmo will continue to do so by default.
you can read here about why they added systemd.
As much as we might want to romanticise the idea of spending 6, 12, 24 months attempting to come up with an even vaguely competitive alternative to systemd,
There are alternatives like runit, dinit, s6. About some of the more useful features of systemd, how about we recreate them without thight coupling to one specific init+service manager-in-one?
beeng
in reply to als • • •Similar to yours OP I copy many URLs and then run my script that takes the number of URLs I copied eg 5,and downloads them with
yt-dlp
and GNUparallel
to~/Videos
I use CopyQ to hold the clipboard history.
gonzo-rand19
in reply to als • • •rm
to be interactive so I don't accidentally delete something important and formkdir
to create a parent directory if necessary.This extract function (which I didn't make myself, I got it from when I was using nakeDeb) has been pretty useful too.
nakeDeb | une Debian naked -but safe for work-
nakedeb.arpinux.orgutopiah
in reply to als • • •To answer your question realistically I did
history | sed "s/.* //" | sort | uniq -c | sort -n
which returned as first non standard command
lr
which from mygrep lr ~/.bashrc
isalias lr="ls -lrth"
qpsLCV5
in reply to als • • •it's somewhat vibe coded but the one i probably use the most is this one to swap between speakers and headset. the device name to look for is just put directly in there, it'd take some adjustment to run it on different machines. this is in my .bashrc:
switch sinks
toggle_audio() {
# Find headset sink ID dynamically
headset_id=$(pactl list sinks short | grep "Plantronics" | awk '{print $1}')
# Find speakers sink ID dynamically
speakers_id=$(pactl list sinks short | grep "pci-0000_05_00.6" | awk '{print $1}')
# Get current default sink
current_sink=$(pactl get-default-sink)
# Get current sink ID
current_id=$(pactl list sinks short | grep "$current_sink" | awk '{print $1}')
# Toggle between the two
if [ "$current_id" = "$headset_id" ]; then
pactl set-default-sink "$speakers_id"
echo "Switched to speakers (Sink $speakers_id)"
else
pactl set-default-sink "$headset_id"
echo "Switched to headset (Sink $headset_id)"
fi
}
generally i try not to use too many custom things because for work i regularly work on all kinds of different servers and i've just been too lazy to set up some solution to keep it all in sync. someday....
Nugscree
in reply to als • • •Because using docker can sometimes cause ownership issues if not properly configured in your docker-compose.yml, I just added an alias to ~/.zshrc to rectify that.
-edit-
Only run this script in your user owned directories, e.g. anything from ~/ (or /home/) you might otherwise cause ownership issues for your system.
hobbsc
in reply to als • • •alias fucking='sudo'
(my coworkers often usedprettyplease
instead)kibiz0r
in reply to als • • •I often want to know the status code of a
curl
request, but I don't want that extra information to mess with the response body that it prints to stdout.What to do?
Render an image instead, of course!
curlcat
takes the same params ascurl
, but it uses iTerm2'simgcat
tool to draw an "HTTP Cat" of the status code.It even sends the image to stderr instead of stdout, so you can still pipe
curlcat
tojq
or something.Note: This is macOS-specific, as written, but as long as your terminal supports images, you should be able to adapt it just fine.
golden_zealot
in reply to als • • •alias clip='xclip -selection clipboard'
When you pipe to this, for example
ls | clip
, it will stick the output of the command ran into the clipboard without needing to manually copy the output.mmmm
in reply to golden_zealot • • •I use a KDE variant of this that uses klipper instead (whatever you pipe to this will be available in klipper):
`#!/bin/sh
function copy {
if ! tty -s && stdin=$(</dev/stdin) && [[ "$stdin" ]]; then
stdin=$stdin$(cat)
qdbus6 org.kde.klipper /klipper setClipboardContents "$stdin"
exit
fi
}
copy $@`
pyr0ball
in reply to als • • •github.com/pyr0ball/PRbL-bashr…
GitHub - pyr0ball/PRbL-bashrc: Automated installer for PRbL and bashrc modifications
GitHubWQMann
in reply to als • • •I replaced rm with trash-put, just in case I realize I need some files that I removed down the line.
Official author don't recommend it due to different semantics. But honestly for my own personal use case its fine for me.
Also I like to alias xclip:
GitHub - astrand/xclip: Command line interface to the X11 clipboard
GitHubthingsiplay
in reply to WQMann • • •rm
directly, even with the alias in effect, you can put a backslah in front of the command to use its original meaning:\rm filename
XXIC3CXSTL3Z
in reply to thingsiplay • • •thingsiplay
in reply to XXIC3CXSTL3Z • • •I'm not sure what you mean with the question. If you have any alias like
alias rm='ls -l'
in your .bashrc in example, then you cannot use the original commandrm
anymore, as it is aliased to something else. I'm speaking about the terminal, when you enter the command. However, if you put a backslash in front of it like\rm
in the terminal, then the alias for it is ignored and the original command is executed instead.Edit: Made a more clear alias example.
XXIC3CXSTL3Z
in reply to thingsiplay • • •harsh3466
in reply to als • • •I have a bunch of the server aliases. I use those and gl the most.
vortexal
in reply to als • • •vortexal
Unknown parent • • •I looked through my bash history and it looks like I needed it to build an Xbox eeprom editor for Xemu. Xemu doesn't (or at least didn't, I haven't used newer versions yet) have a built in eeprom editor and editing the Xbox eeprom is required for enabling both wide screen and higher resolutions for the games that support them natively.
I just looked at Xemu's documentation, and it looks like they've added a link to an online eeprom editor, so the editor I used (which they do still link to) is no longer required.
some_guy
in reply to als • • •alias f='open -a Finder .'
Caveman
in reply to als • • •g-push
jsomae
in reply to als • • •I wrote a script called
please
. You inputplease
followed by any other command (e.g.please git clone
,please wget blahblah
) and a robotic voice will say "affirmative," then the command will run, and when it completes, the robotic voice reads out the exit code (e.g. "completed successfully" or "failed with status 1" etc.)This is useful for when you have a command that takes a long time and you want to be alerted when it's finished. And it's a gentleman.
notfromhere
in reply to jsomae • • •jsomae
in reply to notfromhere • • •It's full of random shit I put in as a joke, but here it is. You can use
please -s
to get lightly roasted when your command fails.::: spoiler spoiler
:::
like this
gonzo-rand19 likes this.
phantomwise
in reply to jsomae • • •Azzk1kr
in reply to jsomae • • •Ferk
in reply to Azzk1kr • • •Also,
printf '\a'
will output an alert bell character which should make the terminal beep/blink and be highlighted for attention by your wm/compositor if it's unfocused.I have that aliased to
a
to get notified whenever a long running command finishes just by adding;a
at the end.ter_maxima
in reply to als • • •ganis
:git add -A && sudo nixos-rebuild switch --impure - j$(nproc)
Everyone who uses nixos probably has a similar alias set x)
Lexi Sneptaur
in reply to als • • •I usually set up an alias or script to update everything on my system. For example, on Ubuntu, I would do this:
alias sysup='snap refresh && apt update && apt upgrade'
And on Arch, I do this:
alias sysup ='flatpak update && paru'
Funny enough you'd need to use
sudo
to run this on Ubuntu, but not in the Arch example because paru being neatGideonBear
in reply to Lexi Sneptaur • • •GitHub - topgrade-rs/topgrade: Upgrade all the things
GitHubMyNameIsRichard
in reply to GideonBear • • •GideonBear
in reply to MyNameIsRichard • • •Because:
1. If you install any new software that needs updating, you don't need to update your alias.
2. If any software makes changes that break your alias, (theoretically) the bit of software should be able to fix it quickly, without you needing to pay any attention to it.
3. The bit of software can more easily do advanced things than the simple alias. For example, I added functionality to update JetBrains Toolbox and IDE's installed with it. A simple alias could not do this, because Toolbox does not have a simple update command, however I made it work by enabling automatic updates temporarily, and then inspecting the log for updates. Now the end-user doesn't have to think about this at all. Other things that could be done but are not implemented yet include parallelization, and listing updated components in a neat summary (PR linked).
Of course if you're a minimalist, then you probably don't have that much stuff that needs upgrading in the first place; for me personally I have
deb-get
,uv
,cargo
, andflatpak
, to name a few; the alias was getting longer and longer until I was able to remove it completely by switching to Topgrade.Adds framework for listing updated components in the summary by GideonBear · Pull Request #1147 · topgrade-rs/topgrade
GitHubphantomwise
in reply to als • • •alias nmtui="NEWT_COLORS='root=black,black;window=black,black;border=white,black;listbox=white,black;label=blue,black;checkbox=red,black;title=green,black;button=white,red;actsellistbox=white,red;actlistbox=white,gray;compactbutton=white,gray;actcheckbox=white,blue;entry=lightgray,black;textbox=blue,black' nmtui"
It's
nmtui
but pretty!mavu
in reply to als • • •alias fuck='sudo $(history -p \!\!)'
Feathercrown
in reply to mavu • • •sudo !!
mavu
in reply to Feathercrown • • •Feathercrown
in reply to mavu • • •mavu
in reply to Feathercrown • • •potentiallynotfelix
in reply to als • • •alias qr='qrencode -t ansiutf8'
This makes qr codes in the terminal.
needs the
qrencode
packageExample usage and output:
felix@buttsexmachine:~$ qr lemmy.fish █████████████████████████████ █████████████████████████████ ████ ▄▄▄▄▄ █▄ ██ █ ▄▄▄▄▄ ████ ████ █ █ █ █▄▀▄█ █ █ ████ ████ █▄▄▄█ █▄▄▄███ █▄▄▄█ ████ ████▄▄▄▄▄▄▄█▄▀ █▄█▄▄▄▄▄▄▄████ ████▄▄▄ █▀▄▀▄▀ █▀▄▀▀ █ ████ ████▄ ▀▄▀▄▄ ▀▄▄█ ▄▄▄█▀█ ▄████ ██████▄███▄█▀█ ▄█▄ █▀█▀▄▄████ ████ ▄▄▄▄▄ ██ ▀▀▀▀▄ ▀█▀████ ████ █ █ █▀ ▀▄█▀▀▄▄ ▀█████ ████ █▄▄▄█ █ ▀█ ▀█▀ █▄▄█▀████ ████▄▄▄▄▄▄▄█▄▄█▄▄▄███▄▄██████ █████████████████████████████ █████████████████████████████
___balsoft
in reply to als • • •I also often use
And finally some Nix things:
JTskulk
in reply to als • • •Hey OP, consider using $XDG_RUNTIME_DIR instead of /tmp. It's now the more proper place for these kinds of things to avoid permission issues, although I'm sure you're on a single user system like most people. I have clipboard actions set to download with yt-dlp 😀
My favorite aliases are:
alias dff='findmnt -D -t nosquashfs,notmpfs,nodevtmpfs,nofuse.portal,nocifs,nofuse.kio-fuse'
alias lt='ls -t | less'
Ferk
in reply to JTskulk • • •Good idea! I'll steal that but I would rather be able to give a directory path as parameter (and show in colors, and don't pause if less than 1 page of content, and support the scrolwheel), also piping
ls
forces it to be 1 single column so might as well show more details, personally I'm gonna use this instead:JTskulk
in reply to Ferk • • •oplkill
in reply to als • • •treeshateorcs
in reply to als • • •Kawawete
in reply to als • • •Not on mine tho
thingsiplay
in reply to Kawawete • • •With how many new Linux users we get recently, I don't like this joke at all without a disclaimer. Yes yes, its your own fault if you execute commands without knowing what it does. But that should not punish someone by deleting every important personal file on the system.
In case any reader don't know,
rm
is a command to delete files and with the optionrm -r
everything recursively will be searched and deleted on the filesystem. Option-f
(here bundled together as-rf
) will never prompt for any non existing file. The/
here means start from the root directory of you system, which in combination with the recursive option will search down everything, home folder included, and find every file. Normally this is protected todo, but the extra option--no-preserve-root
makes sure this command is run with the root/
path.Haha I know its funny. Until someone loses data. Jokes like these are harmful in my opinion.
questionAsker
in reply to als • • •