Skip to content

Instantly share code, notes, and snippets.

View newrerio's full-sized avatar
🌴
On vacation

大鸟 newrerio

🌴
On vacation
View GitHub Profile

使用SSH方式登录谷歌云服务器

通过网页端登录Google Cloud

切换到root用户

sudo su

修改root密码

@newrerio
newrerio / alibaba
Created August 10, 2020 05:23
Ubuntu 18.04 国内 apt 源
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
git config --global https.proxy http://127.0.0.1:7890
git config --global https.proxy http://127.0.0.1:7890
git config --global --unset http.proxy
git config --global --unset https.proxy
npm config delete proxy
@newrerio
newrerio / slice_trick.md
Last active January 22, 2021 08:10
slice trick

Since the introduction of the append built-in, most of the functionality of the container/vector package, which was removed in Go 1, can be replicated using append and copy.

Here are the vector methods and their slice-manipulation analogues:

AppendVector

a = append(a, b...)

Copy

# 发现
醋酸氟氢可的松
如今稍有医学常识的人都知道,风湿性关节炎是一种自身免疫病,病人的免疫系统错把自己的关节组织当成了敌人,并实施攻击,结果造成了关节发炎,红肿僵硬,严重的病人根本无法行走,失去活动能力,非常痛苦。可在上世纪初的时候,风湿性关节炎还被看做是某种细菌感染造成的。幸亏当时抗生素还没有被发现,否则医生们肯定会给每个关节炎病人打一针青霉素。
关节炎
1928年,美国明尼苏达大学马约医学院的药剂系系主任菲利浦.亨奇(PhilipHench)接待了一位奇怪的病人,这位65岁的病人其实是该医院的医生,他告诉亨奇一件奇怪的事情:自从他得了黄疸病,他的风湿性关节炎症状就消失了。4个星期之后,他的黄疸病治好了,但是他的关节炎直到7个月后才再次复发。
@newrerio
newrerio / Gollum
Last active October 3, 2021 09:00
Gollum
# 西毒饮,咕噜丸,Gollum
灵感:无限二分向上
灵感2:有毒(一说无毒)
蛇床子 Cnidium monnieri (L.) Cuss.
孜然 Cumin
花椒 Sichuan Pepper
肉豆蔻 Myristica fragrans
@newrerio
newrerio / ubuntu
Last active October 6, 2021 10:57
# 修改软件源 ubuntu 20.04 lts
https://howto.azureedge.net/how-to-run-macos-on-kvm-qemu/#:~:text=In%20order%20for%20you%20to%20run%20macOS%20on,virtinst%20libvirt-daemon-system%20virt-manager.%20Secure%20the%20Vhost_net%20The%20
# 首先备份源列表
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
sudo vim /etc/apt/sources.list
@newrerio
newrerio / 香肠泡菜的基本常识
Last active October 30, 2021 19:48
香肠泡菜的基本常识
香肠泡菜的基本常识:
低盐、必须密封腌制30天以上、亚硝酸盐剧毒
韩国泡菜 【盐! 和 大白菜】
酸萝卜 【盐! 和 萝卜】
酸豆角 【盐! 和 豇豆】
酸菜 【盐! 和 小白菜、青菜之类】
香肠 【盐 和 肠衣密封】
@newrerio
newrerio / Apple-Magic-Mouse-Windows-10-Drivers.txt
Created November 10, 2021 03:32 — forked from esters/Apple-Magic-Mouse-Windows-10-Drivers.txt
Apple Magic Mouse (A1296) - Windows 10 x64 Drivers
1. Download Brigadier - https://github.com/timsutton/brigadier/releases
2. Extract and run Brigadier (via CMD) with the following flags - brigadier.exe -m Macmini8,1
3. Brigadier will download and extract the bootcamp drivers for Mac Mini (2018)
4. Navigate - BootCamp-091-87418\BootCamp\Drivers\Apple\AppleWirelessMouse
5. Right click on AppleWirelessMouse.inf - Install.
@newrerio
newrerio / trojan-go_install.sh
Last active April 14, 2022 00:59
trojan-go一键安装
#!/bin/bash
#=================================================
# System Required: :Debian 9+/Ubuntu 18.04+/Centos 7+
# Description: Trojan&V2ray&SSR script
# Version: 1.0.0
# Author: Jeannie
# Blog: https://jeanniestudio.top/
# Official document: www.v2ray.com
#=================================================
sh_ver="1.0.0"