Skip to content

Instantly share code, notes, and snippets.

View sawaYch's full-sized avatar
🐧
Focusing

Sawa sawaYch

🐧
Focusing
View GitHub Profile
@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 
@sawaYch
sawaYch / twitter.sh
Created January 30, 2020 06:22 — forked from sophia-ooo/twitter.sh
twitter ffmpeg
ffmpeg -i test.mov -vcodec libx264 -vf 'scale=640:trunc(ow/a/2)*2' -acodec aac -vb 1024k -minrate 1024k -maxrate 1024k -bufsize 1024k -ar 44100 -strict experimental -r 30 out.mp4
@sawaYch
sawaYch / network-probloms-notes-22Jan20.md
Last active February 17, 2020 19:53
AcherC7 5Ghz wifi problems; and my X390 ethernet speed fuckup.

Arher C7 5Ghz problems

好耐之前刷完Openwrt之後,config完一輪keep完用都冇乜事(雖然冇事但我都想換)
今朝搞咗陣個network試嘢改咗啲config之後
個5Ghz ac wifi就跪低咗 (Wireless is disabled or not associated to network)
轉咗做low freq嘅channel (channel 40) 先穩定用到
唯有係咁先。

Thinkpad X390 ethernet bugs on Linux

個driver冇問題 但default個ethernet config唔知做乜搞到bandwidth限咗100mbps
個fix:

@sawaYch
sawaYch / Determination.txt
Last active January 15, 2024 10:46
+ You are filled with Determination +
┏━━━━━━━━━━━━━━┓
┃ ┃
┃ ❤️ |
| |
┗━━━━━━━━━━━━━━┛

Keybase proof

I hereby claim:

  • I am sawaych on github.
  • I am sawaych (https://keybase.io/sawaych) on keybase.
  • I have a public key ASAEQohhSbjyJpQVI6DARwgBqcX3r4UJGh5bcbd6zX18lwo

To claim this, I am signing this object:

@sawaYch
sawaYch / Setup.md
Last active January 11, 2020 02:15
My current desktop theme.