root@orangepiplus:~# wpa_passphrase TPLINK-2018
# reading passphrase from stdin
mypasswd
network={
ssid="TPLINK-2018"
#psk="mypasswd"
psk=8a278324210558dad1a1bb182113f0df8fcee75946d31b25c7b839d98bbd49f7
}
| /* | |
| https://jan.newmarch.name/RPi/OpenMAX/State/wontwork.c | |
| */ | |
| /* | |
| * WARNING: THIS PROGRAM DOESN'T WORK 这个程序不可以直接运行 | |
| */ | |
| #include <stdio.h> | |
| #include <stdlib.h> |
| /* | |
| https://jan.newmarch.name/RPi/OpenMAX/State/event.c | |
| The program event.c monitors events. When run on the OMX.broadcom.clock component, | |
| it reports disabling all five ports, transitioning to Idle and then Executing | |
| */ | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <OMX_Core.h> | |
| #include <OMX_Component.h> |
| //https://github.com/shenxingdeliulu/webcam/blob/master/capture.c | |
| #include "capture.h" | |
| #define CLEAR(x) memset (&(x), 0, sizeof (x)) | |
| static char * dev_name = "/dev/video0";//摄像头设备名 | |
| struct buffer * buffers = NULL; | |
| static unsigned int n_buffers = 0; | |
| unsigned char *yuyv; | |
| const int yuyv_frm_sz=w*h*2; |
| YUV422SP转YUV422P from [email protected]:commshare/YUVPlayer.git | |
| 作者:李迟 发布:2014-09-08 11:22 分类:我的程序代码 标签:代码积累, 工程库代码, 编程 阅读:1,892 次 无评论 | |
| 最近为了测试采集的YUV视频是否正确,不过用YUV播放器看不了YUV422SP的文件。为了让其正确播放,写了个转换函数,当然,没经什么优化。但作为测试手段,已经足够了。 | |
| 下面给出YUV422SP转YUV422P格式的转换函数,当然,也包括了YUV420SP转YUV420P。代码没什么技术含量,不多说。 | |
| /** | |
| yyyy yyyy | |
| uv uv | |
| -> | |
| yyyy yyyy | |
| uu |
| https://github.com/zmarcantel/homebrew-libsoil | |
| zhangbindeMacBook-Pro:~ zhangbin$ brew tap zmarcantel/libsoil | |
| Updating Homebrew... | |
| ==> Auto-updated Homebrew! | |
| Updated 1 tap (homebrew/core). | |
| ==> Updated Formulae | |
| binaryen firebase-cli grpc planck | |
| dnsviz fonttools paket pyenv | |
| ejabberd git-lfs pilosa |
Automatically Reconnecting WiFi on a RaspberryPi (alexba.in/blog/2015/01/14/automatically-reconnecting-wifi-on-a-raspberrypi/) JAN 14TH, 2015 | COMMENTS In this post, I’m going to cover writing a short script that automatically reconnects a RaspberryPi to a WiFi network. The script will check to see if the Pi has network connectivity and, if it’s offline, will restart the wireless interface to bring it back online. We’ll use cron to schedule the execution of this script at a regular interval.
There are a few ways to determine if the RaspberryPi has network connectivity. For this script, we’ll be using ping.
Writing the script To get started, we’ll need to determine if the RaspberryPi is connected to the network. To do this, we’ll attempt to ping a server and see if we get a response. If the command succeeds (RaspberryPi receives a response from the server), we have network connectivity. If the command fails, we’ll turn wlan0 off and back on.
#!/bin/bash
The script in this gist will help you buid the Google Protobuf library for use with Mac OS X and iOS. Other methods (such as homebrew or direct compilation) have issues that prevent their use. The libraries built by this script are universal and support all iOS device architectures including the simulator.
This gist was adapted from the original at https://gist.github.com/BennettSmith/7150245, and updated to deal with Xcode 7 and iOS 9, and download protobuf version 3.0.0.
| 46c46 | |
| < #define GETSERVBYPORT_R_ARGS 6 | |
| --- | |
| > #define GETSERVBYPORT_R_ARGS | |
| 131c131 | |
| < #define HAVE_GETSERVBYPORT_R | |
| --- | |
| > /* #undef HAVE_GETSERVBYPORT_R */ | |
| 46c46 | |
| < #define GETSERVBYPORT_R_ARGS 6 |