Skip to content

Instantly share code, notes, and snippets.

@jwygralak67
jwygralak67 / roll.html
Last active October 21, 2024 12:06
A simple dice roller for gaming or whatever. Uses html, css, & javascript. Self-contained in one html file. Can be saved and run locally.
<html><head>
<meta name="viewport" content="width=480">
<style>
input {border-style: none; border-bottom-style: solid; border-width:thin;}
div {border:solid thin black; margin: 0.5em; padding: 0.5em; border-radius: 1em; background: #f7f7f7;}
.die {border:solid thin black; margin: 1px; padding: 1px; border-radius: 5px; display: inline-block;}
@Therises
Therises / fix_mic_lenovo320.md
Last active September 16, 2024 19:24
Fix microphone on Lenovo IdeaPad 320 on Ubuntu 18.04

In /usr/share/pulseaudio/alsa-mixer/paths/analog-input-internal-mic.conf and /usr/share/pulseaudio/alsa-mixer/paths/analog-input-mic.conf:

  • Under [Element Internal Mic Boost] set volume to zero.
  • Under [Element Int Mic Boost] set volume to zero.
  • Under [Element Mic Boost] set volume to zero

Find your source name from the following command; mine is alsa_input.pci-0000_00_1f.3.analog-stereo

  $ pacmd list-sources | grep 'name:.*input'

Edit /etc/pulse/default.pa and add the following lines, where INPUT_NAME is name of the input source from above step: