This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
while getopts ":T:R:B:P:F:D:h:b:" opt; do | |
case $opt in | |
T) | |
# 通过 GitHub GraphQL API 进行身份验证的 TOKEN | |
# TOKEN for authentication via GitHub GraphQL API | |
TOKEN=$OPTARG | |
;; | |
R) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function create_ref { | |
param ( | |
[Parameter(Mandatory = $true)] | |
[String]$Token, | |
[Parameter(Mandatory = $true)] | |
[String]$RepoNwo, | |
[Parameter(Mandatory = $true)] | |
[String]$Ref, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# 在需要转换图片的目录下运行此脚本 | |
# convert命令是ImageMagick这个图片处理软件包中的一个命令 | |
# 安装ImageMagick之后,才能使用convert命令 | |
# man convert可以查看命令用法帮助文档 | |
# 逐个将所有png,bmp,jpg格式图片文件转换为原来尺寸的1/4大并保存为jpg格式图片文件 | |
# 转换后重命名 |
NewerOlder