Skip to content

OpenSource is Better

OpenSource software should be encouraged more…

  • Home
  • Most Popular
  • HTML Sitemap

Category: Programming

OpenCode: The Model-Agnostic AI Coding CLI I’ve Relied On for a Year

I have been using AI coding assistants for a while now. They all do roughly the same thing: help you write and understand code faster. But the one I k[……]

Read more

Author AndreaPosted on July 25, 2026July 25, 2026Categories OpenSource, Programming, TipTags AI, AI-Agent, CLI, DevOps, Linux, OpenSource

AWS dynamic IP ranges

Need to know the dynamic IP ranges used by AWS in a specific region? AWS publishes this as a JSON file.

curl -s https://ip-ranges.amazonaws.com/ip-ra[......]

Read more

Author AndreaPosted on November 15, 2018June 25, 2026Categories Fun, How To, Programming, TipTags AWS, Bash, Linux, One-linerLeave a comment on AWS dynamic IP ranges

Find sdx device/ATAx mappings

When dealing with hardware, you often see log messages like:

ata9: hard resetting link
ata9: SATA link up 1.5 Gbps (SStatus 113 SControl 310)

To map[……]

Read more

Author AndreaPosted on March 18, 2017June 25, 2026Categories How To, Programming, TipTags Bash, Hard Disk, Linux, One-linerLeave a comment on Find sdx device/ATAx mappings

Convert Squid/timestamps to a human readable format

Somebody had the brilliant idea of using Unix timestamps in Squid log files. It makes parsing easy but reading them is not so human-friendly.

This is[……]

Read more

Author AndreaPosted on January 31, 2017June 25, 2026Categories Programming, TipTags Bash, One-liner, Perl, Squid1 Comment on Convert Squid/timestamps to a human readable format

bash – remove first line with tail and last line with head

Say you have a file called test.txt:

line 1
line 2
line 3

Remove the first line:

tail -n +2 test.txt

Remove the last line:

head -n -1 test.txt

R[……]

Read more

Author AndreaPosted on January 29, 2017June 25, 2026Categories Programming, TipTags Bash, Head, One-liner, TailLeave a comment on bash – remove first line with tail and last line with head

sed – match and replace BIND/DNS serial number programmatically

I had to make modifications to several BIND zone files. Sed proved itself invaluable once again.

The zone files looked like this:

domain.com. IN SOA[......]

Read more

Author AndreaPosted on January 27, 2017June 25, 2026Categories How To, Programming, TipTags Bash, DNS, SedLeave a comment on sed – match and replace BIND/DNS serial number programmatically

Remove all non-ascii characters with perl

Sometimes when creating one-liners, the source contains non-ASCII characters that make parsing harder. To strip them all out, use Perl:

cat dirty-sou[......]

Read more

Author AndreaPosted on January 26, 2017June 25, 2026Categories How To, Programming, TipTags One-liner, PerlLeave a comment on Remove all non-ascii characters with perl

Converting spreadsheets to text files with ssconvert

ssconvert is a utility shipped with Gnumeric, a command-line spreadsheet converter. It is useful when you have data in a spreadsheet and want to parse[……]

Read more

Author AndreaPosted on January 25, 2017June 25, 2026Categories How To, Programming, TipTags BashLeave a comment on Converting spreadsheets to text files with ssconvert

How to update all docker base images with one command

To pull the latest version of all your Docker images at once:

for docker in $(docker images | awk '{print $1,$2}' | sed 's/ /:/g' | grep -v REPOSITOR[......]

Read more

Author AndreaPosted on October 4, 2016June 25, 2026Categories How To, Programming, TipTags Bash, Docker, Linux, One-linerLeave a comment on How to update all docker base images with one command

How to update all pip python packages with one command

To update all your pip-installed Python packages at once:

sudo pip install -U `pip list -o | cut -d ' ' -f1 | tr '\n' ' '`

This lists outdated packa[……]

Read more

Author AndreaPosted on September 11, 2016June 25, 2026Categories How To, Programming, TipTags Bash, Linux, One-liner, Pip, PythonLeave a comment on How to update all pip python packages with one command

Posts pagination

Page 1 Page 2 Next page

Follow OpenSource is Better!

Follow Us on TwitterFollow Us on RSS

Most Popular

Tag Cloud

  • Agent-Orchestration
  • AI
  • AI-Agent
  • Android
  • Audio
  • Bash
  • broadcom
  • CMS
  • Cross-Platform
  • Debian
  • Debian-13
  • DevOps
  • Docker
  • Firewall
  • Free-Software
  • fstab
  • Hard Disk
  • iptables
  • Linux
  • LVM
  • mail
  • MediaPlayer
  • migration
  • Monitoring
  • MultiMedia
  • Network
  • One-liner
  • OpenSource
  • Opinion
  • Paperclip
  • Partitioning
  • Perl
  • PHP
  • Pictures
  • Programming
  • Proxmox
  • Smartphone
  • Software
  • ssh
  • Ubuntu
  • Upgrade
  • vendor lock-in
  • Video
  • vmware
  • Web

Categories

  • Event
  • Fun
  • General
  • How To
  • News
  • OpenSource
  • Programming
  • Re-share
  • Review
  • Tip

Useful Links

  • Prism Break
  • Droid Break
  • Opensource.com alternatives
Creative Commons License
Open Source is Better by https://www.opensourceisbetter.com/ is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
  • Home
  • Most Popular
  • HTML Sitemap
OpenSource is Better Proudly powered by WordPress