Skip to content

Instantly share code, notes, and snippets.

View skylens's full-sized avatar
🎯
Focusing

skylens

🎯
Focusing
View GitHub Profile
@CHIZI-0618
CHIZI-0618 / sing-box-sub-store-template_tproxy.json
Last active October 23, 2025 15:50
sing-box v1.11.1 Sub-Store-Template TProxy and Tun
{
"log": {
"disabled": false,
"level": "info",
"output": "sing-box.log",
"timestamp": true
},
"experimental": {
"cache_file": {
"enabled": true,
@WhyMeta
WhyMeta / Clash_Meta_mihomo.yaml
Last active April 10, 2025 08:09
Clash.MetaCubeX 懒人包配置
# url 里填写自己的订阅,名称不能重复
proxy-providers:
ProviderAirPort:
url: ""
type: http
interval: 86400
health-check: {enable: true,url: "http://www.apple.com/library/test/success.html",interval: 300}
# override:
# additional-prefix: "[ProviderAirPort]"
@lewangdev
lewangdev / default.custom.yaml
Last active October 21, 2025 03:48
雾凇拼音自定义配置,MacOS-like & Wechat-like Dark/Light Color Scheme For Rime
patch:
# 菜单
menu:
page_size: 8 # 候选词个数
# alternative_select_labels: [ ①, ②, ③, ④, ⑤, ⑥, ⑦, ⑧, ⑨, ⑩ ] # 修改候选项标签
# alternative_select_keys: ASDFGHJKL # 如编码字符占用数字键,则需另设选字键
# ascii_mode、inline、no_inline、vim_mode 等等设定,可参考 /Library/Input Methods/Squirrel.app/Contents/SharedSupport/squirrel.yaml
# 中西文切换
#
# 【good_old_caps_lock】 CapsLock 切换到大写或切换中英。
@chowder
chowder / README.md
Last active October 28, 2025 10:49
Exporting Microsoft Authenticator TOTP secrets

Background

Workplaces may enforce TOTP 2FA to be enabled Office 365 accounts, which require the Microsoft Authenticator app to be installed.

Regular TOTP applications (such as Aegis, Authy, or LastPass) cannot be used as Microsoft uses a proprietary scheme called phonefactor. Furthermore, the application requires Google Services Framework (GSF) to be installed (likely to provide device notifications), and will refuse to work when it is not present on the device.

Forunately, after the registration is complete, the underlying mechanism the app uses to generate TOTP codes is regular otpauth, and its secrets can be exported with a little bit of effort.

Extracting the keys

@naturalett
naturalett / commonPipeline.groovy
Last active December 17, 2023 15:12
commonPipelineWorkshop
#!/usr/bin/env groovy
import groovy.text.StreamingTemplateEngine
def call(sharedLibrary, svcName, buildCommands, pod, slackChannel) {
if (pod.contains("<%")) {
pod = new StreamingTemplateEngine().createTemplate(pod).make(['' : '']).toString()
}
def podLabel = "${svcName}-${UUID.randomUUID().toString().substring(0,8)}"
pipeline {
@afriza
afriza / add-rsync-to-git-for-windows.sh
Last active March 13, 2024 15:27
Copies rsync binaries and its dependencies from MSYS2 to Git for Windows
#! /bin/sh -x
# The reason to copy rsync binaries into Git for Windows is because
# VS Code has built in support for Git Bash shell in its Terminal.
# steps:
# 1. install Git for Windows from https://gitforwindows.org/
# 2. install MSYS2 from https://www.msys2.org/
# 3. Run as administrator: MSYS2 MSYS
# 4. execute the commands below in MSYS2 MSYS from step 3
@dmknght
dmknght / sublimetext_3211_crack.py
Created November 7, 2021 13:05
A short python script (no functions at all) to patch lincense check for sublime_text build 3211 Linux x64
import os
#sublime_binary_path = "/opt/sublime_text/sublime_text_b3211"
sublime_binary_path = "/tmp/sublime_text_3211/sublime_text"
version_magic_string = "/updates/3/stable/updatecheck?version=3211&platform=linux&arch=x64"
sz_magic_string = 66
#version_magic_string_offset = 0x00209ee0 # Offset from disassembler
version_magic_string_offset = 0x00009ee0 # (Real offset from xxd)
@dgalli1
dgalli1 / authelia-config.yml
Last active May 9, 2025 13:43
Authelia + OpenLDAP + Ldap User Manager
ldap:
## The LDAP implementation, this affects elements like the attribute utilised for resetting a password.
## Acceptable options are as follows:
## - 'activedirectory' - For Microsoft Active Directory.
## - 'custom' - For custom specifications of attributes and filters.
## This currently defaults to 'custom' to maintain existing behaviour.
##
## Depending on the option here certain other values in this section have a default value, notably all of the
## attribute mappings have a default value that this config overrides, you can read more about these default values
## at https://www.authelia.com/docs/configuration/authentication/ldap.html#defaults
@MShawon
MShawon / versions.txt
Last active August 17, 2023 21:37
Chrome versions
116.0.0.0
115.0.0.0
114.0.0.0
113.0.0.0
112.0.0.0
111.0.0.0
110.0.0.0
109.0.0.0
108.0.0.0
107.0.0.0