Skip to content

Instantly share code, notes, and snippets.

View Zheaoli's full-sized avatar
🇯🇵
Travel In Japan

Nadeshiko Manju Zheaoli

🇯🇵
Travel In Japan
View GitHub Profile
╰─ cat /etc/pacman.conf
#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives
#
# GENERAL OPTIONS
#
[options]
//!HOOK NATIVE
//!BIND HOOKED
//!COMPONENTS 4
// RemoveGrain(11,-1) equivalent by -Vit-
#define Src(a,b) HOOKED_texOff(vec2(a,b))
vec4 hook() {
vec4 o = Src(0,0).xyzx;
o.x += o.x;
@Zheaoli
Zheaoli / demo.go
Created September 21, 2022 19:55
package main
import (
"fmt"
)
func Absdiff1(x, y int) int {
if x > y {
return x - y
}
@Zheaoli
Zheaoli / gist:aebc269899a5ea549a980475c6a815f1
Created August 15, 2022 07:02 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
#include <algorithm>
#include <ctime>
#include <iostream>
int main()
{
const unsigned arraySize = 32768;
int data[arraySize];
for (unsigned c = 0; c < arraySize; ++c)
│Message from syslogd@developer at Jun 21 07:42:22 ...
│ kernel:[840130.553286] systemd[1]: segfault at 320 ip 0000000000000320 sp 00007ffcb223de80 error 14 in systemd[556c24c88000+32000]
│Message from syslogd@developer at Jun 21 07:42:22 ...
│ kernel:[840130.564182] Code: Unable to acce
#ifndef PTRACE_H
#define PTRACE_H
#include <errno.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/ptrace.h>
#include <sys/reg.h>
#include <sys/uio.h>
@Zheaoli
Zheaoli / The new version v1.24.0 kubectl cli uses an invalid workaround on aws eks.md
Last active April 28, 2024 21:53
新版 v1.24.0 kubectl cli 在 aws eks 上使用失效的解决方法.md

Please update your awscli to 2.6.3

In v1.24.0, kubectl will report the following error when relying on the kubeconfig generated by aws-cli

> error: exec plugin: invalid apiVersion "client.authentication.k8s.io/v1alpha1"

The reason is that Kubernetes deprecated client.authentication.k8s.io/v1alpha1" from the exec plugin in PR108616

And the aws-cli update PR6476 has not been merged. There are two solutions

@Zheaoli
Zheaoli / client.py
Last active June 29, 2022 09:09
Connection in Use Case
import socket
import time
s = socket.socket()
host = "127.0.0.1"
port = 12345
s.connect((host, port))
print(s.recv(1024).decode())
time.sleep(10000000)
@Zheaoli
Zheaoli / Jetbrains JVM Config
Last active July 27, 2022 05:37
This is a JVM config for Jetbrains IDE on my laptop(With i9 10th CPU and 64G RAM)
-Xms128m
-Xmx8182m
-XX:ReservedCodeCacheSize=512m
-XX:CICompilerCount=2
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
-XX:+UnlockExperimentalVMOptions -XX:+UseZGC
-XX:ZCollectionInterval=120 -XX:ZAllocationSpikeTolerance=5
-XX:+UnlockDiagnosticVMOptions -XX:-ZProactive