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 / 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/
@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 / 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 / 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 / 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 / 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 / fb_group_pending_post_cleaner.js
Created October 16, 2019 12:03
fb_group_pending_post_cleaner.js
(function () {
setInterval(function(){
window.scrollBy(0, 100);
}, 1850);
function delConfirm() {
var el = $('button.layerConfirm');
if (el.length) {
console.log('confirm:', el);
@hurelhuyag
hurelhuyag / hdd_bench.log
Created December 20, 2019 12:33
hdd_vs_ssd_vs_cached_hdd
Jobs: 1 (f=1): [_(5),w(1)][61.7%][r=0KiB/s,w=0KiB/s][r=0,w=0 IOPS][eta 01h:04m:36s]
Seqread: (groupid=0, jobs=1): err= 0: pid=3334: Fri Dec 20 20:30:30 2019
read: IOPS=125, BW=125MiB/s (132MB/s)(5000MiB/39841msec)
slat (usec): min=35, max=782, avg=154.22, stdev=27.76
clat (msec): min=2, max=421, avg= 7.81, stdev= 8.56
lat (msec): min=2, max=421, avg= 7.96, stdev= 8.56
clat percentiles (msec):
| 1.00th=[ 6], 5.00th=[ 6], 10.00th=[ 7], 20.00th=[ 7],
| 30.00th=[ 7], 40.00th=[ 7], 50.00th=[ 8], 60.00th=[ 8],
| 70.00th=[ 8], 80.00th=[ 8], 90.00th=[ 8], 95.00th=[ 8],
@hurelhuyag
hurelhuyag / Main.java
Last active August 6, 2022 19:22
Bixolon printer using from java
package net.hh.bixolondemo2;
import jpos.JposException;
import jpos.POSPrinter;
import jpos.POSPrinterConst;
import jpos.events.StatusUpdateEvent;
import jpos.events.StatusUpdateListener;
import javax.swing.*;
import java.io.IOException;
@hurelhuyag
hurelhuyag / maven_plugin.xml
Created May 27, 2020 01:54
Web developing with SSL enabled tomcat server
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>keytool-maven-plugin</artifactId>
<version>1.5</version>
<configuration>
<workingDirectory>${user.home}</workingDirectory>
<alias>tomcat</alias>
<keyalg>RSA</keyalg>
<dname>CN=SS, OU=Demo, O=SS, L=UB, ST=SS, C=MN</dname>
<storepass>123456</storepass>