Useful Vim Tricks for Search and Replace

Vim’s search and replace feature is powerful. It allows you to search for patterns with regular expressions. Use the manual’s entry via :h pattern-searches for the help menu. The basic usage for search in normal mode is / followed by the pattern for a forward search, and ? followed by a pattern for a backwards search. Search and replace: :s/<pattern to replace>/<replacement>/<flags> Search and replace in file: :%s/<pattern to replace>/<replacement>/<flags>
Read more →

How to Restart Systemd (Strongswan VPN) Service After Suspend

I’m running a VPN service via systemd on my machine. The service provides a systemd script for me. I can query the service with the standard commands, for example: sudo systemctl status strongswan.service This works fine, except when the computer went to sleep (suspend or hibernate). My machine also stops the wi-fi connection on sleep. When I wake up the machine, the wi-fi connection automatically starts again. My VPN service does not resume.
Read more →

Free Pushbullet Alternative With Gotify on Heroku

Free Pushbullet Alternative With Gotify on Heroku
image from the Gotify website You have several devices and you want to receive notifications from your Android phone to your web browser (or vice versa). Maybe you also want to send notifications via REST API. You are a developer after all. You can think of interesting ways to send notifications. Pushbullet comes to mind, but you don’t want to sign up with Google or Facebook. You don’t want to use Google services.
Read more →

TIL: How to Replace Backslashes (grep, sed, ripgrep, sd, ruplacer)

Today I needed to remove backslashes from a number of files. I have yaml frontmatter that should look like this: tags: - React.js - JavaScript I had some files that had backslashes before the dash: tags: \- React.js \- JavaScript You can use Unix tools like grep or sed to search all files that match a pattern. Then you can replace that pattern. But you have to remember that a backslash is a special character.
Read more →

Friday Picks 079

Read more →

Black Friday Deals 2020

Here are the tech-related Black Friday Deals for 2020. HTML/CSS https://debuggingcss.com/ JavaScript/Node/React/Vue https://flaviocopes.com/blackfriday/ https://jamstackhandbook.com/ https://learnetto.com/blackfriday#Pricing https://nodecli.com https://react2025.com/ https://wesbos.com/courses https://www.leveluptutorials.com/ https://www.udemy.com/course/nestjs-zero-to-hero/?couponCode=DD074A391845400CC7E7 https://www.vuemastery.com/black-friday-2020/ Go https://buildsaasappingo.com https://lets-go.alexedwards.net https://www.calhoun.io/ Flutter https://codewithandrea.com/courses/ Domains/Hosting https://www.namecheap.com/ Python https://training.talkpython.fm/black-friday-2020 Elixir https://pragmaticstudio.com/ https://alchemist.camp/subscribe/level-up Ruby https://pragmaticstudio.com/ Misc Mastering Vim Quickly Standard Edition | Professional Training Package | Premium Training Package https://appbrewery.com/ https://deals.bytesized.xyz/ https://keleshev.com/compiling-to-assembly-from-scratch/ https://media.
Read more →

Friday Picks 074

Read more →

Friday Picks 066

Here are some links for this weekend. I hope you’ll enjoy them! Full Stack Serverless - Building a Real-time Chat App with GraphQL, CDK, AppSync, and React: a concise tutorial by Nader Dabit Build A Confirmation Modal in React with State Machines: learn more about state machines with Dave Ceddia Building Microservices with Deno, Reno, and PostgreSQL: by James Wright Show your latest dev.to posts automatically on your GitHub profile readme: a GitHub action that automatically fetches blog posts from dev.
Read more →

TIL About Adding a New Line to “git commit -m”

For Git messages I use git commit -m to add a headline to a git commit. So far, I’ve never used the detailed summary which you can add to a commit message. It was tooMuch of a hassle to open a text editor and add a detailed explanation. Today I learned that you can write a multi-line commit message with git commit -m. For example, in Bash: git commit -m 'my headline Here goes the detailed explanation of the commit ' Source:
Read more →

Friday Picks 063

Read more →

Sign up for the newletter!

powered by Buttondown