编辑ffmpeg文件夹下面的configure文件,找到
SLIBNAME_WITH_MAJOR='$(SLIBNAME).$(LIBMAJOR)'
LIB_INSTALL_EXTRA_CMD='$$(RANLIB) "$(LIBDIR)/$(LIBNAME)"'
SLIB_INSTALL_NAME='$(SLIBNAME_WITH_VERSION)'
SLIB_INSTALL_LINKS='$(SLIBNAME_WITH_MAJOR) $(SLIBNAME)'
将其修改成:
#!/usr/bin/python3 | |
# -*- coding: utf-8 -*- | |
import os,sys | |
from xml.etree import ElementTree | |
from PIL import Image | |
import logging | |
DEBUG = False | |
# 设置默认的level为DEBUG |
const path = require('path'); | |
const express = require('express') | |
const app = express() | |
const archiver = require('archiver') | |
app.get('/', function(req, res) { | |
const archive = archiver('zip'); | |
archive.on('error', function(err) { |
# Simple | |
git log --oneline -n 1 | |
# val | |
log=`git log --oneline -n 1` && echo $log | |
# Only Mesg | |
log=`git log --oneline -n 1` && $log=${log:8} && echo $log |
#!/bin/bash | |
if [ $# -ne 1 ] | |
then | |
echo "Usage: getmobileuuid the-mobileprovision-file-path" | |
exit 1 | |
fi | |
# mobileprovision_uuid=`grep UUID -A1 -a $1 | grep -o "[-A-Z0-9]\{36\}"` | |
mobileprovision_uuid=`/usr/libexec/PlistBuddy -c "Print UUID" /dev/stdin <<< $(/usr/bin/security cms -D -i $1)` | |
echo "UUID is:" | |
echo ${mobileprovision_uuid} |
#!/bin/sh | |
# monit add : iptables -I OUTPUT -s 你的服务器IP -p tcp --sport 开放的端口 | |
# show : iptables -n -v -L -t filter | |
#统计流量 | |
flowname="/data/log/vpn/flow.log" | |
flownametail="/data/log/vpn/flow_tail.log" | |
flowregex="spt:端口起始到结尾" |
#!/bin/bash | |
# Copyright 2017 Théo Chamley | |
# Permission is hereby granted, free of charge, to any person obtaining a copy of | |
# this software and associated documentation files (the "Software"), to deal in the Software | |
# without restriction, including without limitation the rights to use, copy, modify, merge, | |
# publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons | |
# to whom the Software is furnished to do so, subject to the following conditions: | |
# | |
# The above copyright notice and this permission notice shall be included in all copies or |
/// 服务器可达返回true | |
#import <arpa/inet.h> | |
- (BOOL)socketReachabilityTest { | |
// 客户端 AF_INET:ipv4 SOCK_STREAM:TCP链接 | |
int socketNumber = socket(AF_INET, SOCK_STREAM, 0); | |
// 配置服务器端套接字 | |
struct sockaddr_in serverAddress; | |
// 设置服务器ipv4 | |
serverAddress.sin_family = AF_INET; | |
// 百度的ip |
function getDistance(lat1, lng1, lat2, lng2) { | |
var dis = 0; | |
var radLat1 = toRadians(lat1); | |
var radLat2 = toRadians(lat2); | |
var deltaLat = radLat1 - radLat2; | |
var deltaLng = toRadians(lng1) - toRadians(lng2); | |
var dis = 2 * Math.asin(Math.sqrt(Math.pow(Math.sin(deltaLat / 2), 2) + Math.cos(radLat1) * Math.cos(radLat2) * Math.pow(Math.sin(deltaLng / 2), 2))); | |
return dis * 6378137; | |
function toRadians(d) { return d * Math.PI / 180;} |
@interface NSBundle (YourFrameworkBundle) | |
+ (NSBundle *)yourFrameworkBundle; | |
@end | |
#import "NSBundle+YourFrameworkBundle.h" | |
@implementation NSBundle (YourFrameworkBundle) |
编辑ffmpeg文件夹下面的configure文件,找到
SLIBNAME_WITH_MAJOR='$(SLIBNAME).$(LIBMAJOR)'
LIB_INSTALL_EXTRA_CMD='$$(RANLIB) "$(LIBDIR)/$(LIBNAME)"'
SLIB_INSTALL_NAME='$(SLIBNAME_WITH_VERSION)'
SLIB_INSTALL_LINKS='$(SLIBNAME_WITH_MAJOR) $(SLIBNAME)'
将其修改成: