AddOn:
- Go to about:support in your address bar
- Look for your profiles directory and open it:
- Create a file named
chrome/userChrome.css
in your profile directory:
#!/usr/bin/python3 | |
import sys | |
import subprocess | |
""" | |
Wireplumber sink/source switcher | |
It lets you pass your sinks/sources into a dmenu dropdown | |
for ease of access |
#!/bin/bash | |
# | |
# *** For DSM v7.x *** | |
# | |
# How to use this script: | |
# 1. Get your 3 PEM files ready to copy over from your local machine/update server (privkey.pem, fullchain.pem, cert.pem) | |
# and put into a directory (this will be $CERT_DIRECTORY). | |
# Personally, I use this script (https://gist.github.com/catchdave/3f6f412bbf0f0cec32469fb0c9747295) to automate steps 1 & 4. | |
# 2. Ensure you have a user setup on synology that has ssh access (and ssh access is setup). | |
# This user will need to be able to sudo as root (i.e. add this line to sudoers, <USER> is the user you create): |
AddOn:
chrome/userChrome.css
in your profile directory:macOS has ncurses version 5.7 which does not ship the terminfo description for tmux. There're two ways that can help you to solve this problem.
Instead of tmux-256color
, use screen-256color
which comes with system. Place this command into ~/.tmux.conf
or ~/.config/tmux/tmux.conf
(for version 3.1 and later):
This should make True Color (24-bit) and italics work in your tmux session and vim/neovim when using Alacritty (and should be compatible with any other terminal emulator, including Kitty).
Running this script should look the same in tmux as without.
curl -s https://gist.githubusercontent.com/lifepillar/09a44b8cf0f9397465614e622979107f/raw/24-bit-color.sh >24-bit-color.sh
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
{ | |
"app-id": "im.srain.Srain", | |
"runtime": "org.gnome.Platform", | |
"runtime-version": "3.26", | |
"sdk": "org.gnome.Sdk", | |
"command": "srain", | |
"rename-desktop-file": "Srain.desktop", | |
"rename-icon": "srain", | |
"finish-args": [ | |
"--device=all", |
This is about documenting getting Linux running on the late 2016 and mid 2017 MPB's; the focus is mostly on the MacBookPro13,3 and MacBookPro14,3 (15inch models), but I try to make it relevant and provide information for MacBookPro13,1, MacBookPro13,2, MacBookPro14,1, and MacBookPro14,2 (13inch models) too. I'm currently using Fedora 27, but most the things should be valid for other recent distros even if the details differ. The kernel version is 4.14.x (after latest update).
The state of linux on the MBP (with particular focus on MacBookPro13,2) is also being tracked on https://github.com/Dunedan/mbp-2016-linux . And for Ubuntu users there are a couple tutorials (here and here) focused on that distro and the MacBook.
Note: For those who have followed these instructions ealier, and in particular for those who have had problems with the custom DSDT, modifying the DSDT is not necessary anymore - se
-fcolor-diagnostics | |
-isystem/usr/include/c++/6.2.1/ | |
-isystem/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.1/include | |
-I./inc | |
-pthread | |
-I/usr/include/gtk-3.0 | |
-I/usr/include/at-spi2-atk/2.0 | |
-I/usr/include/at-spi-2.0 | |
-I/usr/include/dbus-1.0 | |
-I/usr/lib/dbus-1.0/include |