API (Application Programming Interface) is a set of functions that allows the creation of applications that access the features or data of a service. A RESTful API uses HTTP requests to GET, PUT, POST and DELETE data.
LXC is an abbreviation for “Linux Containers“ which is a feature in the linux kernel, it allows you to install multiple Linux installations running on the same kernel. It’s kind of like chroot but much more powerful as it allows for process and network isolation. I’ve seen that there is a fancy web GUI for […]
Posts and pages are two sides of the same coin, the main difference is that posts (a.k.a blog-posts) are sorted by date and have optional categories or tags, pages do not. Under the hood they are both called post_types but they have been initialized with different parameters. We will be creating our own post type […]
PHP-Class for encryption of text. I use it for safe storage of information in databases.
When moving databases between servers there are a few things to consider, one of these things is the charset.
We recently got a lot of invoices from sites all over the web, even from sites located outside of Sweden. Someone was mirroring our site using iframes and a similar domain name to ours.
I Wrote a plugin that attaches a hook to the login page and adds custom CSS. The plugin can be administered from your admin menu “Settings/ASBRA Login Plugin”. Simply add your CSS rules and click the “Save Changes” button.
Google has a nifty way of checking if you’re human or not. I wrote a PHP Class for verifying ReCaptcha v.2.
So you dont want to install the Sendmail daemon in every Chroot environment to be able to use the PHP mail() function? Of course not.. the simple solution is called mini_sendmail, it connects to localhost on port 25 to deliver the emails.
I’ve been cleaning up lots of hacked wordpress sites lately and i thought i’d share my findings and also my attempt to refine this technique with AES-encryption instead of obfuscation
For months i was giving up on this project and used Debootstrap to get a 300Mb+ minbase version of debian, but… …i finally got it working and here is the code for a chroot under 50Mb.
PHP Class for generating unique non chronological ids from a number list This code is part of a larger project where we needed user ids that would be simple to remeber but hard to predict.