Profile cover photo
Profile photo
고준
98 followers -
System Engineer in Seoul
System Engineer in Seoul

98 followers
About
Posts

Post has attachment
Public
Customizing User-Agent string when using curl or Python requests
The Linux tool cURL and the Python requests library can both be used to submit GET requests to REST API endpoints. On some sites, however, you will get 403 Forbidden or 401 Unauthorized errors unless you change your User-Agent string to something other than...

Post has attachment
Public
OmegaT 4.1.1 settings for MS Translator under MS Azure
MS Translator used to be available through the Azure Apps Marketplace, but after April 2017 MS Translator is offered as part of Microsoft's Cognitive Services API. In the past, using OmegaT with MS Translator required you to specify a client id and client s...

Post has attachment
Public
RHEL 7.X DBus.Error.AccessDenied caused by permissions problem on root partition
At a client site, I have 6 nodes running Openstack Mitaka on top of RHEL 7.2. After rebooting one node, however, the networking configs in /etc/sysconfig/network-scripts were not being loaded (specifically, the OVS bridges necessary for Openstack to run, i....

Post has attachment
Public
Generate /etc/shadow PW hash from the cli using python2 and 3
In /etc/shadow, hashed and salted passwords are stored together with the user name as follows: myuser:$6[someSaltedHash]:... where the number following the $ can take the values 1~6 corresponding to the following hash algorithms: 1    md5 2a   Blowfish 2y  ...

Post has attachment
Public
Using ibus in non-GTK/QT apps like Emacs, Java, and Enlightenment/EFL
ibus is a popular Input Method Editor (IME) for Linux which I use for entering Korean and Chinese characters (via ibus-hangul ). ibus has good compatibility with apps using the GTK or QT UI frameworks, but ibus sometimes behaves strangely in GUI apps that d...

Post has attachment
Public
Fix black screen in tty mode with Ubuntu 16.04.1 on ASUS Prime Z270-K with KabyLake CPU
After installing Ubuntu 16.04.1 LTS via USB in UEFI mode, I rebooted and was met by a black screen. From another machine on the local network, I was able to ssh into the newly-installed Ubuntu 16.04.1 box and noticed the following in dmesg : [  +0.000000] C...

Post has attachment
Public
Migrate from cinder loopback device to physical block device on RDO Mitaka
In PoC or test installations of RDO Mitaka via Packstack, by default the cinder-volumes LVM volume group is created in the form of a loopback file/device under /var/lib/cinder/ This might be OK for light testing, but if you plan to use cinder volumes in pro...

Post has attachment
Public
Kernel boot parameters for grub and bootctl when using sd-encrypt mkinitcpio hook
In Archlinux, the initial ramdisk which contains kernel modules needed for booting the system is generated by a bash script named mkinitcpio . In /etc/mkinitcpio.conf  you specify which kernel modules you need at boot and then you build the initrd image (wh...

Post has attachment
Public
Mirroring PyPI locally
I recently had to set up a local PyPI (Python Package Index) mirror at a client site so that developers could download pip packages locally instead of from the Internet. I used bandersnatch to mirror the packages hosted on PyPI. Bandersnatch can be installe...

Post has attachment
Public
How to create a mirror of the entire npm index including attachments using npm-fullfat-registry fullfat.js
In a previous post I attempted to create a local npm mirror by simply caching all packages I installed using npm install pkgname . Unfortunately, this approach is very slow, downloading only about 100 MB per hour. Considering that all the packages in npm ta...
Wait while more posts are being loaded