Skip to content

Instantly share code, notes, and snippets.

View full-sized avatar
💭
I may be slow to respond.

沙漠之子 maboloshi

💭
I may be slow to respond.
  • 08:08 (UTC +08:00)
View GitHub Profile
View 借助git快速批量转换CRLF到LF.md
@maboloshi
maboloshi / expand-collapse.user.js
Last active September 22, 2023 02:57 — forked from Jaace/expand-collapse.user.js
TamperMonkey Script: Gist expand / collapse files.
View expand-collapse.user.js
// Add a button to Collapse or Expand files in a Github Gist
//
// Install Tampermonkey and add this as a script
// ==UserScript==
// @name Github Gists: Expand / Collapse Files
// @namespace https://gist.github.com/Jaace/7b70d2bb19af63e10b144ed7d867eae0
// @version 0.1
// @description Add a button to expand or collapse files in github gists
// @author Jason Boyle
View trojan_mult.sh
#!/bin/bash
#
#Author: atrandys
#
#
function blue(){
echo -e "\033[34m\033[01m$1\033[0m"
}
function green(){
echo -e "\033[32m\033[01m$1\033[0m"
@maboloshi
maboloshi / resize_image.sh
Last active April 5, 2020 15:55
图片转换并缩小 #convert #imagemagick
View resize_image.sh
#! /bin/bash
# 在需要转换图片的目录下运行此脚本
# convert命令是ImageMagick这个图片处理软件包中的一个命令
# 安装ImageMagick之后,才能使用convert命令
# man convert可以查看命令用法帮助文档
# 逐个将所有png,bmp,jpg格式图片文件转换为原来尺寸的1/4大并保存为jpg格式图片文件
# 转换后重命名
@maboloshi
maboloshi / README.md
Last active September 20, 2023 06:58
[Mac下配置Aria2] #macOS #aria2
View README.md

Mac下配置Aria2

安装和设置 Aria2

# 使用 Homebrew 安装 aria2
brew install aria2

# 创建配置文件aria2.conf和空对话文件aria2.session
mkdir ~/.aria2 && cd ~/.aria2
touch aria2.conf
@maboloshi
maboloshi / Download a single file from a private GitHub repo.md
Created November 2, 2019 10:36
[Download a single file from a private GitHub repo] #github #curl
View Download a single file from a private GitHub repo.md
@maboloshi
maboloshi / README.MD
Last active August 7, 2023 05:42
[小米9 刷入欧洲版MIUI for macOS]
View README.MD
@maboloshi
maboloshi / Bytes_convert.md
Last active June 19, 2023 18:11
[To convert bytes to human readable value] To convert bytes to KB, MB, GB... for human readable. #shell
View Bytes_convert.md