Using Unix pipes with Go

Using Unix pipes with Go

šŸ“… — šŸ§® 698 words — šŸ·ļø tech go unix tutorial

Header by Alan Levine CC BY 2.0

Go has made it easy to work with Unix operations, it comes with the platform-independent built-in package os to interface with the operating system.

They offer nice features such as os.Stdin and os.Stdout, wrappers of type os.File around the OS’s common standard streams.

The os/exec package is also great. It allows you to run Unix-tools from within your Go application.

Package exec runs external commands. It wraps os.StartProcess to make it easier to remap stdin and stdout, connect I/O with pipes, and do other adjustments.

šŸ’¬ Read more
Social Media Detox

Social Media Detox

šŸ“… — šŸ§® 259 words — šŸ·ļø personal

In november 2022 I left Twitter for Mastodon and I’ve been posting a bit there.

However, between work and parenting, I’ve noticed I didn’t have much time and most of all, I was getting imposter syndrome. I felt like I had to perform ’to be interesting'.

So I kinda stopped posting and interacting..

The same imposter feeling I got for my blog and website. However recently I’ve come around to that regarding the blog. I realised I’m mostly writing for myself; ‘cause it sure is interesting to read old blog posts from years ago. And as such, this actual blog post is an attempt to kickstart everything again.

šŸ’¬ Read more
My ROI stock portfolio experiment; the results

My ROI stock portfolio experiment; the results

šŸ“… — šŸ§® 577 words — šŸ·ļø stocks personal roi-stock-portfolio

A year has passed since my first post about my ROI stock portfolio and that means it is time to see how it went.

The portfolio

As of 10th of August 2023, using USD-based percentages, the portfolio looks like this:

ROI portfolio stock returns after 1 year
StockReturn
Novo Nordisk (NVO)āœ”ļø(42.25%)
Applied Materials (AMAT)āœ”ļø(37.67%)
Southern Copper (SCCO)āœ”ļø(34.97%)
KLA Corporation (KLAC)āœ”ļø(33.28%)
Microsoft (MSFT)āœ”ļø(24.82%)
Apple (AAPL)āœ”ļø(18.09%)
Crescent Point Energy (CPG)āœ”ļø(16.57%)
Mastercard (MA)āœ”ļø(13.67%)
Blackstone Inc (BX)āœ”ļø(13.64%)
S&P Global (SPGI)āœ”ļø(11.33%)
McDonald's (MCD)āœ”ļø(7.51%)
Paychex (PAYX)āœ”ļø(7.00%)
Lousiana Pacific (LPX)āœ”ļø(6.95%)
Qualcomm (QCOM)āŒ(-7.96%)
Rio Tinto (RIO)āŒ(-10.97%)
Vale (VALE)āŒ(-11.35%)
Vermillion Energy (VET)āŒļøļø(-12.60%)

In US Dollars this is a 14.4% return, which is not bad at all. Foreign exchange rates however gave me a -5% if I were to convert it to Euros straight away.

šŸ’¬ Read more
My ROI stock portfolio experiment; half way there

My ROI stock portfolio experiment; half way there

šŸ“… — šŸ§® 378 words — šŸ·ļø stocks personal roi-stock-portfolio

In a previous post about my ROI stock portfolio you could read what my plan was. We’re now 5 months further, and that means we’ve reached the halfway mark of the buying period. So how’s it going?

The portfolio

As of 10th of January 2023, just before I deposited another ā‚¬100, the portfolio looked like this:

  • āŒ(-3.40%) Microsoft (MSFT) - āŒ(-14.07%)
  • āŒ(-2.20%) Apple (AAPL) - āŒ(-17.41%)
  • āŒ(-2.00%) Mastercard (MA) - āœ”ļø(+5.32%)
  • āŒ(-3.93%) Qualcomm (QCOM) - āŒ(-13.68%)
  • āœ”ļø(+0.72%) McDonald’s (MCD) - āŒ(-3.06%)
  • āŒ(-1.36%) S&P Global (SPGI) - āŒ(-5.01%)
  • āœ”ļø(+1.36%) Novo Nordisk (NVO) - āœ”ļø(+13.02%)
  • āœ”ļø(+2.07%) Southern Copper (SCCO) - āœ”ļø(+26.55%)
  • āŒ(-1.43%) Blackstone Inc (BX) - āŒ(-17.91%)
  • āŒ(-1.65%) Paychex (PAYX) - āŒ(-8.18%)
  • āŒ(-2.72%) Lousiana Pacific (LPX) - āŒ(-1.89%)
  • āŒ(-2.32%) Rio Tinto (RIO) - āœ”ļø(+14.96%)
  • āŒ(-1.36%) Vale (VALE) - āœ”ļø(+17.29%)
  • āŒ(-1.42%) Applied Materials (AMAT) - āœ”ļø(+4.07%)
  • āŒ(-0.27%) KLA Corporation (KLAC) - āœ”ļø(+8.67%)
  • āœ”ļø(+2.79%) Vermillion Energy (VET) - āŒ(-33.76%)
  • āœ”ļø(+0.55%) Crescent Point Energy (CPG) - āŒ(-10.19%)

Volatile, that’s how it’s going. Just like the rest of the 2022 market. In fact, now with a couple of months of hindsight we can also see that my starting point, August 2022, was one of the ‘worst’ months to start.

šŸ’¬ Read more
YouTube is my TV

YouTube is my TV

šŸ“… — šŸ§® 1846 words — šŸ·ļø personal youtube

When we bought our house in 2015 we got all the regular communication appliances; TVs and cable subscriptions, landlines, internet, etc.
But we soon realized that we prefer to be on our computers more and as such the TV was left unused, most of the time.

Recently I realized that I'm really using YouTube as if it was my cable TV. I could also clearly see the type of content that I'm watching, and it made me think that I've actually built my own TV channel.

šŸ’¬ Read more
My ROI stock portfolio experiment

My ROI stock portfolio experiment

šŸ“… — šŸ§® 575 words — šŸ·ļø stocks personal roi-stock-portfolio

After reading a bit about multiple well-known investors mentioning how important Return On Invested Capital is, I decided to generate a small portfolio (actually a pie within Trading212) with some metrics.

I used finviz to screen and since they don’t have ROIC, I used Return On Investment (ROI). This is a different metric but is the closest option there is. My screening options were as follows:

  • ROI of 25% or higher
  • Net profit margin of 25% or higher
  • Market cap of 2 billion or higher
  • Positive dividend
  • Average trading volume of 1 million

So the important values are the ROI and net profit margins. However to give me some more established companies I also made sure that they have a market cap of 2 billion or more, enough trading volume and a positive dividend. This last option as a soft guarantee that the company is free cash flow positive.

šŸ’¬ Read more
Black and white picture of Gerben Jacobs
Hi!

Iā€™m a 36-year-old software engineer from The Netherlands. My interests lie with (web)development, databases, design patterns, social media, communities, APIs and open data.

More about me, including links to other online services, can be found at gerben.dev

Tags

agile 1 go 2 personal 11 php 5 roi-stock-portfolio 3 scandinavia-2013 3 stocks 3 tech 18 tutorial 1 unix 1 web 1 youtube 1

Socials

Meta