Quantcast
Channel: Entreprehero
Browsing latest articles
Browse All 25 View Live

How-to: Change your default git editor

If you are like me you have probably forgot to write a commit message on one of your commits in the past. When you do that git opens up an editor, in most cases something like Vim, which if you don't...

View Article



Image may be NSFW.
Clik here to view.

Git Cheat Sheet

Today is my 30th birthday. For this I will give all of you a little present which I’ve been working on. The ULTIMATE Git cheat sheet! Enjoy 🙂 Download Git Cheat Sheet (PDF)

View Article

Image may be NSFW.
Clik here to view.

Mod Rewrite Online Test Tool

Everyone who has worked with rewrites knows that it can be a pain in the ass to get it right sometimes. I was working with some rewrites for a client and got tired of testing live on the server. Looked...

View Article

Image may be NSFW.
Clik here to view.

Regular expressions in Notepad2 (with backreference)

Regular expressions is really nifty to use when you got a chunk of data and need to extract or change certain parts of it. I’ve used it before in Notepad2 to replace mostly with empty strings but this...

View Article

Image may be NSFW.
Clik here to view.

LD25 - Revenge of Dr Green

#inner-content { width: 740px; } .blog1 .post-content { width: 640px; } #sidebar { width: 180px; } My entry to the Ludum Dare 48 hour competition. The theme for the competition is “You are the...

View Article


Detect if mouse click is from user or if triggered by code

I was coding a carousel solution for a client and wanted the automatic playback to stop if the user interacted with the image slider. First I thought that I would need some kind of custom solution but...

View Article

Convert a LinkItemCollection to a list of PageData in EPiServer 7

I found a nice little snippet from Joel Abrahamsson on how to convert a LinkItemCollection to a list of PageDatas instead. So I used his code as a base to update it to EPiServer 7. using...

View Article

Creating a custom new Visitor Group Criteria in EPiServer 7

A visitor group criterion is used in EPiServer to let editors choose criterias when certain content should be showed or not. EPiServer comes with a few default ones but usually you need to create your...

View Article


How to inject scope variable into callback properly - Node.js

We are working on a fun Node.js project at work. However, we were doing a for-loop with a callback and had big problems to pass in the variable into the callback-function. Either it was undefined or...

View Article


Image may be NSFW.
Clik here to view.

Only allow a certain role to see MiniProfiler results - MVC .NET

I am a big fan of MiniProfiler. It is perfect for development to see that you keep your code at best performance. However, wouldn’t it be nice to have the results available on your live server too? I...

View Article

Image may be NSFW.
Clik here to view.

Cross-Domain Tracking With Google Tag Manager and Universal Analytics

The good people over at Luna Metrics have made an awesome screencast on how to properly set up cross domain tracking using Google Tag Manager and Universal Analytics. You can read the original article...

View Article

How to set aliases in git

Aliases are lovely since you don’t have to write so many characters 🙂 It’s easy to set up your own. Just go to your home catalog and edit your .gitconfig file nano ~/.gitconfig Here’s mine: [alias] co...

View Article

Capistrano 3 - How to run a custom rake task on the server

Here is a little nice task to put in your /lib/capistrano/tasks folder. This will allow you to run any rake task on the server. desc "Run rake task on server" task :server_rake do on roles(:app), in:...

View Article


ActiveStorage - Migrate from local disk to Amazon S3

So a while ago I wanted to migrate from using the local disk of a server to using Amazon S3 for a site running Rails 6 with Active Storage. I couldn't find any info on how to do so in the docs and the...

View Article

Infinite Scroll using AlpineJS

I wasn't able to find anyone who had made an infinite scroll plugin for AlpineJS so I went ahead and rolled one up. I decided to patch Intersection Observer in my version so that it can be used on...

View Article

Browsing latest articles
Browse All 25 View Live




Latest Images