Skip to content

Instantly share code, notes, and snippets.

/* Some bug here with the structure - breaks visibility when padding is added */
.markdown-embed .markdown-preview-view
{
/* background-color: red; */
padding: 0 0 0 0;
/* padding: 10 0 0 0; */
}
/* .markdown-preview-view .file-embed */
/* .markdown-preview-view .markdown-embed */
This is my example shared, embedded gist
@enly1
enly1 / mic_mute.sh
Last active January 1, 2021 10:29
Script to mute/un-mute default capture device
#!/bin/bash
pactl set-source-mute \@DEFAULT_SOURCE\@ toggle
amixer -D pulse | grep -E "Capture.*\[on\]"
if [ "$?" = "0" ]; then
icon="microphone-sensitivity-high"
notify-send -t 750 -i $icon "Micophone Un-muted" "Default microphone is now active"
else
@enly1
enly1 / awslogin
Created January 3, 2020 18:24
Script to be used for creating an awslogin capability with coloured profiles (persistent).
#!/bin/bash
function awslogin {
# set to yes to create one-time use profiles in /tmp
# anything else will create them in $HOME/.aws/awschrome
TEMP_PROFILE="no"
# set to yes to always start in a new window
NEW_WINDOW="no"
@enly1
enly1 / powertop-service.sh
Created March 29, 2019 08:39
Powertop as service for auto-tune
cat << EOF | sudo tee /etc/systemd/system/powertop.service
[Unit]
Description=PowerTOP auto tune
[Service]
Type=idle
Environment="TERM=dumb"
ExecStart=/usr/sbin/powertop --auto-tune
[Install]