Skip to content

Instantly share code, notes, and snippets.

View sawaYch's full-sized avatar
🐧
Focusing

Sawa sawaYch

🐧
Focusing
View GitHub Profile
@sawaYch
sawaYch / meter-config-regex-fuckup.md
Last active December 22, 2020 03:45
npm install react native, meter config regex-fuckup on Windows. here is the link to workaround.

expo/expo-cli#1074

Got this issue today on windows, but don't need to downgrade node, just as discussed on stackoverflow just need to change some hashes on your project:

\node_modules\metro-config\src\defaults\blacklist.js
var sharedBlacklist = [
  /node_modules[/\\]react[/\\]dist[/\\].*/,
 /website\/node_modules\/.*/,
@sawaYch
sawaYch / githubStat.md
Last active November 18, 2020 21:53
Sawa's githubStat card
We couldn’t find that file to show.
@sawaYch
sawaYch / c_cpp_properties.json
Last active August 28, 2020 20:04
Vscode C/C++ config for QMK+MSYS2
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/*",
"${workspaceFolder}/**",
"C:/msys64/home/sawa/qmk_utils/avr8-gnu-toolchain/avr/include/*",
"C:/msys64/home/sawa/qmk_utils/avr8-gnu-toolchain/avr/include/**",
"C:/msys64/home/sawa/qmk_utils/avr8-gnu-toolchain/lib/gcc/avr/8.3.0/include-fixed/*",
@sawaYch
sawaYch / kde_hdmi_analog_switch.md
Last active November 17, 2020 08:52
Config alsamixer profile for KDE Neon (Phonon)

Description:
When headphone(analog) and HDMI connect to monitor, kde cannot auto switch audio to headphone.
What can we do is use plasmoid to adjust the audio channel manually.
Add the profile to /usr/share/pulseaudio/alsa-mixer/profile-sets/default.conf.

sudo vim /usr/share/pulseaudio/alsa-mixer/profile-sets/default.conf


[Profile ouput:analog-stereo+output:hdmi-stereo]
@sawaYch
sawaYch / JFoenix_JFXProgressBar_fix.md
Created June 17, 2020 12:06
JFoenix JFXProgressBar fix

Problem: GUI thread Runtime Exception when using JFoenix JFXProgressBar.

Caused by: java.lang.IllegalAccessError: class com.jfoenix.skins.JFXProgressBarSkin (in unnamed module @0x5680343f) cannot access class com.sun.javafx.scene.NodeHelper (in module javafx.graphics) because module javafx.graphics does not export com.sun.javafx.scene to unnamed module @0x5680343f

If you are using Gradle, then direct modify the run configuration (through the dialog) will NOT work.
Go to build.gradle,

@sawaYch
sawaYch / Win_Trivia.md
Created May 21, 2020 03:06
Windows Trivia

1. Remove desktop wallpaper history

Open command prompt go regedit:
Search the path:
Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Wallpapers
Then remove the KEY , e.g. BackgroundHistoryPath0.

@sawaYch
sawaYch / java_notes.md
Last active April 14, 2020 05:57
COMP3021 (Java) Notes
@sawaYch
sawaYch / Open_Windows_Terminal_Here.md
Last active March 5, 2020 02:41
Add "Open Windows Terminal Here" to the file manager context menu.

Add "Open Windows Terminal Here" to the file manager context menu

Open powershell with admin permission
Then install OpenHere Module:

Install-Module OpenHere
Set-OpenHereShortcut -ShortcutType:WindowsTerminal

Then it should be ok :D
(THis method is much simplier then registry one LoL)

@sawaYch
sawaYch / off_hyperV.md
Last active February 25, 2020 10:28
How to turn off Hyper-V

How to turn off Hyper-V

Open Start, type: CMD Right click CMD Click Run as administrator

Type in at the prompt OR Copy and Paste these one at a time : (Hit enter after each)

 bcdedit /set hypervisorlaunchtype off