Using the DSM web interface:
- Install git from the package at http://www.synocommunity.com/
- Create a 'git' user account.
- Allow terminal (ssh) access.
See this guide for more details on the next bit:
Using the DSM web interface:
See this guide for more details on the next bit:
| # Download the file manually from here https://launchpad.net/gcc-arm-embedded | |
| # Note: `curl` command doesn't work | |
| # I downloaded this one: "gcc-arm-none-eabi-4_7-2013q3-20130916-mac.tar.bz2" | |
| # double click it to unzip it | |
| # Make a place to install it to | |
| mkdir /usr/local/gcc_arm | |
| # Move the unzipped stuff there. |
| #import <UIKit/UIKit.h> | |
| @interface UILabel (ContentSize) | |
| - (CGSize)contentSize; | |
| @end |
See Also:
| Level | Score | Regex | Credit |
|---|
| # Example nginx + git HTTP Smart mode (git-http-backend) + HTTP Authentication + HTTPS redirect | |
| # [email protected] - http://jeroen.massar.ch | |
| server { | |
| listen 192.0.1.1:80; | |
| listen [2001:db8::1]:80; | |
| # Redirect all non-HTTPS traffic to the HTTPS variant | |
| return 301 https://$host$request_uri; | |
| } |
| #!/bin/sh | |
| ### BEGIN INIT INFO | |
| # Provides: SSLedge | |
| # Required-Start: $local_fs $remote_fs | |
| # Required-Stop: $local_fs $remote_fs | |
| # Should-Start: $network | |
| # Should-Stop: $network | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Description: SSLedge for Raspberry Pi |
Create a scrapy exporter on the root of your scrapy project, we suppose the name of your project is my_project, we can name this exporter: my_project_csv_item_exporter.py
from scrapy.conf import settings
from scrapy.contrib.exporter import CsvItemExporter
class MyProjectCsvItemExporter(CsvItemExporter):
def __init__(self, *args, **kwargs):
delimiter = settings.get('CSV_DELIMITER', ',')redsocks2是一款透明socks5代理工具,能够实现智能代理的功能,这里是redsocks2在OpenWrt上的配置,配合shadowsocks使用。
redsocks.conf 是配置文件,放在/etc目录,将192.168.1.1改成路由器的地址.
redsocks2.sh 为自启动文件,改名为redsocks2放到/etc/init.d目录即可。自启动文件假设redsocks可执行文件在/opt/bin目录。
启动redsocks2: /etc/init.d/redsocks2 start
停止redsocks2: /etc/init.d/redsocks2 stop