Skip to content

Instantly share code, notes, and snippets.

View hurelhuyag's full-sized avatar
🇲🇳
Keep moving forward

Khurelkhuyag hurelhuyag

🇲🇳
Keep moving forward
View GitHub Profile
@hurelhuyag
hurelhuyag / disable_bloatware.sh
Last active March 24, 2021 08:20
disabling LG bloatware apps
#!/bin/bash
# ref: https://www.xda-developers.com/disable-system-app-bloatware-android/
alias adb=/home/user/android-sdk-linux/platform-tools/adb
adb shell pm disable-user --user 0 com.lguplus.mobile.cs #(U+ Customer Center)
adb shell pm disable-user --user 0 com.lguplus.appstore
adb shell pm disable-user --user 0 com.lge.lgpay
adb shell pm disable-user --user 0 com.lge.tdmb #(DMB TV)
adb shell pm disable-user --user 0 com.lge.lgaccount
@hurelhuyag
hurelhuyag / idea.sh
Created July 20, 2019 03:38
IntelliJ cursor freeze problem workaround
ibus-daemon -rd
XMODIFIERS=""
export IBUS_ENABLE_SYNC_MODE=1
@hurelhuyag
hurelhuyag / Index.xml
Created June 4, 2019 07:33
mysql, mariadb mongolian unicode collation
<!-- /usr/share/mysql/charsets/Index.xml -->
<charset name="utf8">
<family>Unicode</family>
<description>UTF-8 Unicode</description>
<alias>utf-8</alias>
<collation name="utf8_general_ci" id="33">
<flag>primary</flag>
<flag>compiled</flag>
</collation>
@hurelhuyag
hurelhuyag / lrc.vb
Created May 17, 2019 14:38
VB6 useful snippets
'https://www.experts-exchange.com/questions/26294906/Calculating-LRC-using-VB-Net.html
Public Function CalcChecksum(ByVal strMessage As String) As Char
Dim byteChecksum As Byte
Dim strChar As Char
For Each strChar In strMessage
byteChecksum = byteChecksum Xor Convert.ToByte(strChar)
Next
Return Convert.ToChar(byteChecksum)
End Function
@hurelhuyag
hurelhuyag / IntelliJ_IDEA__Perf_Tuning.txt
Last active August 29, 2015 14:26 — forked from P7h/IntelliJ_IDEA__Perf_Tuning.txt
I just remove permsizes.
-server
-Xms512m
-Xmx2048m
-XX:NewSize=512m
-XX:MaxNewSize=512m
-XX:+UseParNewGC
-XX:ParallelGCThreads=4
-XX:MaxTenuringThreshold=1
-XX:SurvivorRatio=8
-XX:+UseCodeCacheFlushing
@hurelhuyag
hurelhuyag / mirror_list.txt
Created March 17, 2015 08:35
ubuntu mirror test bash script
http://mirrors.coopvgg.com.ar/ubuntu/
ftp://mirrors.coopvgg.com.ar/ubuntu/
rsync://mirrors.coopvgg.com.ar/ubuntu/
http://ubuntu.unc.edu.ar/ubuntu/
http://mirror.aarnet.edu.au/pub/ubuntu/archive/
ftp://mirror.aarnet.edu.au/pub/ubuntu/archive/
rsync://mirror.aarnet.edu.au/ubuntu/archive/
http://ftp.iinet.net.au/pub/ubuntu/
ftp://ftp.iinet.net.au/pub/ubuntu
rsync://ftp.iinet.net.au/ubuntu/