Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

soul11201 noname007

🎯
Focusing
Block or report user

Report or block noname007

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View up.sh
#!/bin/bash
#https://blog.csdn.net/mydriverc2/article/details/79011438
set -x
cmd="$@"
r=$(ps aux|grep "${cmd}" | grep -v "$0"|grep -v 'grep')
@noname007
noname007 / Zend_bench.php.log
Created Feb 14, 2019 — forked from rybakit/Zend_bench.php.log
php8 jit msgpack.php benchmarks
View Zend_bench.php.log
$ sapi/cli/php Zend/bench.php
------------------------
Total 0.497
$ sapi/cli/php -dextension_dir=`pwd`/modules -dzend_extension=opcache.so Zend/bench.php
------------------------
Total 0.488
$ sapi/cli/php -dextension_dir=`pwd`/modules -dzend_extension=opcache.so -dopcache.enable_cli=1 -dopcache.file_update_protection=0 -dopcache.jit_buffer_size=1M Zend/bench.php
------------------------
@noname007
noname007 / process_binary_stream.php
Created Dec 7, 2018
二进制流,字符串化后处理,反解回二进制流对应的 base_64_encode
View process_binary_stream.php
<?php
$hex_str = 'e123476343f37e7ecfd8401b60897de9bcc1621e5ede9755e9c442fc9a16d41ee82e344f18135866ba1360f587346711255d8c40e5a5fb45958833f67c7487ac1ff5833716fcc6b7b0781d6fe38c1cb95f4ceeb99b17f62a927777a07103af379dc24d3e2ce0540838ee8f3549b3fb58083fbf7058d1cf6d7c15e9da03bf3709c61a79c2b2c858f327ed6755df7883c2130e9ba4b36fc366b7b72d0459c2ea326af189887ef213432e820beadc321791aa9fd708bbb3ab9c556e54beb8e15f88f07542030de04e0bbbf0537825f6d6761c919a93500099c83f8d00f7ba8b2b2e408e9f820c9390b8d1dba667c047b7adb3e3d2c3fdfd721f5998f80c5509299b';
$len = strlen($hex);
$a = [];
for($i = 0; $i < $len; $i += 2)
{
View trait_inherit.php
<?php
trait A
{
public function b()
{
echo __METHOD__;
}
}
View ~ string int
$start = '175421696';
$end = 175421823;
echo (int) ~ $start;
echo ~ $start ^ $end;
function a(int $a, int $b)
{
View float-754-check.c
#include
int main() {
double a = 0.58, *aptr = &a;
float af = 0.58, *afptr = &af;
printf(“%lu,%lx\n”,sizeof(a), *(long int *)aptr);
printf(“%lu,%x\n”,sizeof(af), *(int *)afptr);
@noname007
noname007 / _reader-macros.md
Created Mar 11, 2018 — forked from chaitanyagupta/_reader-macros.md
Reader Macros in Common Lisp
View _reader-macros.md

Reader Macros in Common Lisp

This post also appears on lisper.in.

Reader macros are perhaps not as famous as ordinary macros. While macros are a great way to create your own DSL, reader macros provide even greater flexibility by allowing you to create entirely new syntax on top of Lisp.

Paul Graham explains them very well in [On Lisp][] (Chapter 17, Read-Macros):

The three big moments in a Lisp expression's life are read-time, compile-time, and runtime. Functions are in control at runtime. Macros give us a chance to perform transformations on programs at compile-time. ...read-macros... do their work at read-time.

@noname007
noname007 / _reader-macros.md
Created Mar 11, 2018 — forked from chaitanyagupta/_reader-macros.md
Reader Macros in Common Lisp
View _reader-macros.md

Reader Macros in Common Lisp

This post also appears on lisper.in.

Reader macros are perhaps not as famous as ordinary macros. While macros are a great way to create your own DSL, reader macros provide even greater flexibility by allowing you to create entirely new syntax on top of Lisp.

Paul Graham explains them very well in [On Lisp][] (Chapter 17, Read-Macros):

The three big moments in a Lisp expression's life are read-time, compile-time, and runtime. Functions are in control at runtime. Macros give us a chance to perform transformations on programs at compile-time. ...read-macros... do their work at read-time.

@noname007
noname007 / ref.sh
Last active May 17, 2017
构建https证书
View ref.sh
1030 cat /etc/pki/tls/openssl.cnf
# For the CA policy
[ policy_match ]
countryName = match
stateOrProvinceName = optional
organizationName = optional
organizationalUnitName = optional
commonName = supplied
You can’t perform that action at this time.