Skip to content

Instantly share code, notes, and snippets.

View mcxiaoke's full-sized avatar

Hello World mcxiaoke

View GitHub Profile
@mcxiaoke
mcxiaoke / README.md
Created December 4, 2022 14:33 — forked from pklaus/README.md
README and manual page from Intel Linux Driver e1000e v3.0.4.1

e1000e Linux* Base Driver for Intel® Network Connection

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

January 13, 2014

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

@mcxiaoke
mcxiaoke / backup.env
Created November 20, 2022 12:02 — forked from ryankurte/backup.env
Linux backup automation
# 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 November 20, 2022 04:20 — forked from mjkl-gh/smartctl-validate-health.sh
Maas script for checking disk health instead of --xall
#!/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

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 November 14, 2022 07:21 — forked from kylemanna/20-radeon.conf
Adventures with a flaky Radeon 4200 HD GPU on Linux
#
# 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 November 4, 2022 13:27 — forked from yougg/proxy.md
complete ways to set http/socks/ssh proxy environment variables

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 November 1, 2022 03:49 — forked from patrickmmartin/PYTHON_DEFAULT.md
update-alternatives for python3 on Ubuntu

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

@mcxiaoke
mcxiaoke / anime-list-top500.md
Created October 18, 2022 04:17
动画佳作榜TOP500
  • 格式:名次 - 年份 - 综合评分 - 动画名
  • 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 - 银魂'
@mcxiaoke
mcxiaoke / pr.md
Created September 26, 2022 13:46 — forked from piscisaureus/pr.md
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

@mcxiaoke
mcxiaoke / shell-setup.ps1
Last active September 10, 2022 07:57 — forked from mikepruett3/shell-setup.ps1
Packages to install via scoop, winget, choco, and other tools...
<#
.SYNOPSIS
Script to Initialize my custom powershell setup.
.DESCRIPTION
Script uses scoop
.NOTES
**NOTE** Will configure the Execution Policy for the "CurrentUser" to Unrestricted.
Author: Mike Pruett
Date: October 18th, 2018