On this day: 25 August

2025 · 1 year ago

Listened to 9 tracks

The Smile, The Darkness, Arcade Fire and 6 more · 30m ·

Tracklist
  1. We Don't Know What Tomorrow Brings · The Smile
  2. Knockers · The Darkness
  3. We Used to Wait · Arcade Fire
  4. Where the Wild Roses Grow · Nick Cave & the Bad Seeds
  5. Song For The Dead · Queens of the Stone Age
  6. Points of Authority · Linkin Park
  7. Spillways · Ghost
  8. Down by the Water · PJ Harvey
  9. Toxicity · System of a Down

Listened to 2 tracks

Slipknot, Judas Priest · 5m ·

Tracklist
  1. Eyeless · Slipknot
  2. Hell Patrol · Judas Priest

Listened to 8 tracks

Queen, Eminem, Tool and 5 more · 31m ·

Tracklist
  1. Killer Queen · Queen
  2. Godzilla (feat. Juice WRLD) · Eminem
  3. Forty Six & 2 · Tool
  4. Friday Night · The Darkness
  5. Promise · Akira Yamaoka
  6. Bird with a Hole in the Stomach · Buckethead
  7. O Children · Nick Cave & the Bad Seeds
  8. (Nice Dream) · Radiohead

2024 · 2 years ago

Earned 1 trophy in Shadow of the Colossus

1 bronze ·

Trophies
  • Skilled Warrior

Listened to Innuendo by Queen

11 listens · 52m ·

Tracklist
  1. Innuendo · Queen
  2. I'm Going Slightly Mad · Queen
  3. Headlong · Queen
  4. I Can't Live With You · Queen
  5. Don't Try So Hard · Queen
  6. Ride the Wild Wind · Queen
  7. All God's People · Queen
  8. These Are the Days of Our Lives · Queen
  9. The Show Must Go On · Queen
  10. Late Home Tonight, Pt. II · Roger Waters
  11. Talk About It (feat. King Mez & Justus) · Dr. Dre

I am…

I found this via the WordPress Jetpack app. Originally posted on “Lost In Amberland“ I am a breeze, rustling through the Autumn leaves. Crisp clean air that revitalizes the land. I am a ray of sunshine, blanketing the Earth with my warmth. Providing the light for all life. I am the rain, washing the dust

I found this via the WordPress Jetpack app. Originally posted on “Lost In Amberland“

A purple sky fading into sunrise or sunset. Trees silhouette in bottom of image

I am a breeze, rustling through the Autumn leaves. Crisp clean air that revitalizes the land. I am a ray of sunshine, blanketing the Earth with my warmth. Providing the light for all life. I am the rain, washing the dust of the day away. Breathing new life into everything I touch. I am a […]

I am…

2023 · 3 years ago

Earned 1 trophy in Red Dead Redemption

1 bronze ·

Trophies
  • Strange Things are Afoot

Listened to 15 tracks

Otep, Green Day, Iron Maiden and 9 more · 1h 14m ·

Tracklist
  1. Battle Ready · Otep
  2. Sacrilege · Otep
  3. Waiting · Green Day
  4. Hysteria · Muse
  5. Rasputin · Boney M.
  6. Numb · Linkin Park
  7. Poison · Alice Cooper
  8. Surfacing · Slipknot
  9. Can I Play With Madness (1998 Remaster) · Iron Maiden
  10. Here to Stay · Korn
  11. Holiday · Green Day
  12. Roots Bloody Roots · Sepultura
  13. Cinnamon Spider · Jack Off Jill
  14. Gone Away · The Offspring
  15. Wasted Years · Iron Maiden

Listened to 3 tracks

Otep, Cradle of Filth, Jack Off Jill · 7m ·

Tracklist
  1. Confrontation · Otep
  2. No Time to Cry (Sisters of No Mercy Mix) · Cradle of Filth
  3. Nazi Halo · Jack Off Jill

Beyond Aliases — define your development workflow with custom bash scripts

Being a Linux user for just over 10 years now, I can’t imagine my life with my aliases. Aliases help with removing the repetition of commonly-used commands on a system. For example, here’s some of my own that I use with the Laravel framework: You can set these in your ~/.bashrc file. See mine in

Being a Linux user for just over 10 years now, I can’t imagine my life with my aliases.

Aliases help with removing the repetition of commonly-used commands on a system.

For example, here’s some of my own that I use with the Laravel framework:

Bash
alias a="php artisan"
alias sail='[ -f sail ] && bash sail || bash vendor/bin/sail'
alias stan="./vendor/bin/phpstan analyse"

You can set these in your ~/.bashrc file. See mine in my dotfiles as a fuller example.

However, I recently came to want greater control over my development workflow. And so, with the help of videos by rwxrob, I came to embrace the idea of learning bash, and writing my own little scripts to help in various places in my workflow.

A custom bash script

For the example here, I’ll use the action of wanting to “exec” on to a local docker container.

Sometimes you’ll want to get into a shell within a local docker container to test / debug things.

I found I was repeating the same steps to do this and so I made a little script.

Here is the script in full:

Bash
#!/bin/bash

docker container ls | fzf | awk '{print $1}' | \
xargs -o -I % docker exec -it % bash

Breaking it down

In order to better understand this script I’ll assume no prior knowledge and explain some bash concepts along the way.

Sh-bang line.

the first line is the “sh-bang”. It basically tells your shell which binary should execute this script when ran.

For example you could write a valid php script and add #!/usr/bin/php at the top, which would tell the shell to use your php binary to interpret the script.

So #!/usr/bash means we are writing a bash script.

Pipes

The pipe symbol: |.

In brief, a “pipe” in bash is a way to pass the output of the left hand command to the input of the right hand command.

So the order of the commands to be ran in the script is in this order:

  1. docker container ls
  2. fzf
  3. awk ‘{print $1}’
  4. xargs -o -I % docker exec -it % bash

docker container ls

This gives us the list of currently-running containers on our system. The output is the list like so (I’ve used an image as the formatting gets messed up when pasting into a post as text) :

fzf

So the output of the docker container ls command above is the table in the image above, which is several rows of text.

fzf is a “fuzzy finder” tool, which can be passed a list of pretty much anything, which can then be searched over by “fuzzy searching” the list.

In this case the list is each row of that output (header row included)

When you select (press enter) on your chosen row, that row of text is returned as the output of the command.

In this image example you can see I’ve typed in “app” to search for, and it has highlighted the closest matching row.

awk ‘{print $1}’

awk is an extremely powerful tool, built into linux distributions, that allows you to parse structured text and return specific parts of that text.

'{print $1}' is saying “take whatever input I’m given, split it up based on a delimeter, and return the item that is 1st ($1).

The default delimeter is a space. So looking at that previous image example, the first piece of text in the docker image rows is the image ID: `”df96280be3ad” in the app image chosen just above.

So pressing enter for that row from fzf, wil pass it to awk, which will then split that row up by spaces and return you the first element from that internal array of text items.

xargs -o -I % docker exec -it % bash

xargs is another powerful tool, which enables you to pass what ever is given as input, into another command. I’ll break it down further to explain the flow:

The beginning of the xargs command is as so:

Bash
xargs -o -I %

-o is needed when running an “interactive application”. Since our goal is to “exec” on to the docker container we choose, interactive is what we need. -o means to “open stdin (standard in) as /dev/tty in the child process before executing the command we specify.

Next, -I % is us telling xargs, “when you next see the ‘%’ character, replace it with what we give you as input. Which in this case will be that docker container ID returned from the awk command previously.

So when you replace the % character in the command that we are giving xargs, it will read as such:

Bash
docker exec -it df96280be3ad bash

This is will “exec” on to that docker container and immediately run “bash” in that container.

Goal complete.

Put it in a script file

So all that’s needed now, is to have that full set of piped commands in an executable script:

Bash
#!/bin/bash

docker container ls | fzf | awk '{print $1}' | xargs -o -I % docker exec -it % bash

My own version of this script is in a file called d8exec, which after saving it I ran:

Bash
chmod +x ./d8exec

Call the script

In order to be able to call your script from anywhere in your terminal, you just need to add the script to a directory that is in your $PATH. I keep mine at ~/.local/bin/, which is pretty standard for a user’s own scripts in Linux.

You can see how I set my own in my .bashrc file here. The section that reads $HOME/.local/bin is the relevant piece. Each folder that is added to the $PATH is separated by the : character.

Feel free to explore further

You can look over all of my own little scripts in my bin folder for more inspiration for your own bash adventures.

Have fun. And don’t put anything into your scripts that you wouldn’t want others seeing (api keys / secrets etc)

Listened to 3 tracks

Slipknot, Cradle of Filth, blink-182 · 14m ·

Tracklist
  1. People = Shit · Slipknot
  2. Gilded Cunt · Cradle of Filth
  3. Apple Shampoo · blink-182

2019 · 7 years ago

Listened to V-2 Schneider by David Bowie

Listened to Mind Is On My Mind by Du Blonde

2017 · 9 years ago

Listened to Mezmerize by System of a Down

15 listens · 1h 1m ·

Tracklist
  1. Papercut · Linkin Park
  2. One Step Closer · Linkin Park
  3. With You · Linkin Park
  4. Soldier Side · System of a Down
  5. B.Y.O.B. · System of a Down
  6. Revenga · System of a Down
  7. Cigaro · System of a Down
  8. This Cocaine Makes Me... · System of a Down
  9. Violent Pornography · System of a Down
  10. Sad Statue · System of a Down
  11. Old School Hollywood · System of a Down
  12. Lost in Hollywood · System of a Down
  13. Attack · System of a Down
  14. Dreaming · System of a Down
  15. Kill Rock And Roll · System of a Down

Listened to 21 tracks

Katy Perry, Gwen Stefani, Lana Del Rey and 4 more · 1h 22m ·

Tracklist
  1. Do What You Do · Tina Turner
  2. Whatever You Want · Tina Turner
  3. Love · Lana Del Rey
  4. Lust for Life (feat. The Weeknd) · Lana Del Rey
  5. 13 Beaches · Lana Del Rey
  6. Cherry · Lana Del Rey
  7. Bubble Pop Electric · Gwen Stefani
  8. Cool · Gwen Stefani
  9. Crash · Gwen Stefani
  10. Danger Zone · Gwen Stefani
  11. Harajuku Girls · Gwen Stefani
  12. Teenage Dream · Katy Perry
  13. Last Friday Night (T.G.I.F.) · Katy Perry
  14. California Gurls (feat. Snoop Dogg) · Katy Perry
  15. Firework · Katy Perry
  16. Peacock · Katy Perry
  17. Circle the Drain · Katy Perry
  18. Work B**ch · Britney Spears
  19. Kill the Lights · Britney Spears
  20. Cool Rider · Michelle Pfeiffer
  21. director's cut · British Airways safety video

Listened to The Trip to Italy Interview by Steve Coogan And Rob Brydon

Listened to Hypnotize by System of a Down

12 listens · 54m ·

Tracklist
  1. Stealing Society · System of a Down
  2. Tentative · System of a Down
  3. U-Fig · System of a Down
  4. Holy Mountains · System of a Down
  5. Vicinity of Obscenity · System of a Down
  6. She's Like Heroin · System of a Down
  7. Lonely Day · System of a Down
  8. Soldier Side · System of a Down
  9. Still of the Night · Whitesnake
  10. Slave to the Grind · Skid Row
  11. Comedown · Bush
  12. Lightning Crashes · Live

Listened to Rockstar by Nickelback

Listened to Michelle Pfeiffer

3 listens · 5m ·

Tracklist
  1. Cool Rider · Michelle Pfeiffer
  2. Score Tonight (feat. Lorna Luft & The Cast Of Grease 2) · Adrian Zmed
  3. (Love Will) Turn Back The Hand Of Time (feat. Maxwell Caulfield) · Michelle Pfeiffer

Listened to 12 tracks

Korn, Linkin Park · 50m ·

Tracklist
  1. Papercut · Linkin Park
  2. One Step Closer · Linkin Park
  3. With You · Linkin Park
  4. Points of Authority · Linkin Park
  5. Crawling · Linkin Park
  6. It's On! · Korn
  7. Freak on a Leash · Korn
  8. Got the Life · Korn
  9. Dead Bodies Everywhere · Korn
  10. Children of the Korn · Korn
  11. B.B.K. · Korn
  12. Pretty · Korn

2015 · 11 years ago