Skip to content

Instantly share code, notes, and snippets.

View liuguangw's full-sized avatar

流光 liuguangw

View GitHub Profile
@liuguangw
liuguangw / image.go
Last active August 18, 2022 14:17
用go语言创建图片,并在图片上写汉字
package main
import (
_ "embed"
"github.com/golang/freetype"
"github.com/golang/freetype/truetype"
"golang.org/x/image/math/fixed"
"image"
"image/color"
"image/draw"
@liuguangw
liuguangw / make_cert.md
Last active November 16, 2024 10:08
使用openssl制作自定义CA、自签名ssl证书

自签名ssl证书生成

生成CA私钥

# 创建文件夹 ca 保存Ca相关
mkdir ca
cd ca
#创建私钥 (建议设置密码)
openssl genrsa -des3 -out myCA.key 2048
@liuguangw
liuguangw / steam_active.js
Created June 11, 2018 02:47
steam领取锁区游戏代码
(function()
{
if( location.href.match( /^https:\/\/store\.steampowered\.com\/account\/licenses\/?$/ ) === null )
{
alert( '请在Steam帐号明细页面运行这些代码: https://store.steampowered.com/account/licenses/' );
window.location = 'https://store.steampowered.com/account/licenses/';
return;
}
@liuguangw
liuguangw / action.js
Last active March 13, 2018 07:48
steam批量退组
/*退出各种steam组*/
(function () {    
/*时间间隔*/     
var timeP = 5;    
/*略过的组id*/     
var specialIds = ["103582791457524672", "103582791457596561"];    
var groupIdArr = [];    
jQuery(".groupLeftBlock a.linkStandard").each(function () {        
var surl = jQuery(this).attr("href"); 
var matchResult=surl.match(/'(\d+)'/);