指定iOS模拟器
react-native run-ios --simulator "iPhone 7"
# 查看可用设备:xcrun simctl list devices
Hacker用我的邮箱给我发了封邮件(第三张图是中文自动翻译版),发件人说他是 darknet 的 exel0nman,他说他有我的图片、视频、文件还说我 funny and excited,另外跟我要 $500 的比特币打到帐户 3AhACrocUzixRXRNuFqGdeQXWAgVujvFRv 上 :
看上图明显密码已经泄漏了,凌晨到现在已经好几个小时了。
这是电脑上打开后的邮件:
自动翻译一下:
这玩笑一点也不好玩,不过提醒我这个密码用的时间是有点长了,另外数据还在本地勤...
修改 git 作者
git commit --amend --author="NewAuthor <NewEmail@address.com>"
批量修改 git 作者
#!/bin/sh
#via https://blog.csdn.net/diu_brother/article/details/51982993
git filter-branch --env-filter '
an="$GIT_AUTHOR_NAME"
am="$GIT_AUTHOR_EMAIL"
cn="$GIT_COMMITTER_NAME"
cm="$GIT_COMMITTER_EMAIL"
if [ "$GIT_COMMITTER_...
Vue项目采用整站部署,不使用接口所在站点的二级目录或一级目录
目录结构
/webroot/
├─ api.app.com/
│ ├─ public_html/
│ │ ├─ uploads/
│ │ └─ web.conf
│ ├─ certs/
│ ├─ logs/
│ └─ rebots.txt
└─ wechat.app.com/
├─ public_html/
│ ├─ uploads/ <-- link
│ └─ index.html
├─ certs/
├─ logs/
└─ rebots.txt
webpack dev server...
隐藏置顶贴(深度论坛)
// ==UserScript==
// @name 隐藏置顶贴(深度论坛)
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://bbs.deepin.org/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
jQuery("tbody[id^='stickthread_'").remove()...
usb_modeswitch 不会开机自动运行
# https://bbs.archlinux.org/viewtopic.php?id=175443 #13,#15
mv /lib/udev/rules.d/40-usb_modeswitch.rules /lib/udev/rules.d/61-usb_modeswitch.rules
sudo udevadm control --reload-rules
语言选为 English 后不给默认安装腾讯 QQ 的解决办法
# step 0. Ctrl + Alt + F2 进入终端
# step 1. 创建 /home/{USER_NAME}/.config/locale
LANG=en_US.UTF-8
LANGUAGE=en_US
# ste...
sudo 时 TouchID 优先
# /etc/pam.d/sudo 开头添加:
auth sufficient pam_tid.so
阻止 macOS 读取 SMB 共享上的 .DS_Store 文件(加快 smb 速度)
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE
# via: https://support.apple.com/zh-cn/HT208209
修改 Launchpad 默认的 5 行 7 列改为 6 行 8 列
defaults write com.apple.dock springboard-rows -int 6
defaults write com.ap...
解决办法
合盖后关闭网络唤醒
sudo pmset -b tcpkeepalive 0
# -c 调节设定用于连接充电器的时候
# -b 调节设定用于使用电池(Battery)的时候
# -u 调节设定用于使用 UPS 的时候
# -a 调节设定用于全部情景
其它设置
# 合盖后数据在内存中保留的秒数(默认8个小时 = 28800秒)
sudo pmset -b standbydelay 28800
# 装数据写入硬盘彻底断电的时间
sudo pmset -b autopoweroffdelay 28800
pmset的用法
pmset 即...
生成密码
执行 grub-mkpasswd-pbkdf2
user:~ $ grub-mkpasswd-pbkdf2
输入口令:
Reenter password:
PBKDF2 hash of your password is grub.pbkdf2.sha512.10000.1BB9B516B1658C99B71B3A4D4B1268A43A20C3C3AEAC7F558106DBC87118D5C34143005BBCBD5FF06D3158C9823596CD00568EEACB190E2A92D760EC049C9BCE.54A9AB1E031550AA919F67E427E33F2B8F14268FBCFFA4C2BFF51812D5F559142D8B313C63247D22EF3CA97FC4ED87A7B6FEB3764EAA17...
alignContent
alignItems
alignSelf
aspectRatio
backfaceVisibility
backgroundColor
borderBottomColor
borderBottomEndRadius
borderBottomLeftRadius
borderBottomRightRadius
borderBottomStartRadius
borderBottomWidth
borderColor
borderEndColor
borderEndWidth
borderLeftColor
borderLeftWidth
borderRadius
borderRightColor
borderRightWidth
borderStartColor
borderStartWidth
borderSt...
需求
访问 upall.cn/v1 时从 v1.upall.cn 获取内容
配置
server {
listen 443;
server_name upall.cn
#
# 其它代码……
#
location ^~ /v1/ {
proxy_pass http://v1.upall.cn/;
client_max_body_size 0;
proxy_connect_timeout 36000s;
proxy_read_timeout 36000s;
proxy_request_buffering off;
}
}
<完>
.inputrc
# 上/下方向键搜索该字符(串)开头的命令,光标定到开头可以选择历史命令
"\e[A": history-search-backward
"\e[B": history-search-forward
# Shift+左右方向键以单词为单位移动光标
"\e[1;2C": forward-word
"\e[1;2D": backward-word
set show-all-if-ambiguous...