Skip to content

Instantly share code, notes, and snippets.

View Artoria2e5's full-sized avatar
💤
Functionally asleep

Mingye Wang Artoria2e5

💤
Functionally asleep
View GitHub Profile
@Artoria2e5
Artoria2e5 / fbi_warning.bash
Last active November 12, 2015 07:47 — forked from 1a57danc3/FBI WARNING SSH NOTIFICATION.SH
fbi_warning_rc.bash
#!/bin/bash
# Add this to your bashrc. May work in other shells.
# For POSIX Portability, apply github.com/koalaman/shellcheck/wiki/SC2039
# Find out current screen width, if COLUMNS is absent
[ "$COLUMNS" ] || COLUMNS=$(tput cols || echo 80) _fbi_resetcol=1
_FBI_MESSAGE="Federal Law provides severe civil and criminal penalties \
for the unauthorized reproduction, distribution, or exhibition of \
copyrighted motion pictures (Title 17, United States Code, Sections \
501 and 508). The Federal Bureau of Investigation investigates \
allegations of criminal copyright infringement"

于 Linode CentOS 7 下启动 SELinux

建议在干净的系统下进行配置, 本文假设您的系统是初装后的状态

运行uname查看当前内核, 包含Linode字样(3.15.4-x86_64-linode45)即需要更换内核

# uname -a
Linux localhost.localdomain 3.15.4-x86_64-linode45 #1 SMP Mon Jul 7 08:42:36 EDT 2014 x86_64 x86_64 x86_64 GNU/Linux
@Artoria2e5
Artoria2e5 / WTF
Last active August 29, 2015 14:04 — forked from MingcongBai/sources
The debian guys are actually using DAK!