Skip to content

Instantly share code, notes, and snippets.

06-03 15:51:07.581 563 563 E SELinux : avc: denied { find } for pid=5992 uid=10179 name=tethering scontext=u:r:vendor_systemhelper_app:s0:c512,c768 tcontext=u:object_r:tethering_service:s0 tclass=service_manager permissive=0
06-03 15:51:07.783 563 563 E SELinux : avc: denied { find } for pid=5992 uid=10179 name=tethering scontext=u:r:vendor_systemhelper_app:s0:c512,c768 tcontext=u:object_r:tethering_service:s0 tclass=service_manager permissive=0
06-03 15:51:07.804 3029 3093 D ffmpeg-kit-test-web: Input #0, flv, from 'http://admin:admin@192.168.8.78:8081/live.flv':
06-03 15:51:07.806 3029 3093 D ffmpeg-kit-test-web: Metadata:
06-03 15:51:07.806 3029 3093 D ffmpeg-kit-test-web: MetaDataCreator :
06-03 15:51:07.806 3029 3093 D ffmpeg-kit-test-web: created by shenyao's rtmp publisher
06-03 15:51:07.806 3029 3093 D ffmpeg-kit-test-web:
06-03 15:51:07.806 3029 3093 D ffmpeg-kit-test-web: hasKeyFrames :
06-03 15:51:07.806 3029 3093 D ffmpeg-kit-test-web: true
06-03 15:51:07.
ffmpeg version v4.5-dev-3393-g30322ebe3c Copyright (c) 2000-2021 the FFmpeg developers
built with Android (7155654, based on r399163b1) clang version 11.0.5 (https://android.googlesource.com/toolchain/llvm-project 87f1315dfbea7c137aa2e6d362dbb457e388158d)
configuration: --cross-prefix=arm-linux-androideabi- --sysroot=/files/android-sdk/ndk/22.1.7171670/toolchains/llvm/prebuilt/linux-x86_64/sysroot --prefix=/storage/light/projects/ffmpeg-kit/prebuilt/android-arm-neon-lts/ffmpeg --pkg-config=/usr/bin/pkg-config --enable-version3 --arch=armv7-a --cpu=armv7-a --target-os=android --enable-neon --enable-asm --enable-inline-asm --build-suffix=_neon --ar=arm-linux-androideabi-ar --cc=armv7a-linux-androideabi16-clang --cxx=armv7a-linux-androideabi16-clang++ --ranlib=arm-linux-androideabi-ranlib --strip=arm-linux-androideabi-strip --nm=arm-linux-androideabi-nm --extra-libs='-L/storage/light/projects/ffmpeg-kit/prebuilt/android-arm-neon-lts/cpu-features/lib -lndk_compat' --disable-autodetect --enable-cross-compile -
@greensea
greensea / list_gcp_iprange.sh
Created June 17, 2019 11:29 — forked from n0531m/list_gcp_iprange.sh
Google Cloud Platform : ip address range
#!/bin/bash
# https://cloud.google.com/compute/docs/faq#find_ip_range
# nslookup -q=TXT _cloud-netblocks.googleusercontent.com 8.8.8.8
myarray=()
for LINE in `dig txt _cloud-netblocks.googleusercontent.com +short | tr " " "\n" | grep include | cut -f 2 -d :`
do
myarray+=($LINE)
for LINE2 in `dig txt $LINE +short | tr " " "\n" | grep include | cut -f 2 -d :`
@greensea
greensea / BasicToken.sol
Created August 7, 2018 09:28
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.24+commit.e67f0147.js&optimize=false&gist=
pragma solidity ^0.4.24;
import "./ERC20Basic.sol";
import "./SafeMath.sol";
/**
* @title Basic token
* @dev Basic version of StandardToken, with no allowances.
@greensea
greensea / BasicToken.sol
Created August 2, 2018 06:53
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.24+commit.e67f0147.js&optimize=true&gist=
pragma solidity ^0.4.24;
import "./ERC20Basic.sol";
import "./SafeMath.sol";
/**
* @title Basic token
* @dev Basic version of StandardToken, with no allowances.
@greensea
greensea / BasicToken.sol
Created August 2, 2018 06:40
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.24+commit.e67f0147.js&optimize=true&gist=
pragma solidity ^0.4.24;
import "./ERC20Basic.sol";
import "./SafeMath.sol";
/**
* @title Basic token
* @dev Basic version of StandardToken, with no allowances.
@greensea
greensea / disk-quota-watcher.sh
Last active May 4, 2017 07:22
检查服务器指定分区的剩余空间,如果低于阈值则发送邮件通知
#/bin/sh
if [ $# -lt 4 ]
then
echo "Usage: $0 <mount_point> <min_space_MB> <to_email> <from_email>"
exit 0
fi
MOUNT_POINT=$1
MIN_SPACE_MB=$2
@greensea
greensea / context_switch_bench.c
Created September 22, 2015 07:40
比较 pthread_cond_wait 和 eventfd 的性能
#include <stdlib.h>
#include <stdio.h>
#include <pthread.h>
#include <unistd.h>
#include <sys/eventfd.h>
#include <sys/time.h>
int g_loops = 0;
int g_efd = 0;
int g_stop = 0;
@greensea
greensea / strcmp_bench.c
Created September 21, 2015 07:40
测试字符串比较函数的性能
#include <string.h>
#include <stdio.h>
#include <stdint.h>
#include <time.h>
#include "sds.h"
/**
* 高效地比较两个字符串的大小
*/
@greensea
greensea / OpenVPN-2.2.2-obfs.patch
Last active March 22, 2023 09:17
The obfs patch obsfucate OpenVPN traffic, make it looks like random traffic. The obfs patch add two options for OpenVPN. --obfs-salt <string> is a secret to generate the input XOR stream. To enable the obfs patch, this options must be set. --obfs-padlen <num> is a positive integer max to 255. This option tells obfs patch to padding random conten…
--- openvpn-2.2.2.orig/options.c 2011-12-14 00:58:56.000000000 +0800
+++ openvpn-2.2.2/options.c 2012-12-21 10:44:57.683130505 +0800
@@ -54,6 +54,10 @@
#include "memdbg.h"
+extern char* _socket_obfs_salt;
+extern int _socket_obfs_salt_len;
+extern int _socket_obfs_padlen;
+