Set in /etc/default/grub:
...
###GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX_DEFAULT="console=ttyS0,115200n8 console=tty1"
GRUB_CMDLINE_LINUX=""
| #!/bin/bash | |
| #脚本文件名: tc2 | |
| ######################################################################################### | |
| #用TC(Traffic Control)解决ADSL宽带速度技术 Ver. 1.0 by KindGeorge 2004.12.27 # | |
| ######################################################################################### | |
| #此脚本经过实验通过,更多的信息请参阅http://lartc.org | |
| #tc+iptables+HTB+SFQ | |
| # | |
| #一.什么是ADSL? ADSL(Asymmetric Digital Subscriber Loop,非对称数字用户环路) | |
| #用最简单的话的讲,就是采用上行和下行不对等带宽的基于ATM的技术. |
| # Define where to store the generated certs and metadata. | |
| DIR="$(pwd)/tls" | |
| # Optional: Ensure the target directory exists and is empty. | |
| rm -rf "${DIR}" | |
| mkdir -p "${DIR}" | |
| # Create the openssl configuration file. This is used for both generating | |
| # the certificate as well as for specifying the extensions. It aims in favor | |
| # of automation, so the DN is encoding and not prompted. |
| # Make short hostname only if its not an IP address | |
| __tm_get_hostname(){ | |
| local HOST="$(echo $* | rev | cut -d ' ' -f 1 | rev)" | |
| if echo $HOST | grep -P "^([0-9]+\.){3}[0-9]+" -q; then | |
| echo $HOST | |
| else | |
| echo $HOST| cut -d . -f 1 | |
| fi | |
| } |
| proxy_cache_path /var/nginx/cache levels=1:2 keys_zone=blog_cache:1m max_size=100m inactive=60m use_temp_path=off; | |
| server{ | |
| listen 80; | |
| server_name example.com; | |
| # prevent forwarding of cookies | |
| proxy_set_header Cookie ""; | |
| # prevent passing of WP cookie back to client |
| from threading import BoundedSemaphore | |
| from concurrent.futures import ProcessPoolExecutor | |
| class MaxQueuePool: | |
| """This Class wraps a concurrent.futures.Executor | |
| limiting the size of its task queue. | |
| If `max_queue_size` tasks are submitted, the next call to submit will block | |
| until a previously submitted one is completed. |
| #!/usr/bin/env python3 | |
| import sys | |
| import re | |
| """ | |
| Decode kernel message from mpt*sas, like: | |
| mpt3sas_cm0: log_info(0x31120303): originator(PL), code(0x12), sub_code(0x0303) | |
| mpt2sas_cm0: log_info(0x31120303): originator(PL), code(0x12), sub_code(0x0303) |
I've never had great understanding of launchctl but the deprecation of the old commands with launchctl 2 (10.10) has been terrible as all resources only cover the old commands, and documentation for Apple utilities is generally disgracefully bad, with launchctl not dissembling.
Mad props to https://babodee.wordpress.com/2016/04/09/launchctl-2-0-syntax/ which contains most details
Internally, launchd has several domains, but launchctl 1 would only ask for service names,
| window.ssd headerbar.titlebar { | |
| padding-top: 4px; | |
| padding-bottom: 4px; | |
| min-height: 0; | |
| } | |
| window.ssd headerbar.titlebar button.titlebutton { | |
| padding: 0; | |
| min-height: 0; | |
| min-width: 0; |
| ### KERNEL TUNING ### | |
| # Increase size of file handles and inode cache | |
| fs.file-max = 2097152 | |
| # Do less swapping | |
| vm.swappiness = 10 | |
| vm.dirty_ratio = 60 | |
| vm.dirty_background_ratio = 2 |