Skip to content

Instantly share code, notes, and snippets.

Avatar

Hello World mcxiaoke

  • Earth
View GitHub Profile
@mcxiaoke
mcxiaoke / README.md
Created Dec 8, 2022 — forked from sukesh-ak/README.md
How to Convert OVA to VHDX
View README.md

How to convert OVA to VHDX

  • Rename .OVA file to .7z
  • Use winrar to extract .vmdk out of it

Read here and install qemu (extract zip file)

https://cloudbase.it/qemu-img-windows/

qemu-img convert "D:\VirtualBox\Open-disk001.vmdk" -O vhdx -o subformat=dynamic "D:\VirtualBox\Open.vhdx"

@mcxiaoke
mcxiaoke / vmdk_vhdx.md
Created Dec 8, 2022 — forked from rahilwazir/vmdk_vhdx.md
Convert VMWare to Hyper-V (vmdk to vhdx)
View vmdk_vhdx.md
@mcxiaoke
mcxiaoke / README.md
Created Dec 4, 2022 — forked from pklaus/README.md
README and manual page from Intel Linux Driver e1000e v3.0.4.1
View README.md

e1000e Linux* Base Driver for Intel® Network Connection

================================================================================

January 13, 2014

================================================================================

@mcxiaoke
mcxiaoke / backup.env
Created Nov 20, 2022 — forked from ryankurte/backup.env
Linux backup automation
View backup.env
# Systemd environment file for backup.sh daily backup service
# Place in /etc/backup.env
# Destination for rsync file system clone
BACKUP_DEST=/media/large1/backups/raw
# Destination for restic repository
RESTIC_REPOSITORY=/media/large1/backups/restic
# Restic password file
@mcxiaoke
mcxiaoke / smartctl-validate-health.sh
Created Nov 20, 2022 — forked from mjkl-gh/smartctl-validate-health.sh
Maas script for checking disk health instead of --xall
View smartctl-validate-health.sh
#!/usr/bin/env python3
#
# smartctl-validate-health - Validate SMART health for all drives in parallel.
#
# Author: Lee Trager <lee.trager@canonical.com>
# Newell Jensen <newell.jensen@canonical.com>
#
# Copyright (C) 2017-2020 Canonical
#
# This program is free software: you can redistribute it and/or modify
View Converting audio to AAC with Fraunhofer FDK AAC (libfdk_aac) in FFmpeg.md

Converting audio to AAC with Fraunhofer FDK AAC (libfdk_aac) in FFmpeg

Check if you have an FFmpeg build supporting libfdk_aac

Run:

ffmpeg -hide_banner -h encoder=libfdk_aac
@mcxiaoke
mcxiaoke / 20-radeon.conf
Created Nov 14, 2022 — forked from kylemanna/20-radeon.conf
Adventures with a flaky Radeon 4200 HD GPU on Linux
View 20-radeon.conf
#
# Xorg Config for an Integrated AMD / ATI Radeon HD 4200 on a MSI 785GTM-E45
#
#
# Use special reduced timings for 1080p HDMI output as it gets rid of screen
# corruption on the Radeon 4200 HD (Win7 never had problems with same cabling).
#
# Other symptoms included skipping audio and periodic screen corruption in XBMC
# as well as general use.
#
@mcxiaoke
mcxiaoke / proxy.md
Created Nov 4, 2022 — forked from yougg/proxy.md
complete ways to set http/socks/ssh proxy environment variables
View proxy.md

set http or socks proxy environment variables

# set http proxy
export http_proxy=http://PROXYHOST:PROXYPORT

# set http proxy with user and password
export http_proxy=http://USERNAME:PASSWORD@PROXYHOST:PROXYPORT

# set http proxy with user and password (with special characters)
@mcxiaoke
mcxiaoke / PYTHON_DEFAULT.md
Created Nov 1, 2022 — forked from patrickmmartin/PYTHON_DEFAULT.md
update-alternatives for python3 on Ubuntu
View PYTHON_DEFAULT.md

Ubuntu 16 default python is almost python 3

Loads of solutions exist, but for changing the system default, alias is not the way to go.

$ update-alternatives --list python update-alternatives: error: no alternatives for python

View anime-list-top500.md
  • 格式:名次 - 年份 - 综合评分 - 动画名
  • 001 - 2008 - 8.9089 - CLANNAD ~AFTER STORY~
  • 002 - 2011 - 8.8047 - 命运石之门
  • 003 - 2004 - 8.7473 - 攻壳机动队 S.A.C. 2nd GIG
  • 004 - 1988 - 8.7403 - 银河英雄传说
  • 005 - 2009 - 8.7248 - 钢之炼金术师 FULLMETAL ALCHEMIST
  • 006 - 1998 - 8.7043 - 星际牛仔
  • 007 - 2002 - 8.6977 - 攻壳机动队 STAND ALONE COMPLEX
  • 008 - 2010 - 8.6306 - 凉宫春日的消失
  • 009 - 2011 - 8.6093 - 银魂'