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
--- /usr/share/X11/xkb/keycodes/evdev 2024-08-14 12:14:23.869831337 +0900 | |
+++ /usr/share/X11/xkb/keycodes/evdev.korean-patched 2024-08-14 12:13:35.992711920 +0900 | |
@@ -67,12 +67,12 @@ | |
<LWIN> = 133; | |
<LALT> = 64; | |
<SPCE> = 65; | |
- <RALT> = 108; | |
+ // <RALT> = 108; | |
alias <ALGR> = <RALT>; | |
<RWIN> = 134; |
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
🌞 Morning 46 commits ███▎░░░░░░░░░░░░░░░░░ 16.0% | |
🌆 Daytime 96 commits ██████▉░░░░░░░░░░░░░░ 33.3% | |
🌃 Evening 98 commits ███████▏░░░░░░░░░░░░░ 34.0% | |
🌙 Night 48 commits ███▍░░░░░░░░░░░░░░░░░ 16.7% |
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
# Disable XBOX ACC, Microsoft Inc., XYZXYZ | |
# -- Run following after saving this file as: /etc/udev/rules.d/00-block-xbox-usb.rules | |
# -- $ sudo udevadm trigger && sudo systemctl restart udev | |
# -- Also, run following to persist for next reboot. | |
# -- $ sudo update-initramfs -u -k all | |
ACTION=="add", ATTRS{idVendor}=="045e", ATTRS{idProduct}=="02fe", RUN="/bin/sh -c '[ -f /sys$devpath/authorized ] && echo 0 >/sys$devpath/authorized || true'" |
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
# First let's update all the packages to the latest ones with the following command | |
sudo apt update -qq | |
# Now we want to install some prerequisite packages which will let us use HTTPS over apt | |
sudo apt install apt-transport-https ca-certificates curl software-properties-common -qq | |
# After that we will add the GPG key for the official Docker repository to the system | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
# We will add the Docker repository to our APT sources |
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
RUN set -xe \ | |
&& echo '#!/bin/sh' > /usr/sbin/policy-rc.d \ | |
&& echo 'exit 101' >> /usr/sbin/policy-rc.d \ | |
&& chmod +x /usr/sbin/policy-rc.d \ | |
&& dpkg-divert --local --rename --add /sbin/initctl \ | |
&& cp -a /usr/sbin/policy-rc.d /sbin/initctl \ | |
&& sed -i 's/^exit.*/exit 0/' /sbin/initctl \ | |
&& echo 'force-unsafe-io' > /etc/dpkg/dpkg.cfg.d/docker-apt-speedup \ | |
&& echo 'DPkg::Post-Invoke { "rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true"; };' > /etc/apt/apt.conf.d/docker-clean \ | |
&& echo 'APT::Update::Post-Invoke { "rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb var/cache/apt/*.bin || true"; };' >> /etc/apt/apt.conf.d/docker-clean \ |
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
{ | |
"title": "[V13] left_shift twice to toggle between Control <=> Command", | |
"rules": [ | |
{ | |
"description": "Press left_shift twice to toggle between Control and Command key. Another key pressed during each left_shift press will be considered as a cancel, and timeout will also considered as cancel.", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"type": "variable_if", |
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 | |
# Install NCNN with OpenMP, OpenCV, Vulkan | |
# Reference: https://github.com/actions/runner-images/issues/5555#issuecomment-1133906879 | |
## Install homebrew requirements | |
brew install libomp protobuf | |
## OpenCV 3.x is recommended for examples installation | |
brew install opencv@3 | |
export PATH="/opt/homebrew/opt/opencv@3/bin:$PATH" |
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
apiVersion: v1 | |
kind: List | |
items: | |
- apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: weave-net | |
labels: | |
name: weave-net | |
namespace: kube-system |
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 | |
MB_SCALE=1024 | |
GPU_NAME=$(nvidia-smi --query-gpu=name --format=csv,noheader | head -n 1) | |
GPU_COUNT=$(nvidia-smi --query-gpu=name --format=csv,noheader | wc -l) | |
VRAM_MB=$(nvidia-smi -q -i 0 | grep Total | head -n 1 | awk '{ print $3 }') | |
VRAM_GB=$((VRAM_MB / MB_SCALE)) | |
if [ -z "$VRAM_MB" ]; then | |
>&2 echo "Graphics cards not detected by nvidia-smi!" |
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
# OS: Raspbian Buster(10) armv7l on Raspberry Pi 3B (1GB) | |
# Standard command (-mfpu=neon-fp-armv8 pr -mfpu=neon-vfpv4 is necessary for build!) | |
g++ -o benchmark main.cpp fun_neon.cpp fun.cpp -mfpu=neon-vfpv4 | |
# Scalar: 360.64 msec, 0.00 Mcycles | |
# NEON: 171.59 msec, 0.00 Mcycles | |
# Standard command with "-mfloat-abi=hard" | |
g++ -o benchmark main.cpp fun_neon.cpp fun.cpp -mfpu=neon-vfpv4 -mfloat-abi=hard | |
# Scalar: 362.39 msec, 0.00 Mcycles |
NewerOlder