sudo touch /usr/share/pipewire/media-session.d/with-pulseaudio
systemctl --user restart pipewire-session-manager
# PowerShell script to add Windows Defender exclusions for WSL2 and JetBrains IDE performance issues | |
# | |
# For context please read this thread: | |
# https://github.com/microsoft/WSL/issues/8995 | |
# | |
# How to use? | |
# - Save the Script: Open a text editor like Notepad and paste the PowerShell script into it. | |
# - Save the file with a .ps1 extension, for example, Add_WindowsDefender_Exclusions.ps1. | |
# - Run PowerShell as Administrator: Search for "PowerShell" in the Start menu, right-click on it, and choose "Run as administrator". | |
# - Navigate to the Script's Location: Use the cd command to navigate to the directory where you saved the .ps1 file. |
MIT License | |
Copyright (c) 2018 Noel Bundick | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
# Optimized MySQL configuration for cPanel servers by Kani Baspinar - Updated June 2016 | |
# | |
# The settings provided below are a starting point for a 24GB RAM server with 8 CPU cores. | |
# If you have less or more resources available you MUST adjust accordingly to save CPU, RAM and disk I/O usage. | |
# To fine tune these settings for your system, use MySQL DB diagnostics tools like: | |
# Test your configuration ; https://launchpad.net/mysql-tuning-primer | |
# or | |
# http://blog.mysqltuner.com/download/ | |
# Note that if there is NO comment beside a setting, then you don't need to adjust it. | |
# |
Just run this script you can adjust the value of the speed. Thanks to the creator! nicknorton.net | |
bash <(curl -s nicknorton.net/mousewheel.sh) |
- Set an environment variable called
CMDER_ROOT
to your root Cmder folder (in my caseC:\Program Files (x86)\Cmder
). It seems to be important that this does not have quotes around it because they mess with concatenation in the init script. - In your IntelliJ terminal settings, use
"cmd" /k ""%CMDER_ROOT%\vendor\init.bat""
as the Shell path. The double-double-quotes are intentional, as they counteract the missing double quotes in the environment variable.
I've been using [Backblaze][bbz] for a while now as my online backup service. I have used a few others in the past. None were particularly satisfactory until Backblaze came along.
It was - still is - keenly priced at a flat $5 (£4) per month for unlimited backup (I've currently got just under half a terabyte backed-up). It has a fast, reliable client. The company itself is [transparent about their operations][trans] and [generous with their knowledge sharing][blog]. To me, this says they understand their customers well. I've never had reliability problems and everything about the outfit exudes a sense of simple, quick, solid quality. The service has even saved the day on a couple of occasions where I've lost files.
Safe to say, I'm a happy customer. If you're not already using Backblaze, [I highly recommend you do][recommend].
// resources/js/models/Model.js | |
export default class Model { | |
constructor (attributes = {}) { | |
this.fill(attributes) | |
} | |
static make (attributes = {}) { | |
return Array.isArray(attributes) | |
? attributes.map(nested => new this(nested)) |
This gist describes two processes allowing us to access the Google API and to register some webhooks. At the end of both processes we will obtain all variable needed to start using their API and we will have whitelisted all necessary URL to get started. We will be using the Google Calendar API and the Google Plus API to access the email address of the user.
This gist has been created as an Appendix to this article (part 1) and this article (part 3).
Note that, I will be using a randomly generated ngrok domain during this presentation. Simply replace b3093b51.ngrok.io
with your domain name