Skip to content

Instantly share code, notes, and snippets.

View askdaddy's full-sized avatar

Seven Chan askdaddy

  • Internet
View GitHub Profile
@askdaddy
askdaddy / clean_boot.md
Last active March 16, 2020 09:08
清理/boot目录
@askdaddy
askdaddy / tool_terminal.conf
Created December 9, 2019 08:01
WSL-Ubuntu setting Clion Terminal
"C:\Users\Seven\AppData\Local\Microsoft\WindowsApps\ubuntu1804.exe" -c "/bin/zsh --login -i"
@askdaddy
askdaddy / ssh-copy-github
Created December 2, 2019 12:31
Import your ssh keys from github
#!/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.
@askdaddy
askdaddy / config.txt
Created November 15, 2019 08:25
WSL terminal in GoLand
Settings > Tools > Terminal > Application settings
"C:\Windows\System32\bash.exe" --login -i -c zsh
@askdaddy
askdaddy / svn_to_git.rst
Created June 5, 2019 00:56 — forked from epicserve/svn_to_git.rst
Convert SVN Repositories to Git Repositories

Convert SVN Repositories to Git Repositories

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.

1. Retrieve a list of all Subversion committers

:

@askdaddy
askdaddy / cmd
Created May 6, 2019 10:15
卸载ubuntu里的snapd
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,
@askdaddy
askdaddy / index.html
Created January 8, 2019 12:48
PIXI scale
<!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" />
@askdaddy
askdaddy / dockerfile.txt
Created December 3, 2018 05:55
mxrig-docker-build
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 \
@askdaddy
askdaddy / hack.md
Created November 1, 2018 12:39
hacking npm git.js

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 =&gt; gitArg.indexOf('C:\\') === -1 ? gitArg : gitArg.replace(/\\/g, '/').replace(/C\:\//i, '/cygdrive/c/'));