cd ~
git clone git://git.videolan.org/x264
cd x264
./configure --host=arm-unknown-linux-gnueabi --enable-static --disable-opencl
make -j4
sudo make install
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1. Uninstall unrar-free. | |
| $ sudo apt-get remove unrar-free | |
| 2. Make sure you have a source repository by editing /etc/apt/sources.list. | |
| $ cat /etc/apt/sources.list | |
| # Default repository | |
| deb http://archive.raspbian.org/raspbian wheezy main contrib non-free rpi | |
| # Source repository to add |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1. 修改samba密码 | |
| 注意samba有独立密码,不是linux用户密码 | |
| sudo smbpasswd pi | |
| 然后输入两次新密码 | |
| 2. 修改samba共享目录,增加新的共享目录 | |
| /etc/samba/smb.conf | |
| [media] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| COMPILING VISUAL STUDIO CODE ON A RASPBERRY PI 3 | |
| From the VS Code GitHub, you need Node, npm, and Python. The Pi has Python but it has an old node, so needed a newer node that ran on ARM processors. | |
| get http://node-arm.herokuapp.com/node_latest_armhf.deb | |
| sudo dpkg -i node_latest_armhf.deb | |
| There are some NPM native modules like node-native-keymap that didn't work when I built the first time, so you'll need some supporting libraries first: | |
| sudo apt-get install libx11-dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| VS2012+ have these featured built in | |
| msbuild ProjectFile.csproj /p:Configuration=Release ^ | |
| /p:Platform=AnyCPU ^ | |
| /t:WebPublish ^ | |
| /p:WebPublishMethod=FileSystem ^ | |
| /p:DeleteExistingFiles=True ^ | |
| /p:publishUrl=c:\output | |
| Or if you are building the solution file: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.dll" | |
| Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.Runtime.dll" | |
| Function Ensure-Folder() | |
| { | |
| Param( | |
| [Parameter(Mandatory=$True)] | |
| [Microsoft.SharePoint.Client.Web]$Web, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.ddth.game; | |
| import java.io.File; | |
| import java.io.FileInputStream; | |
| import java.io.FileOutputStream; | |
| import java.io.IOException; | |
| import java.io.InputStream; | |
| import java.io.OutputStream; | |
| import java.nio.ByteBuffer; | |
| import java.nio.ByteOrder; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Table(Base): | |
| id = Column(Integer, primary_key=True) | |
| _name = Column('name', String(24)) | |
| @property | |
| def name(self): | |
| return self._name; | |
| @name.setter | |
| def name(self, value): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | |
| "http://www.w3.org/TR/html4/loose.dtd"> | |
| <html> | |
| <head> | |
| <title>JSON Transform</title> | |
| <script type="text/javascript" src="http://code.jquery.com/jquery-1.8.0.min.js"></script> | |
| <script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.3.3/underscore-min.js"></script> | |
| <script type="text/javascript" src="https://raw.github.com/douglascrockford/JSON-js/master/json2.js"></script> | |
| <link href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css" rel="stylesheet"></link> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #this command configure firewall to accept incoming tcp connections on port 80 | |
| firewall-cmd --zone=public --permanent --add-port=80/tcp | |
| firewall-cmd --reload |