会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
浦浦
博客园
首页
新随笔
联系
订阅
管理
2024年9月20日
[linux]跨发行版运行二进制
摘要: 需求点:客户不接受docker部署,服务编译环境无法和客户环境对齐,需要找到办法兼容 方案:mock整套ld/so,不依赖客户环境的基础组件 1. 正常编译,编译后拷贝整套so #!/bin/bash ABS_PATH=`pwd` echo "start copy system runtime li
阅读全文
posted @ 2024-09-20 17:17 张浦
阅读(15)
评论(0)
推荐(0)
2022年8月4日
[wireshark] 解决mac os 通过rtp导出h264流失败
摘要: 失败原因:打开dump文件失败,权限不足 修改rtp_h264_extractor.lua中dump文件路径为本地路径即可
阅读全文
posted @ 2022-08-04 10:30 张浦
阅读(317)
评论(0)
推荐(1)
2021年12月10日
[iptables] 设置固定IP 断网
摘要: #! /bin/bash # # drop some packets to simulate network traffic jam # Zhang junpu, 12 09 2021 # ip_arr=($@) # restore iptable rules function clean_up()
阅读全文
posted @ 2021-12-10 15:17 张浦
阅读(300)
评论(0)
推荐(0)
2020年12月9日
[linux] 内存测试 gperftools
摘要: 内存测试构建: 工具:gperftools/heap_checker https://gperftools.github.io/gperftools/heap_checker.html 安装google-perftools: apt-get install libunwind-dev apt-get
阅读全文
posted @ 2020-12-09 14:04 张浦
阅读(597)
评论(0)
推荐(0)
2020年11月28日
[树状数组/离散化]leetcode 493. 翻转对
摘要: 493. 翻转对 给定一个数组 nums ,如果 i < j 且 nums[i] > 2*nums[j] 我们就将 (i, j) 称作一个重要翻转对。 你需要返回给定数组中的重要翻转对的数量。 示例 1: 输入: [1,3,2,3,1] 输出: 2 示例 2: 输入: [2,4,3,5,1] 输出:
阅读全文
posted @ 2020-11-28 12:07 张浦
阅读(216)
评论(0)
推荐(0)
2020年11月23日
[FFmpeg] rec
摘要: 编译: ./configure --prefix=/usr/local --enable-ffplay --enable-shared --enable-gpl --enable-libopenh264 --enable-libx264 --enable-libopus --enable-debug
阅读全文
posted @ 2020-11-23 15:38 张浦
阅读(109)
评论(0)
推荐(0)
2020年10月29日
[Linux] 进程管理
摘要: /*** loop_wait.c ***/ #include <bits/stdc++.h> #include <stdio.h> #include <stdlib.h> #include <sys/wait.h> #include <unistd.h> // WARNING: Only signa
阅读全文
posted @ 2020-10-29 11:53 张浦
阅读(78)
评论(0)
推荐(0)
2020年8月20日
[linux] 内存检测
摘要: https://www.jianshu.com/p/3a2df9b7c353
阅读全文
posted @ 2020-08-20 17:00 张浦
阅读(115)
评论(0)
推荐(0)
2020年7月25日
[思维]牛客编程巅峰赛S1第6场
摘要: > C思路没错,下标写错了,recheck is necessary A 简单题 class Solution { public: /** * 位移后二进制串的十进制值 * @param str string字符串 二进制字符串 * @param k int整型 循环位移次数 * @return l
阅读全文
posted @ 2020-07-25 23:12 张浦
阅读(167)
评论(0)
推荐(0)
2020年7月24日
[逆序数, 思维]牛客编程巅峰赛S1第5场
摘要: A: 字符串模拟,简单题 class Solution { public: /** * 解密密文 * @param str string字符串 密文 * @param d int整型 偏移量 * @return string字符串 */ string decode(string str, int d
阅读全文
posted @ 2020-07-24 17:45 张浦
阅读(110)
评论(0)
推荐(0)
下一页
公告