- MSR modification may void your CPU's (or system board's) warranty. Proceed with care. I'm not responsible for any destruction caused by this article.
- MSR address (greatly) differs from CPU to CPU. Check your own CPU's MSR address using Intel's documentation.
- Only tested on Intel i7-8550U (Kaby Lake R).
- This article is translation of this article. If you can understand Korean, I recommend reading that article, not this.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ "$1" = "" ]; then | |
echo "Usage: $0 <slip no>" | |
exit 1; | |
fi | |
curl -s "https://lglet.lottegl.com/view/tracking/import/$1" | elinks -dump 1 /dev/stdin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Change keyboard device name to your own - e.g., xinput list | |
KEYBOARD_DEV_NAME="AT Translated Set 2 keyboard" | |
KEYBOARD_DEV_ID=$(xinput list | grep "$KEYBOARD_DEV_NAME" | cut -f 2 | cut -d "=" -f 2) | |
KEYBOARD_ISENABLED=$(xinput list-props $KEYBOARD_DEV_ID | grep "Device Enabled" | cut -d ":" -f 2) | |
if [ $KEYBOARD_ISENABLED -eq 1 ]; then | |
xinput disable $KEYBOARD_DEV_ID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
1=$(basename $1) | |
EPINUM=$(ffmpeg -i "$1" 2>&1 > /dev/null | grep episode_sort | cut -d ":" -f 2) | |
mv $1 $(printf %02d $EPINUM)" "$1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/4.5/wacom_wac.c b/4.5/wacom_wac.c | |
index 1ab33cc..b74bbf8 100644 | |
--- a/4.5/wacom_wac.c | |
+++ b/4.5/wacom_wac.c | |
@@ -4424,6 +4424,12 @@ static const struct wacom_features wacom_features_0x360 = | |
static const struct wacom_features wacom_features_0x361 = | |
{ "Wacom Intuos Pro L", 62200, 43200, 8191, 63, | |
INTUOSP2_BT, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES, 9, .touch_max = 10 }; | |
+static const struct wacom_features wacom_features_0x37A = | |
+ { "Wacom One by Wacom S", 15200, 9500, 2047, 63, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ID="-1" | |
ID=$(echo $(rfkill | grep bluetooth) | cut -f1 -d " ") | |
if [ "$ID" == "-1" ]; then | |
exit -1 | |
else | |
rfkill block $ID | |
rmmod btusb -f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Undervolting preset resume after sleep | |
After=suspend.target | |
[Service] | |
Type=oneshot | |
ExecStart=/bin/bash /opt/undervolt_check_and_apply.sh | |
[Install] | |
WantedBy=suspend.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
rmmod snd_hda_intel --force | |
modprobe snd_hda_intel | |
alsactl restore | |
pkill pulseaudio |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Delete current bundles | |
sudo -u mastodon rm -rf /var/lib/mastodon/live/vendor/bundle | |
# Build new bundles | |
cd /var/lib/mastodon/live | |
sudo -u mastodon bundle install --deployment --without development test | |
# Start mastodon services |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Trigger] | |
Operation = Upgrade | |
Type = Package | |
Target = imagemagick | |
Target = ffmpeg | |
Target = protobuf | |
Target = nginx | |
Target = redis | |
Target = postgresql | |
Target = nodejs |