Skip to content

Instantly share code, notes, and snippets.

View kmahyyg's full-sized avatar
👋
ISeekU

Patrick Young kmahyyg

👋
ISeekU
View GitHub Profile
@kmahyyg
kmahyyg / api-server.log
Created April 23, 2022 03:01
k8s-kubeadm-bug-log
[root@k8shostcp1 ~]# crictl logs 3fe6d0e31fd66
I0423 02:57:35.900998 1 server.go:565] external host was not specified, using 192.168.56.10
I0423 02:57:35.901535 1 server.go:172] Version: v1.23.6
I0423 02:57:36.239754 1 shared_informer.go:240] Waiting for caches to sync for node_authorizer
I0423 02:57:36.240076 1 plugins.go:158] Loaded 12 mutating admission controller(s) successfully in the following order: NamespaceLifecycle,LimitRanger,ServiceAccount,NodeRestriction,TaintNodesByCondition,Priority,DefaultTolerationSeconds,DefaultStorageClass,StorageObjectInUseProtection,RuntimeClass,DefaultIngressClass,MutatingAdmissionWebhook.
I0423 02:57:36.240103 1 plugins.go:161] Loaded 11 validating admission controller(s) successfully in the following order: LimitRanger,ServiceAccount,PodSecurity,Priority,PersistentVolumeClaimResize,RuntimeClass,CertificateApproval,CertificateSigning,CertificateSubjectRestriction,ValidatingAdmissionWebhook,ResourceQuota.
I0423 02:57:36.240893 1 plugin
@kmahyyg
kmahyyg / Dockerfile
Last active November 22, 2021 01:31
guacamole-guacd (fix libssh issue, compile against latest library, working)
FROM archlinux:base-devel
LABEL MAINTAINER="kmahyyg <[email protected]>"
LABEL DESCRIPTION="Apache Guacamole - guacd based on Arch Linux"
LABEL VERSION="v20211120-guacd-1.3.0"
ENV GUACD_LOG_LEVEL=info
COPY write-archcn.sh /build/write-archcn.sh
COPY write-sudoer.sh /build/write-sudoer.sh
@kmahyyg
kmahyyg / swagger.json
Last active April 21, 2021 07:20
swagger-temp1
{
"swagger": "2.0",
"info": {
"title": "PoET YNU Trace - YYG",
"description": "PoET YNU Trace - YYG",
"version": "0.1.0"
},
"host": "localhost:18088",
"schemes": [
"http"
@kmahyyg
kmahyyg / sawtooth-kubernetes-default-poet.yaml
Created April 2, 2021 16:55
hyperledger sawtooth working with minikube v1.18.1 and k8s v1.20.2 on docker v20.10.3 (Linux amd64)
---
apiVersion: v1
kind: List
items:
- apiVersion: apps/v1
kind: Deployment
metadata:
name: sawtooth-0
@kmahyyg
kmahyyg / fuckaliyun.sh
Last active December 7, 2020 18:30
fuckaliyun
dpkg -P aliyun-assist
rm -rf /usr/local/aegis
rm -rf /etc/systemd/system/{aliyun,aegis}.service
rm -rf /usr/sbin/acs-plugin-manager
rm -rf /usr/sbin/aliyun{_installer,-service}
rm -rf /usr/local/share/aliyun-assist
rm -rf /etc/init.d/aegis
systemctl disable --now aegis,aliyun,atd,rsyslog
# Use script above
@kmahyyg
kmahyyg / kerberos_attacks_cheatsheet.md
Created July 7, 2020 08:13 — forked from TarlogicSecurity/kerberos_attacks_cheatsheet.md
A cheatsheet with commands that can be used to perform kerberos attacks

Kerberos cheatsheet

Bruteforcing

With kerbrute.py:

python kerbrute.py -domain <domain_name> -users <users_file> -passwords <passwords_file> -outputfile <output_file>

With Rubeus version with brute module:

@kmahyyg
kmahyyg / quanx-js.conf
Created October 29, 2019 01:37
NobyDa-Script-master-QuantumultX
# 去微博应用内广告 (By yichahucha)
^https?://m?api\.weibo\.c(n|om)/2/(statuses/(unread|extend|positives/get|(friends|video)(/|_)timeline)|stories/(video_stream|home_list)|(groups|fangle)/timeline|profile/statuses|comments/build_comments|photo/recommend_list|service/picfeed|searchall|cardlist|page) url script-response-body https://raw.githubusercontent.com/yichahucha/surge/master/wb_ad.js
^https?://(sdk|wb)app\.uve\.weibo\.com(/interface/sdk/sdkad.php|/wbapplua/wbpullad.lua) url script-response-body https://raw.githubusercontent.com/yichahucha/surge/master/wb_launch.js
# 去微信公众号广告 (By Choler)
^https?:\/\/mp\.weixin\.qq\.com\/mp\/getappmsgad url script-response-body https://raw.githubusercontent.com/NobyDa/Script/master/QuantumultX/File/Wechat.js
# 知乎去广告 (By onewayticket255)
^https://api.zhihu.com/topstory/follow url script-response-body https://raw.githubusercontent.com/onewayticket255/Surge-Script/master/surge%20zhihu%20feed.js
^https://api.zhihu.com/topstory/recommend url script-response-body https://raw.githubuser
@kmahyyg
kmahyyg / readme.md
Created May 4, 2019 04:11 — forked from artizirk/systemd-nspawn container architecture.md
systemd-nspawn container architecture

systemd-nspawn container architecture

This short document will show how to turn systemd-nspawn into a usable containeration system.

Those instructions here should work under Arch Linux and Debian 9

Host requirements

  • systemd-nspawn and machinectl (systemd-container package under Debian)
  • dnsmasq
  • debootstrap

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@kmahyyg
kmahyyg / 99-noto-mono-color-emoji.conf
Created March 5, 2019 16:21 — forked from IgnoredAmbience/99-noto-mono-color-emoji.conf
Noto Emoji Color fontconfig for Konsole
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!--
Noto Mono + Color Emoji Font Configuration.
Currently the only Terminal Emulator I'm aware that supports colour fonts is Konsole.
Usage:
0. Ensure that the Noto fonts are installed on your machine.
1. Install this file to ~/.config/fontconfig/conf.d/99-noto-mono-color-emoji.conf