Skip to content

Instantly share code, notes, and snippets.

@TNTest
TNTest / gitea_sso_feishu.lua
Created April 9, 2023 12:36 — forked from vinsonzou/gitea_sso_feishu.lua
Gitea通过飞书开放平台实现SSO
--[[
通过飞书登录获取用户email字段(用户飞书中必须添加email属性,否则无法登录!!!),如email地址为test@example.com,则gitea用户为test
登录后设定cookie,cookie有效期10小时
飞书开放平台的企业自建应用设置:
1、配置 安全设置-重定向URL,如此示例中的https://git.example.com
2、权限:获取用户邮箱信息
自动注册后,需管理员调整如下信息:
1、自定义名称
原帖地址: http://topic.csdn.net/u/20110113/19/b0d5d506-4307-428b-a61d-7974aa66a2da.html
首先要说明的是:这里介绍的方法都是大部分是本人“悟”出来的,所以网上难有流传!
好方法不能自己私藏,否则就白忙乎这几天了,分享给有需要的朋友们。如果有转载,敬请注明来自*CSDN老邓*作品。
呵呵,给自己打广告,实在是无耻之极,权当无聊之时打字之用。
欢迎流传,为最优秀的分布式版本管理系统Git做宣传!!
步骤:
1. 下载:http://loaden.googlecode.com/files/gitconfig.7z
2. 解压到:<MsysGit安装目录>/cmd/,例如:D:\Program Files\Git\cmd
@TNTest
TNTest / gist:b4b68a039cd8b2fbea0e1338c0bf2dcc
Created December 15, 2016 10:09 — forked from anildigital/gist:862675ec1b7bccabc311
Remove dangling docker images
docker rmi $(docker images -q -f dangling=true)
@TNTest
TNTest / setup.md
Last active August 29, 2015 14:16 — forked from xrstf/setup.md

Info

This guide sets up a non-clustered Nutch crawler, which stores its data via HBase. We will not learn how to setup Hadoop et al., but just the bare minimum to crawl and index websites on a single machine.

Terms

  • Nutch - the crawler (fetches and parses websites)
  • HBase - filesystem storage for Nutch (Hadoop component, basically)