Skip to content

Instantly share code, notes, and snippets.

@realnsleo
realnsleo / HttpProxy.go
Created October 24, 2023 04:31 — forked from yowu/HttpProxy.go
A simple HTTP proxy by Golang
package main
import (
"flag"
"io"
"log"
"net"
"net/http"
"strings"
)
@realnsleo
realnsleo / LearnPress REST API
Created January 24, 2023 13:56 — forked from Marinski/LearnPress REST API
LearnPress REST API is a plugin which adds endpoints for LearnPress LMS to the WordPress REST API // EDIT: LearnPress released official version of a REST API for their core plugin. TheYou can read the docs in their website: https://docspress.thimpress.com/developer-learnpress/#sections-5 . LearnPress REST API has been introduced in version 4 of …
<?php
/*
* Plugin Name: LearnPress to WP Rest API
* Plugin URI: https://www.webapp.bg/wp-extensions/learnpress-rest-api
* Description: A plugin to add endpoints for LearnPress to WP REST API
* Version: 1.0
* Author: Marin Stoyanov
* Author URI: https://www.webapp.bg/
* License: GPL2
*/
@realnsleo
realnsleo / hero.ts
Created August 5, 2022 08:48 — forked from brennanMKE/hero.ts
Example of Mongoose with TypeScript and MongoDb
import * as mongoose from 'mongoose';
export let Schema = mongoose.Schema;
export let ObjectId = mongoose.Schema.Types.ObjectId;
export let Mixed = mongoose.Schema.Types.Mixed;
export interface IHeroModel extends mongoose.Document {
name: string;
power: string;
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Workreap Core\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-06-02 13:49+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: \n"
"Language: \n"
##################################################################
########################### OS INFO ############################
##################################################################
OS_VERSION = AMD64
##################################################################
####################### FLASH RAW FILE ########################
##################################################################
[8:01:28 PM COM20]:MiFlash 2018.5.28.0
[8:01:28 PM COM20]:flash in thread name:COM20,id:9
[8:01:28 PM COM20]:flash in thread name:COM20,id:9
[8:01:28 PM COM20]:[COM20]:start flash.
[8:01:28 PM COM20]:received hello packet
[8:01:28 PM COM20]:download programmer C:\test\ASUS_ROG2_ZS660KL_QPST_Firmware\images\prog_ufs_firehose_sdm855_ddr.elf
[8:01:28 PM COM20]:sahara read 64b data:imgID 13,offset 0,length 64
[8:01:28 PM COM20]:sahara read 64b data:imgID 13,offset 64,length 1120
[8:01:28 PM COM20]:sahara read 64b data:imgID 13,offset 4096,length 4096
[8:01:28 PM COM20]:sahara read 64b data:imgID 13,offset 8192,length 3432

Keybase proof

I hereby claim:

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

To claim this, I am signing this object: