Skip to content

Instantly share code, notes, and snippets.

View ontheklaud's full-sized avatar
😪

Seungkyun Hong ontheklaud

😪
View GitHub Profile
@ontheklaud
ontheklaud / change_virbr_mtu.sh
Last active July 2, 2020 09:26
Change KVM VM's network packet size (MTU)
#! /bin/bash
# Reference(s):
# https://libvirt.org/sources/virshcmdref/html/sect-net-edit.html
# 1. get information of virtual bridge (virbr*)
sudo virsh net-list --all
# 2. edit virbr mtu
sudo virsh net-edit <virbr connection name>
@ontheklaud
ontheklaud / terminate_win10.cmd
Created February 20, 2020 00:38
Terminate annoying and useless K-style security trojans
@echo off
sc config tuctlsystem start=demand
Taskkill /IM TDepend.exe /F
Taskkill /IM TDepend64.exe /F
Taskkill /IM TUCTLSystem.exe /F
REM del C:\Windows\SysWow64\TDepend.exe
REM del C:\Windows\SysWow64\TDepend64.exe
@ontheklaud
ontheklaud / inference-from-cloud.ipynb
Last active February 14, 2020 03:07
GCP AutoML Multi-Class Image Label Prediction
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ontheklaud
ontheklaud / setup_idrac_on_centos7.sh
Created November 24, 2019 17:44
Live setup/config of Dell iDRAC on CentOS 7
#!/bin/bash
# 0. Get iDRAC command-line tools
# (we use Dell EMC iDRAC Tools for Linux, v9.3.1)
# (for reference, use this link: https://dl.dell.com/FOLDER05818335M/1/DellEMC-iDRACTools-Web-LX-9.3.1-3669_A00.tar.gz)
# 1. extract & install tools (install script is USELESS/root privilege is required)
tar -xf DellEMC-iDRACTools-Web-LX-*.tar.gz
yum install iDRACTools/racadm/RHEL7/x86_64/srvadmin-*.rpm
alternatives --install /usr/sbin/racadm racadm /opt/dell/srvadmin/sbin/racadm 1
@ontheklaud
ontheklaud / recover_vhd_filetype.reg
Created May 12, 2019 18:19
Recover Windows Stock VHD filetype configuration (from Oracle VirtualBox)
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.vhd]
@="Windows.VhdFile"
@ontheklaud
ontheklaud / setup_custom_tensorflow_at_nurion.sh
Last active June 12, 2020 01:52
Setup Custom Python/TensorFlow env with Miniconda3 at KISTI Nurion HPC (KNL/SKL)
#!/bin/bash
# 0. import required modules
module add gcc/7.2.0 openmpi/3.1.0 htop/2.2.0
# 1. install Miniconda3 (Miniconda3-4.5.4/Python 3.6.5)
# refer: https://repo.continuum.io/miniconda/
# add miniconda PATH in ~/.bashrc
wget https://repo.continuum.io/miniconda/Miniconda3-4.5.4-Linux-x86_64.sh
chmod +x Miniconda3-4.5.4-Linux-x86_64.sh
@ontheklaud
ontheklaud / workaround.log
Created January 9, 2019 02:23
LTFS Mount Failure with ICU bug with HPE SOS
$ sudo /usr/local/bin/ltfs -o /dev/st0 /mnt/lto5/
480f LTFS14000I LTFS starting, HPE StoreOpen Software version 3.4.0, log level 2
480f LTFS14058I LTFS Format Specification version 2.4.0
480f LTFS14104I Launched by "/usr/local/bin/ltfs -o /dev/st0 /mnt/lto5/"
480f LTFS14105I This binary is built for Linux (x86_64)
480f LTFS14106I GCC version is 4.8.5 20150623 (Red Hat 4.8.5-11)
480f LTFS17087I Kernel version: Linux version 3.10.0-862.el7.x86_64 ([email protected]) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-28) (GCC) ) #1 SMP Fri Apr 20 16:44:24 UTC 2018 i386
480f LTFS17089I Distribution: CentOS Linux release 7.5.1804 (Core)
480f LTFS17089I Distribution: NAME="CentOS Linux"
480f LTFS17089I Distribution: CentOS Linux release 7.5.1804 (Core)
@ontheklaud
ontheklaud / Copy_Wallpapers.bat
Created January 7, 2019 07:08
Copy great Windows 10 wallpapers into somewhere
C:\Windows\System32\xcopy.exe /Y \
"C:\Users\<user>\AppData\Local\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Assets\*" \
"C:\Users\<user>\Pictures\Wallpaper"
@ontheklaud
ontheklaud / setup-ignite-cluster.txt
Last active March 20, 2019 00:48
Apache Ignite integration for high-performance data cache delivery
# OpenJDK 1.8 setup
# Apache Maven setup
# Build In-Memory Data Fabric release (without LGPL dependencies)
$ mvn clean package -DskipTests
# Javadoc generation (optional)
$ mvn initialize -Pjavadoc
@ontheklaud
ontheklaud / build_tf110.log
Created December 3, 2018 06:08
tf1.10.1 build on CentOS 7 for CPU/CUDA optimization
[user@host tensorflow-1.10.1]$ source activate tf110
(tf110) [user@host tensorflow-1.10.1]$ ./configure
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.protobuf.UnsafeUtil (file:/home/user/.cache/bazel/_bazel_user/install/792a28b07894763eaa2bd870f8776b23/_embedded_binaries/A-server.jar) to field java.lang.String.value
WARNING: Please consider reporting this to the maintainers of com.google.protobuf.UnsafeUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
WARNING: --batch mode is deprecated. Please instead explicitly shut down your Bazel server using the command "bazel shutdown".
You have bazel 0.17.2 installed.
Please specify the location of python. [Default is /home/user/anaconda3/envs/tf110/bin/python]: <ENTER>