Posts

Pulseaudio: Multi-User Setup

Hello and welcome to my blog. If you are finding this page, then you might be in a similar situation I found myself when I wanted to share audio with different apps if they were being used by different user accounts on your local *nix machine when using Pulse audio. Credits to Eli Billauer and Dhole for the configuration directives I needed to make this possible. The Problem I have multiple user accounts on my system that run various apps, like my web browser, chat apps, email and more. I don't like everything running as myself and try to create a user account with just enough privileges to do what it needs to do. Pulseaudio (herein "Pulse") runs as myself when my desktop environment starts. Apps that run normally need to connect to Pulse in some fashion in order to listen to the microphone or play audio on the speakers. When the apps all run as the logged in user, this works great. When the apps run as someone else, this doesn't work or is inconsistent...

Build xmrig on Linux

Hi all, So, I am getting into the crypto-mining space a bit and I wanted to share a few things I've learned. This whole experience has been teaching me a lot as of late! In this post, we'll be talking about xmrig what it is and how to compile it on Linux. I'm going to skip the wallet and other details as I wanted this post to be as context-specific and straight to the point as possible. Let's dive right in. What is xmrig??? My take on this is xmrig is a swiss army knife of a mininig tool that can be used for many algorithms and various coins. I mostly found and used this to mine Monero (XMR), so we'll take that as an example. xmrig supports both CPU and GPU minining, but not all algorithms are CPU- or GPU- friendly. Some are specific to either, so be mindful of what you are doing when you are setting this up. Let's dive into the build and running instructions and examples. Building xmrig I happen to be using d...

Why VPN Bandwidth Cheating Isn't True

One thing people need to understand about the faux truth about using a VPN to "cheat" your ISP into giving you a faster internet connection is the connection is limited to what the ISP gives to the VPN provider. It's a virtual tunnel, so you personally don't get to enjoy the benefits of the VPN's increased speeds. When you do a speed test while connected to a VPN connection, your speed test results are going from the VPN endpoint, and the speed test target. The speed from your computer to the VPN endpoint is still the same. So all these folks talking about how you can "cheat" your ISP by giving you a faster connection via VPN is all falsehood and a misunderstanding of how the infrastructure works under the hood.

Kizano Cheesecake Recipe

Image
I have searched and searched the Interwebs and have had a hard time finding the original recipe that just needed the right execution to pull it off. I'm blogging about this recipe because it's the closest I could find to the perfect cheesecake recipe based on a summation of many recipes out there. I'll advance notice you: Ingredients are one thing. The important piece to a perfect cheesecake is the execution! You must be exact with your measurements, order of operations and temperatures!!! I CANNOT stress this enough! Temperature is critical! Take all ingredients out of the frig at least one hour before starting. This is the base recipe. Once you get this down, you can add whatever you like for toppings or flavors. Ingredients Crust - 1 - 8oz package of graham crackers - 1/2 C brown sugar - 8oz unsalted butter - 1/2 C chopped nuts (pecans preferred) [1] Cheesecake - 2 - 8oz pouches of Philadelphia Cream Cheese [2] - 3 Tbsp sour cream - 3 Tbsp all-purpos...

Linux: Change Name/Alias of a Bluetooth Device

So, after searching around, I didn't immediately find the answer. I hope this post proves useful to someone else searching for the same thing. I first came across this post on StackExchange . Then, I found this post on SuperUser . The gist of it: If you modify /var/lib/bluetooth/[CONTROLLER]/[DEVICE]/info , then it will modify the alias for the time being after restarting ( sudo service bluetooth restart ) and repairing to the device, it will yield the new name, but I noticed that it renames the device to its original alias after a few seconds/minute. Where: [CONTROLLER] is the mac address of your bluetooth controller (if you're only using the built-in controller and not an additional USB device, then you'll only have one directory here). Where [DEVICE] is the mac address of the remote device to connect and get metadata around the device. I discovered you could use `bt-device` to update the alias and it seems to be a bit more persistent than modifying the meta...

MongoDB: db.collection.isView()

I searched the Internets and failed to find an easy answer to this, so I am hoping the search engines will point to this post to understand how to detect the difference between a collection and a view. Unfortunately, MongoDB-3.x does not have a built-in method called " db.collection.isView() " much like there is " db.collection.isCapped() ". You have to iterate over the collections in the extended format and filter out collections that are views. You can do this with the following query: db.getCollectionInfos({   type: {     $ne: 'view'   } }); This will output something like so: collections.cursor.firstBatch[0] { "name" : "collection", "type" : "collection", "options" : { "capped" : true, "size" : 100000000, "storageEngine" : { "wiredTiger" : { "configString" : "...>configuration<..." } } }, "info"...

Why I chose SaltStack over Puppet

In the world of Development Operations (or DevOps as it's coming to be known today), there are many tools coming into focus that are allowing us to do more and expand to newer heights than before. In this post, I want to talk about Puppet and SaltStack. Both are really great tools, don't get me wrong. I admire the power and benefits of both, but there were solid reasons we chose to go with one over the other, and reasons why I still chose one over the other today. This is going to be a compare and contrast post between the two technologies. Puppet Let's talk about Puppet:  https://puppet.com/ . Puppet is a great tool for what it was designed to do. It was also first on the market with its first beta version back in 2005 . It's first 2.6 release in 2010 , and I came to know about it around version 3.x in 2013. It's good for what it was originally created to perform: Systems automation. However the catalog creation process is often a bottleneck in performance ...