.plan | rss | finger | motd | adduser | login
Login: retsi                            Name: Victor Gomes
Directory: /retsi                      Shell: /bin/plan.cat
Last login Thu Nov 18 15:07:17 2021 UTC
Mail forwarded to x7orr@yandex.com.
Plan:
(2021-11-17 - 11:53AM) The customer support dread is real. About to go to lunch.

(2021-11-17 - 13:13AM)
Back from lunch, now organizing some stuff, boss wants a list of everything 
I do on a daily basis since apparently the nearly 50 tasks I already do and
all concurrently are not enough.

(2021-11-17 - 15:46AM)
I'm planning to turn in my two weeks notice (it's a bit longer in my country)
and
focus in a craft (freelancing web dev, graphics design). That sure will be tough
considering how bad the economy is.

*** (2021-11-18 - 12:05AM)
A Powershell script for getting the most recent blurbs on plan.cat

 function FetchRecentLogins( $maxResults ) {
   $request = finger "@plan.cat"
   $requestWithoutBlankLines = $request | ? { $_.trim() -ne "" }
   
   #Get only the logins list, not their column titles (-Skip 2)
   $recentLogins = $requestWithoutBlankLines | Select-Object -First $maxResults 
-Skip 2 
  
   return $recentLogins
 }

 function GetUserNamesFromLogins( $logins ) {
   $usernameMatches = $logins | Select-String -Pattern "^(\w*)" -AllMatches
   $usernames = $usernameMatches | Foreach { $_.matches.groups[0].value }
  
   return $usernames
 }

 $maxResults = $args[0]
 $recentLogins = FetchRecentLogins( $maxResults )
 $users = GetUserNamesFromLogins( $recentLogins )

 Foreach($user in $users) {
   #Not sure if I'll get ip blocked for making successive requests, better
   #be safe!
   $cooldown = Get-Random -Minimum 1 -Maximum 4
  
   Start-Sleep -s $cooldown
   finger "$($user)@plan.cat"
 }