参考1: How do I free up more space in /boot? 参考2: What is the safest way to clean up /boot partition?
# as root
# 先看看当前用的内核版本
uname -r
# STEP 1
# 手动删掉目录里一些旧的数据 initrd.img- 开头的,释放点空间,别删当前版本号的
参考1: How do I free up more space in /boot? 参考2: What is the safest way to clean up /boot partition?
# as root
# 先看看当前用的内核版本
uname -r
# STEP 1
# 手动删掉目录里一些旧的数据 initrd.img- 开头的,释放点空间,别删当前版本号的
"C:\Users\Seven\AppData\Local\Microsoft\WindowsApps\ubuntu1804.exe" -c "/bin/zsh --login -i" |
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
ssh-copy-github | |
=============== | |
@author: sang | |
Import all your ssh keys from github to `authorized_keys`. | |
Performs deduplication over public keys. |
Settings > Tools > Terminal > Application settings | |
"C:\Windows\System32\bash.exe" --login -i -c zsh |
This guide on how to convert an SVN repository to a git repository was mostly taken from John Albin Wilkins post on Converting a Subversion repository to Git.
:
sudo apt purge snapd ubuntu-core-launcher squashfs-tools |
{ | |
"algo": "cryptonight", | |
"api": { | |
"port": 0, | |
"access-token": null, | |
"worker-id": null, | |
"ipv6": false, | |
"restricted": true | |
}, | |
"av": 0, |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<!-- Viewport meta tag is critical to have mobile browsers | |
actually report correct screen dimensions --> | |
<meta name="viewport" | |
content="width=device-width, initial-scale=1, user-scalable=no" /> |
FROM alpine:latest as builder | |
RUN adduser -S -D -H -h /xmrig miner | |
WORKDIR /xmrig | |
RUN apk --no-cache upgrade && \ | |
apk --no-cache add \ | |
curl \ | |
git \ |
Windows 上 通过cygwin 拉取gitlab 私有仓库,因为npm调用git时cygwin目录和系统目录冲突需要修改npm的git.js 位置在全局的node_modules目录,我电脑上的位置是C:\Users\Seven\AppData\Roaming\npm\node_modules\npm\node_modules\pacote\lib\util\git.js
module.exports._exec = execGit
function execGit (gitArgs, gitOpts, opts) {
opts = optCheck(opts)
+ // hack by seven
+ if (gitArgs) {
+ gitArgs = gitArgs.map(gitArg => gitArg.indexOf('C:\\') === -1 ? gitArg : gitArg.replace(/\\/g, '/').replace(/C\:\//i, '/cygdrive/c/'));