Skip to main content

Search

Items tagged with: Bash


It is once again time to give thanks to Brian Fox, the Black American programmer that has given us BASH and echo! Thank you for your INCREDIBLE contributions to open source software, Unix, and Linux. It literally would not be the same without you. BASH is still absolutely foundational to all computing today. Happy Black History Month to an absolute icon!

#bash #bashscript #echo #foss #linux #unix #BlackHistoryMonth #gnu

Photo of Brian J. Fox, a Black man with a buzz cut looking directly at the camera with a neutral facial expression. He is has black facial hair with a few white hairs. He is heavier set and wearing a black t-shirt with his arms folded.

He was born in 1959 and is a GNU hacker, programmer, entrepreneur, consultant, author, and free software advocate.


I made a new wallpaper for my #linux desktop.
It combines some #bash scripting with #conky and xrootgif to display random notes with information I want to memorize.
I also wanted to use some retro textures and effects reminiscent of some horror games.


Nowy wpis na blogu!

Serwer domowy – podstawowa konfiguracja

#bash #debian #firewall #ipadonly #kluczessh #linux #nano #odroid #passwd #raspberrypi #skrypt #ssh #termius #ubuntu #ufw #update #upgrade

Autor: @to3k@mstdn.social

https://blog.tomaszdunia.pl/serwer-domowy-podstawowa-konfiguracja/


@Tobias@Chefingenieur 🏳️‍🌈🇪🇺🌍🇺🇦 Ich wuerde hier eher #GIT bei dir lokal installieren, da kommt immer ein #BASH fuer Windows mit. Dann das Script lokal ausfuehren und erneut hochladen. Dann geraet das nicht ausser Kontrolle. Automatische Updates sind Unheil und bereiten mir Alptraeume.


Official #fediverse #introduction post!

My name is Kellyn Delgado and I am the admin here on friendo.space. I am a total #computer nerd. I've been tinkering with computer software since I was 6. I'm not a developer but I am brushing up on my #bash and #html skills.

My passion is helping people explore the wonders of new #technology, whether that is from #google, the #floss community, or others. I plan to blog about them soon.

I also like #pokemon, #digimon, #socialism, #gemini, #music, etc.


Uploading photo using API?


!Friendica Support, I can't figure out how to upload photos to #Friendica using API, I keep getting "Error 400, no media data submitted". Can anyone point me in the right direction?

Attempt in #Python:
r = requests.get(someurl)
encr = base64.b64encode(r.content)
payload = {'media':encr, 'album':'Mobile'}
r = requests.post('https://friends.deko.cloud/api/friendica/photo/create.xml', data=payload, auth=HTTPBasicAuth('user', 'password'))

Attempt in #Bash:
$ base64 /tmp/img.jpg > /tmp/img64.jpg
$ a=$(cat /tmp/img64.jpg)
$ curl -u user:password --data "album=Mobile" --data "media=$a" https://friends.deko.cloud/api/friendica/photo/create.xml

In both cases I get "400, no media submitted" response.