• Record Audio Using FFMpeg With PulseAudio On Linux
    21 February, 2023 FFMpeg PulseAudio
    On Linux with PulseAudio installed. List all devices To list all of our devices we can run this command: pactl list sources Record an audio device We will be using the Source #Number from the command above here. Replace the placeholder (<Source Number>) in the command below with it. Recording one input: ffmpeg -f pulse -i <Source Number> pulse.
  • Using ESLint Without Installing it as a dependency for your project
    20 February, 2023 JavaScript ESLint
    Working on a project and don’t want to or can’t install ESLint as a devDependency in your package.json? or maybe you just want ESLint to work on all of your projects instantly without all of the per app configuration. The steps described below will help you. Installing ESLint Globally Before starting, ensure you have Node.js installed along with npm (which should come packaged with your Node install).
  • How I Logged in on Debian With a Partially Broken Keyboard
    19 February, 2023 Linux
    How This Happened My laptop has broken keys, luckily just all the numbers and the letter o, but unluckily my password was 1234 (I know..). I was only able to login previously because whilst I had access to a USB keyboard at home, I setup my bluetooth one to auto connect at login. Of course whilst I’m away I take just my bluetooth keyboard.
  • Geting Audio Devices For Use With FFMpeg
    18 February, 2023 FFMpeg PulseAudio
    dshow Use this on Windows. ffmpeg -list_devices true -f dshow -i "" pulse (pactl) Use this on Linux with PulseAudio installed. pactl list sources
  • Creating a Pivot Table and Grouping Dates
    17 February, 2023 LibreOffice
    Creating the Pivot Table Select your whole table including headers With your table selected, go to Data > Pivot Table > Insert or Edit… Select Current selection for Selection then click OK On this page, you can drag the available fields to any box you want (Filters, Column, Row and Data). For what I am doing I will drag my headers into these boxes and click OK: This will create a new sheet by default with this:
  • Running Programs In The Background With Screen
    5 October, 2020 Linux
    Installation Change apt to the package manager you want to use. $ apt install screen Usage Run script in a ‘screen’ $ screen ./scriptName.sh List screens $ screen -ls Resume a screen session One session running $ screen -r Multiple sessions running If you have multiple screen sessions running, you have to list them first to get their ids:
  • Recommended Partitioning Scheme
    4 October, 2020 Linux
    In most cases you are going to want to make seperate partitions for each of the following mount points: / (root) /boot or /boot/efi /home swap / / is the top-level directory. Everything by default will be placed here unless a different file system is mounted in the path being written to, such as /home.
  • Get Apache Server Status w/ mod_status
    9 February, 2020 Apache
    Using mod_status Enable the mod in your config Find mod_status in your apache config file, by default it is commented out with a #. Just simply remove this. LoadModule status_module modules/mod_status.so Setup access point Now you are going to have to setup out access point, for this we will just make a <Location> in an appropriate config.
  • Vertically/Horizontally Align With Flexbox
    2 October, 2019 CSS WebDev
    Example <style> .ctr{ display: flex; align-items: center; /* vertical alignment */ justify-content: center; /* horizontal alignment */ } </style> <div class="ctr"> <svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg"> <rect width="100" height="100" fill="black"/> </svg> </div> This can extend to anything you could want to center.
  • Shape Rendering SVG
    2 October, 2019 SVG WebDev
    geometricPrecision <svg width="279" height="136" viewBox="0 0 279 136" fill="none" xmlns="http://www.w3.org/2000/svg"> <rect y="1" width="100" height="100" fill="black" shape-rendering="geometricPrecision"/> <path d="M150 33L208.024 135.75H91.9763L150 33Z" fill="black" shape-rendering="geometricPrecision"/> <ellipse cx="229" cy="51" rx="50" ry="51" fill="black" shape-rendering="geometricPrecision"/> </svg> This method takes a little more processing power, but in the end I believe it is totally worth it. You will be left with smoother edges becuase it can harness the power of anti-aliasing.