Skip to content

Instantly share code, notes, and snippets.

Avatar
🐦
咕咕咕

Feng nyufeng

🐦
咕咕咕
View GitHub Profile
@nyufeng
nyufeng / ocp.php
Created May 26, 2022 — forked from ck-on/ocp.php
OCP - Opcache Control Panel (aka Zend Optimizer+ Control Panel for PHP)#ocp #php #opcache #opcode #cache #zend #optimizerplus #optimizer+
View ocp.php
<?php
/*
OCP - Opcache Control Panel (aka Zend Optimizer+ Control Panel for PHP)
Author: _ck_ (with contributions by GK, stasilok)
Version: 0.1.7
Free for any kind of use or modification, I am not responsible for anything, please share your improvements
* revision history
0.1.7 2015-09-01 regex fix for PHP7 phpinfo
0.1.6 2013-04-12 moved meta to footer so graphs can be higher and reduce clutter
@nyufeng
nyufeng / 📊 Weekly development breakdown
Last active Feb 9, 2021
📊 Weekly development breakdown
View 📊 Weekly development breakdown
PHP 🕓 2h30m █████████████████▉░░░░░░░░░░ 64.2%
Go 🕓 1h16m █████████▏░░░░░░░░░░░░░░░░░░ 32.6%
Git Config 🕓 6m ▊░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.8%
SQL 🕓 0s ░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.3%
Other 🕓 0s ░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.1%
View pop-sequence.c
#include "stdio.h"
#include "stdlib.h"
int main(){
int MAX, length, row;
scanf("%d %d %d", &MAX, &length, &row);
int max[row][length];
for(int i = 0; i < row; i++){
for(int k = 0; k < length; k++){
scanf("%d", &max[i][k]);
@nyufeng
nyufeng / reversing-linked-list.c
Last active Mar 29, 2019
02-线性结构3 Reversing Linked List
View reversing-linked-list.c
#include <stdio.h>
#include <stdlib.h>
#define MAXNUM 100000
struct LinkedNode{
int num;
int next;
};
typedef struct LinkedNode *linked, node;
View p0f-client.php
<?php namespace P0f;
define("P0F_QUERY_MAGIC", 0x50304601);
define("P0F_ADDR_IPV4", 0x04);
define("P0F_ADDR_IPV6", 0x06);
class Client
{
public static function get(string $socket, string $ip)
{
$q = [];
@nyufeng
nyufeng / send.php
Created Sep 19, 2018 — forked from Repox/send.php
Google API PHP Client - Firebase Cloud Messaging Service v1 example
View send.php
<?php
/**
* This serves as an example of how to use the Google API PHP Client
* with Firebase Cloud Messaging Service.
*
* The client can be found here:
* https://github.com/google/google-api-php-client
*
* At the time of writing this, there's no Service object for the correct